From: transfire@... Date: 2006-07-11T22:12:28+09:00 Subject: Re: module private methods inheritance ? Jonas Pfenniger wrote: > Hi list, > > while playing with ruby, I've hit a point I'm not really clear about. > > code : > > module A > def initialize; puts "From A" end > end > > module B > def initialize; puts "From B" end > end > > module A > include B > end > > class C > include A > end > > c = C.new > From A > => # > > Now, let's say that the only thing I can change in that code it the B > module. How would you do so that I get "From B" instead of "From A" ? see Facets' Kernel#as T.