From: ara.t.howard@... Date: 2006-05-04T07:14:44+09:00 Subject: Re: mixin puzzle On Thu, 4 May 2006, polypus wrote: > > given the below, if you were not allowed to modify class X > > module N > def foo > end > end > > module M > # ... > end > > class X > extend M > end > > would it possible for > > x = X.new > > to somehow call foo as an instance method of x? harp:~ > cat a.rb module N def foo() p 42 end end module M include N end class X include M end x = X.new x.foo harp:~ > ruby a.rb 42 -a -- be kind whenever possible... it is always possible. - h.h. the 14th dali lama