From: transfire@... Date: 2006-06-21T01:03:44+09:00 Subject: Re: Module include matters ? Jonas Pfenniger wrote: > Thanks both of you for your insight. I've created a small hack to fix that issue > > class Module > # Weird hack to ensure deep inclusion of modules > def include_deep(mod) > include mod > ancestors[1..-1].select do |a| > a != mod and not a.ancestors.include?(mod) > end.each { |a| a.include_deep(mod) } > end > end 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: class X include B end X.new.somemethod T.