From: Stefan Lang Date: 2005-11-05T02:25:58+09:00 Subject: Re: Class and Mixin with same method name problem On Friday 04 November 2005 18:07, petermichaux@yahoo.com wrote: > What if two moduals are included and each uses the same method > name? In the example below the Debug whoAmI? method is called. How > do I call the Burp whoAmI? method? There is no clean and simple way to do so. > module Debug > def whoAmI? > "#{self.class.name}" > end > end > > module Burp > def whoAmI? > "Burp #{self.class.name}" > end > end > > class EightTrack > include Burp > include Debug The following method definition is useless. Remove it and you'll get the same result. > def whoAmI? > super > end > end > > et = EightTrack.new > > p et.whoAmI? -- Stefan