From: gotoken@... (GOTO Kentaro) Date: 2001-03-01T04:04:49+09:00 Subject: [ruby-talk:11805] Re: list classmethods of a class In message "[ruby-talk:11802] list classmethods of a class" on 01/03/01, Clemens Wyss 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