From: Paul Brannan Date: 2008-11-13T03:38:29+09:00 Subject: [ruby-core:19887] Re: Proposal: Method#get_args On Thu, Nov 13, 2008 at 02:06:15AM +0900, Charles Oliver Nutter wrote: > def foo(a, b = 1, *c, d) > => [[:req, :a], [:opt, :b, 1], [:rest, :c], [:req, :d]] As an object, I would represent this as: #, #, #, # ]> > def foo(a, (b, c)) > => [[:req, :a], [[:req, :a], [:req, :b]]] And this as: #, #, # ] ]> Paul