[MacRuby-devel] question on calling super methods in macruby

Richard Kilmer rich at infoether.com
Thu Jun 12 04:58:25 PDT 2008


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





More information about the MacRuby-devel mailing list