From: Florian Gilcher Date: 2009-12-15T08:26:35+09:00 Subject: Re: Introspecting Method Arguments with Method.arity Ruby 1.9.2 has Method#parameters: def foo(a, b=nil, *c, &d) end method(:foo).parameters #=> [[:req, :a], [:opt, :b], [:rest, :c], [:block, :d]] Ruby 1.9.1 gains this ability by installing the "methopara" gem. Regards, Florian