From: petermichaux@... Date: 2005-11-05T07:37:09+09:00 Subject: Re: Class and Mixin with same method name problem Robert Klemme wrote: > petermichaux@yahoo.com wrote: > > Now why doesn't the example below make two who_am_i calls? > > One to Burp and one to Debug. It only calls Burp. > > Wrong. Look again. :-) Victim of a new language. I got it. Thanks! Peter > > module Debug > > def who_am_i > > "Debug" > > end > > end > > > > module Burp > > def who_am_i > > "Burp" > > end > > end > > > > class EightTrack > > include Burp > > include Debug > > def who_am_i > > Debug.instance_method(:who_am_i).bind(self).call > > Burp.instance_method(:who_am_i).bind(self).call > > end > > end > > > > et = EightTrack.new > > > > p et.who_am_i