From: "Peña, Botp" Date: 2007-07-25T17:54:07+09:00 Subject: Re: Help: Get list of modules which are included in the class 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}