[MacRuby-devel] [MacRuby] #205: Incorrect list of instance methods
MacRuby
ruby-noreply at macosforge.org
Sat Jan 10 04:01:24 PST 2009
#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/>
More information about the MacRuby-devel
mailing list