Ticket #371 (closed defect: fixed)
Module methods included in the class Module are not visible to other classes.
| Reported by: | mred@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | blocker | Milestone: | MacRuby 0.11 |
| Component: | MacRuby | Keywords: | |
| Cc: |
Description
module A
def b
puts 'b'
end
end
class Module
include A
end
class C
b()
end
Running the above on Ruby 1.9 prints out 'b'. Running it on MacRuby 0.5 generates an "undefined method `b' for C:Class (NoMethodError)"
Change History
Note: See
TracTickets for help on using
tickets.

