From: Ned Konz Date: 2002-06-05T06:59:44+09:00 Subject: Re: Calling a (any) superclass method when already have one by that name On Tuesday 04 June 2002 02:37 pm, Philip Mateescu wrote: > So, how do I call a method of my superclass when I have a method > with the same name in my current class (i.e. is there any other way > beside aliasing) ? What's wrong with aliasing? class A def foo puts "A::foo" end end class B < A alias :aFoo :foo # refer to A::foo def foo puts "B::foo" aFoo end end -- Ned Konz http://bike-nomad.com GPG key ID: BEEA7EFE