From: "Peña, Botp" Date: 2007-07-25T18:05:08+09:00 Subject: Re: Help: Get list of modules which are included in the class From: Pe�a, Botp [mailto:botp@delmonte-phil.com] # 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} i forgot one, irb(main):044:0> C.included_modules => [M2, M1, Kernel] irb(main):046:0> C3.included_modules - [Kernel] => [M2, M1]