From: S2 Date: 2008-03-07T01:59:54+09:00 Subject: Re: Ruby Basics / define met;hod Chinna Karuppan wrote: > I did read through your reply.especially this.... > "Inside a class body self is the class instance being defined right > now." > I still could not understand. > BTW even this is little foreign to me > puts class< > is class an array that you are appending the self array and after that > you end.instance_methods what he did is: irb(main):005:0> a = irb(main):006:0* class< self irb(main):008:1> end => #> so now in a you have a class object. self is the current instance of the class. then with a.instance_methods(false) you can print all instance methods of self. the .sort only sorts them alphabetically.