Robert Klemme
11/16/2006 5:01:00 PM
On 16.11.2006 17:16, 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... ??
> end
> end
>
> Thanks,
> -soso
use "super".
robert