[MacRuby] #1474: Modules mixed into reopened classes do not show in #ancestors
MacRuby
ruby-noreply at macosforge.org
Tue Feb 28 21:46:33 PST 2012
#1474: Modules mixed into reopened classes do not show in #ancestors
------------------------------------+---------------------------------------
Reporter: mrada@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords: reduction
------------------------------------+---------------------------------------
When I mix a module into a class that I have reopened, the module does not
show up to `Module#ancestors`, but the methods still get mixed in.
{{{
module Test
def meow
puts "woof"
end
end
class Cat; end
p Cat.ancestors
class Cat
include Test
end
p Cat.ancestors
Cat.new.meow
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/1474>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list