From: Kent Dahl Date: 2001-11-22T17:55:27+09:00 Subject: [ruby-talk:26123] Re: differing #args to super.initialize? Bill Kelly wrote: > So, out of curiosity is there some alternate way one might be able to: > > super.someOtherMethodThanTheOneImInRightNow(x) ? You could do something like this, with alias_method, which seems to work nicely... class A def a puts "A.a" end end class B < A alias_method :super_A_a, :a def a puts "B.a" end def b super_A_a a end end b = B.new b.b -- <[ Kent Dahl ]>================<[ http://www.stud.ntnu.no/~kentda/ ]> )____(stud.techn.;ind.�k.data)||(softwareDeveloper.at(Trustix))_( /"Opinions expressed are mine and not those of my Employer, "\ ( "the University, my girlfriend, stray cats, banana fruitflies, " ) \"nor the frontal lobe of my left cerebral hemisphere. "/