Re: Call functions of superclass
- From: James Edward Gray II <james@xxxxxxxxxxxxxxxxxxx>
- Date: Thu, 24 Aug 2006 00:39:41 +0900
On Aug 23, 2006, at 10:30 AM, Bart Braem wrote:
I'd like to be able to do
class Parent
def iamuseful
end
end
class Child
class Child < Parent
def iamuseful
# do stuff
super.iamuseful
end
end
But that gives strange results, I seem to be unable to call methods from a
superclass?
Try the correction above. ;)
James Edward Gray II
.
- Follow-Ups:
- Re: Call functions of superclass
- From: Julian 'Julik' Tarkhanov
- Re: Call functions of superclass
- References:
- Call functions of superclass
- From: Bart Braem
- Call functions of superclass
- Prev by Date: Re: Call functions of superclass
- Next by Date: Re: Call functions of superclass
- Previous by thread: Re: Call functions of superclass
- Next by thread: Re: Call functions of superclass
- Index(es):
Relevant Pages
|