In message "[ruby-talk:11802] list classmethods of a class"
on 01/03/01, Clemens Wyss <wys / helbling.ch> writes:
>I tried, but didn't find out how to get the list of classmethods of a
>class. IMHO it would be natural to have the following behavior:
>
>class Dummy
>def Dummy.one()
>end
>def Dummy.two()
>end
>end
>
>Dummy.class_methods() >> [one, tow]
>
>Any hints?
Object#singleton_methods is available. Remember a class is an
instance of Class. And, what we call class method is very singleton
method of the Class object.
-- Gotoken