In mail "[ruby-talk:18829] Re: Get a list of class (not instance) functions"
Steve Tuckner <SAT / MULTITECH.com> wrote:
> Can someone please explain... :>
(class << obj; self end) is general(?) mean to get obj's
singleton class. Because
1. in a singleton class statement, "self" is the singleton class itself.
2. a class statement returns the value of its (evaluated) last statement.
P.S.
I had forgotten easier way. "SomeClass.methods" may be sufficient...
Minero Aoki