From: Tamara Temple Date: 2013-06-07T12:14:33+09:00 Subject: Re: Playing with method_missing -- argument list Bartosz Dziewoński wrote: > You probably want ....send(method, *args) – with a splat before 'args'. Indeed. But the major problem turns out to be line 84 -- the super call should be in an else block and only executed when the other conditions fall through; where it was it was being executed all the time. Update: https://gist.github.com/tamouse/5719507 > Alternatively, look into Object#method and Method#arity methods: > > http://www.ruby-doc.org/core-2.0/Object.html#method-i-method > http://www.ruby-doc.org/core-2.0/Method.html#method-i-arity > > irb(main):002:0> [].method(:dup).arity > => 0 > irb(main):010:0> [].method(:delete_at).arity > => 1 I will make note of those for the future! > -- > Matma Rex > Tamara