[MacRuby-devel] [macruby] #68: [RubyCocoa Layer] Calling methods from a superclasses implementation, instead of the overriden ones.

macruby ruby-noreply at macosforge.org
Mon Jun 2 12:44:51 PDT 2008


#68: [RubyCocoa Layer] Calling methods from a superclasses implementation,
instead of the overriden ones.
-------------------------------------+--------------------------------------
 Reporter:  eloy.de.enige at gmail.com  |       Owner:  lsansonetti at apple.com
     Type:  enhancement              |      Status:  new                  
 Priority:  trivial                  |   Milestone:  MacRuby 0.3          
Component:  MacRuby                  |    Keywords:  rubycocoa layer      
-------------------------------------+--------------------------------------
 For the RC layer we need to be able to call methods of the superclass. For
 example:

 {{{
 class A
   def foo
     'A'
   end
 end

 class B < A
   def foo
     'B'
   end
 end

 B.new.foo # => "B"
 B.new.__super_send__(:foo) # => "A"
 }}}

-- 
Ticket URL: <http://ruby.macosforge.org/trac/ticket/68>
macruby <http://ruby.macosforge.org/>


More information about the MacRuby-devel mailing list