From: "F. Senault" Date: 2007-07-25T22:05:07+09:00 Subject: Re: Help: Get list of modules which are included in the class Le 25 juillet � 11:32, Pe�a, Botp a �crit : > FredSenault's previous post should give a hint Just Fred is all right, y'know... :) But this is just to say I missed the obvious with meta-programming inside the Module class : class Module alias orig_include include def directly_included_modules @d_i_m || [] end def include(m) @d_i_m ||= [] @d_i_m << m orig_include m end end (Maybe some 'freeze'ing could be in order, too.) Fred -- Love, I don't like to see so much pain So much wasted and this moment keeps slipping away I get so tired of working so hard for out survival I look to the time with you to keep me awake and alive (Peter Gabriel, In Your Eyes)