From: dohzya Date: 2007-07-25T18:04:31+09:00 Subject: Re: Help: Get list of modules which are included in the class How about (C2.ancestors - [C2] - C2.superclass.ancestors) ? Le mercredi 25 juillet 2007 � 17:54 +0900, Pe�a, Botp a �crit : > From: Robert Dober [mailto:robert.dober@gmail.com] > # p C2.ancestors - (Class.new.ancestors + [C2]) > > yap, your scheme is more straightforward > > (C.ancestors-[Kernel]).select{|x| x.class == Module} > -- Etienne Vallette d'Osia