On Nov 7, 2007, at 9:52 PM, Thilina Buddhika wrote: > I want to get the names of the classes defined in a Ruby script. Is > there any possible way of doing this ? > > thanks! > > regs, > buddhika > -- > Posted via http://www.ruby-forum.com/. > the basis is: cfp:~ > cat a.rb class A;end class B;end class C < B; end p Class.es BEGIN { class Class ES = [] def es() ES end def inherited(other) es << other end end } cfp:~ > ruby a.rb [A, B, C] a @ http://codeforpeople.com/ -- it is not enough to be compassionate. you must act. h.h. the 14th dalai lama