From: Jonas Pfenniger Date: 2006-06-21T02:24:09+09:00 Subject: Re: Module include matters ? On 20/06/06, Jonas Pfenniger wrote: > On 20/06/06, transfire@gmail.com wrote: > > Hmm... Doesn't seem to do anything. Notice even without the above one > > can instantiate a class and the mothod will "magically" showup. From > > your example: > > Hmm right, let me correct that > doh' I would need to find the children and not the ancestors [C] of the module (B) in which in include the other (A)... I guess it's doable by browsing the ObjectSpace but it's quite expensive. If only modules and classes would also list their childrens. Which is also doable by overriding Module#included I guess but it's not really reliable isn't it ? -- Cheers, zimbatm http://zimbatm.oree.ch