Julian 'Julik' Tarkhanov wrote:
> On 23-aug-2006, at 17:39, James Edward Gray II wrote:
> 
>> Try the correction above.  ;)
> 
> Actually I am curious to know:
> 
> class Parent
>     def something
>     end
> 
>     def another
>     	# do foo
>     end
> end
> 
> class Child < Parent
>     def something
     	super # call _another_ instance method BUT of the
> superclass, not one's own
>     end
> 
>     def another
>     	# do bar instead of foo
>     end
> end
> 
> is that at all possible somehow? Just out of curiosity.

I think that's what you are wanting.  It calls the parent's 'another' 
method with the exact same parameters as were passed to child's 
'another' method.  If you want parameters that are different, simply 
specify them as if you were calling 'Parent.another(parameter)'. (ie: 
super(parameter) )

-- 
Posted via http://www.ruby-forum.com/.