Ticket #626 (closed defect: duplicate)
macruby fails Class.class_eval in macruby but not in 1.8 & 1.9?
| Reported by: | rebotfc@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | blocker | Milestone: | MacRuby 0.11 |
| Component: | MacRuby | Keywords: | |
| Cc: | ernest.prabhakar@…, james@… |
Description (last modified by martinlagardette@…) (diff)
Macruby fails executing the below, but it works fine in ruby 1.8 and ruby 1.9, any ideas why?
module Macro def foofoo puts "barbar" end end Class.class_eval do include Macro end Array.foofoo
class_eval_test.rb:7:in `<main>': undefined method `foofoo' for NSMutableArray:Class (NoMethodError)
Change History
Note: See
TracTickets for help on using
tickets.

