Projects

Ticket #68 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

[RubyCocoa Layer] Calling methods from a superclasses implementation, instead of the overriden ones.

Reported by: eloy.de.enige@… Owned by: lsansonetti@…
Priority: trivial Milestone: MacRuby 0.3
Component: MacRuby Keywords: rubycocoa layer
Cc:

Description

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"

Change History

Changed 4 years ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed

Fixed by r306/trunk. The method that was added is super_objc_send. osx/rubycocoa.rb was modified to use it.

Note: See TracTickets for help on using tickets.