From: "Peña, Botp" Date: 2007-07-25T17:26:00+09:00 Subject: Re: Help: Get list of modules which are included in the class On Behalf Of Chirag Mistry: # only want a list which contains modules M1 and M2 for MyClass. If we # call “MyClass.ancestors” which returns all the modules which # are include directly or indirectly in this class and all parent class how about subtracting fr there =) something like, irb(main):026:0> C2.ancestors - (Class.new.ancestors + [C2]) => [M2, M1] sorry if my answer sound stupid. kind regards -botp