From: Stephen White Date: 2001-08-23T07:21:26+09:00 Subject: [ruby-talk:20130] Re: Another Possible RCR - Wrappers via Mixins On 23 Aug 2001 07:06:07 +0900, Kero van Gelder wrote: > > module Test > > def fred *args > > puts "1" > > super *args > > puts "2" > > end > > end > > module MoreTest > def fred(*args) > puts "more" > super > puts "test" > end > end > > > include Test > > include MoreTest > > > def fred str > > puts str > > end > > > > fred "hello world" > > > > will print > > what should this print? Assuming your "super" was really "super *args", this should print: more 1 hello world 2 test same as if the renaming method was being used (maybe this is how Ruby could implement it behind the scenes). The mix-ins would be chained to avoid the problems of multiple inheritance, so the order of inclusion would be important.