Ticket #716 (closed defect: fixed)
Undefining a method and then calling the method with a different arity than the original fails wrong
| Reported by: | eloy.de.enige@… | Owned by: | eloy.de.enige@… |
|---|---|---|---|
| Priority: | blocker | Milestone: | MacRuby 0.7 |
| Component: | MacRuby | Keywords: | mocha |
| Cc: | kayla.rosebud@… |
Description
% cat t.rb
class X
undef_method :require
def method_missing(m, *a, &b)
p m, a, b
end
end
X.new.require
% ruby19 t.rb
:require
[]
nil
% macruby t.rb
/Users/eloy/Documents/DEVELOPMENT/MacRuby/macruby/t.rb:1:in `<main>': wrong number of arguments (0 for 0) (ArgumentError)
This most likely has to do with the difference in arity, as calling require *with* an arg works as expected.
Change History
Note: See
TracTickets for help on using
tickets.

