[MacRuby-devel] question on calling super methods in macruby
Eloy Duran
eloy.de.enige at gmail.com
Thu Jun 12 05:08:35 PDT 2008
Hi Richard,
MacRuby is about getting as ruby-ish as possible.
Thus you should simply use the keyword super, your third example.
Cheers,
Eloy
On Jun 12, 2008, at 1:58 PM, Richard Kilmer wrote:
> In RubyCocoa if I had:
>
> def initWithFrame(frame)
> super_initWithFrame(frame)
> # do other stuff
> self
> end
>
> In MacRuby would I just do this:
>
> def initWithFrame(frame)
> super.initWithFrame(frame)
> # do other stuff
> self
> end
>
> or even just
>
> def initWithFrame(frame)
> super
> # do other stuff
> self
> end
>
>
>
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
More information about the MacRuby-devel
mailing list