class Blah
def spleen
super("foo")
end
end
it's not as weird as it seems.
see 7.5 in http://www.rubycentral.com/faq/rubyfaqall.html
bill
On Fri, Mar 19, 2004 at 07:44:53AM +0900, Bill Kelly wrote:
> Hi all!
>
> I'm trying to do:
>
> def spleen(a)
> end
>
> class Blah
> def spleen
> spleen("foo") # I want this to call the "outer" spleen, above
> end
> end
>
> ...is this possible (using some appropriate syntax?)
>
> I tried ::spleen("foo") but was not valid syntax...
>
>
> Thanks!
>
> Regards,
>
> Bill
>
>
>
>
>