From: Miquel Date: 2006-11-17T01:37:28+09:00 Subject: Re: Accessing base method... On Fri, 17 Nov 2006 01:16:51 +0900 Soso Soso wrote: > Hi all, > > I'm new to ruby, being trying to access base class method but with no > luck until now. Here's a snippet to get an idea: > > > class Parent > def knox > puts 'parent' > end > end > > class Child < Parent > def knox > puts 'child' > end > def test > knox # here I want to call knox method from Parent class... ?? super() # this is calling Parent same name method. > end > end > > Thanks, > -soso > ______________________________________________ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y m�viles desde 1 c�ntimo por minuto. http://es.voice.yahoo.com