[MacRuby] #1187: A method added as an extension to the Kernel Module is not available in subclass of Object through super
#1187: A method added as an extension to the Kernel Module is not available in subclass of Object through super -------------------------------------------+-------------------------------- Reporter: mark.smith@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.10 Component: MacRuby | Keywords: Keyword Module Extension -------------------------------------------+-------------------------------- A method added as an extension to the Kernel Module is not available in subclass of Object through super. In one instance a subclass of object is not able to call a method defined in the Kernel module through super, claiming that – ... super: no superclass method ... One work around is to add the method to both Object and Kernel. Adding the method to either but not both does not resolve the issue. Note: Niether MRI or Rubinius require this. MacRuby 0.9 (ruby 1.9.2) [universal-darwin10.0, x86_64] rubinius 1.2.0 (1.8.7 release 2010-12-21 JI) [x86_64-apple-darwin10.4.0] ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0] Thanks, and happy hunting :). -- Ticket URL: <http://www.macruby.org/trac/ticket/1187> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby