[MacRuby] #205: Incorrect list of instance methods
#205: Incorrect list of instance methods ----------------------------------------+----------------------------------- Reporter: vincent.isambart@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ----------------------------------------+----------------------------------- When a class includes a module, the methods of this module appears in the instance_methods(false) of this class AND in the instance_methods(false) of the module. It should only appear in the instance_methods(false) of the module. {{{ module X def x end end class A include X end p A.instance_methods(false) p X.instance_methods(false) }}} displays: (I have no idea why :dup is there) {{{ [:x, :dup] [:x] }}} instead of: (Ruby 1.9) {{{ [] [:x] }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/205> MacRuby <http://macruby.org/>
#205: Incorrect list of instance methods ----------------------------------------+----------------------------------- Reporter: vincent.isambart@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ----------------------------------------+----------------------------------- Comment(by eloy.de.enige@…): I think #dup is there because it was overriden for objc somewhere. Which causes #189 -- Ticket URL: <http://www.macruby.org/trac/ticket/205#comment:1> MacRuby <http://macruby.org/>
#205: Incorrect list of instance methods ----------------------------------------+----------------------------------- Reporter: vincent.isambart@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: major | Milestone: MacRuby 0.6 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------------+----------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.6 Comment: Seems to be fixed in trunk (as of r3489). {{{ $ ./miniruby t.rb [] [:x] $ ruby t.rb [] ["x"] $ /Volumes/SL/usr/local/bin/ruby19 t.rb [] [:x] }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/205#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby