From: dohzya Date: 2007-08-02T01:21:42+09:00 Subject: Re: Help: Get list of modules which are included in the class > Etienne, > > Thank you very much for this feedback. After thinking about it, here > is my take on this: > > We include Module1 in Class1 and so from inheritence this implies > that Class2 does not actually include Module1 directly, since it has > already been included. Hence including Module1 in Class2 is > effectively a no-op. > > This makes semantic sense, also: "directly_included_modules" should > be the modules that self includes which the superclass does not. In > this light Module1 is not directly included so my code does what is > expected. > > (Also, for the record, Module already has an included_modules method, > but I am overwriting because I don't want Kernel listed for my purposes) > > (Thanks to Mark Josef for helping me with this idea) > > -- > Wayne E. Seguin > Sr. Systems Architect & Systems Admin > wayneseguin@gmail.com > Thanks :$ Indeed, it's comparable with the difference between 'define' and 'overload' (it isn't?)... moreover it's an overloading with same method(s) :) (I'm sorry if I'm repeating anyone, it's hard for me to express myself and understand correctly in English... I'm working in this way) -- Etienne Vallette d'Osia