From: Dave Thomas Date: 2008-11-10T23:24:12+09:00 Subject: [ruby-core:19778] Re: Proposal: Method#get_args On Nov 10, 2008, at 7:54 AM, Brian Candler wrote: >> However, a class feels too >> heavyweight for the metaprogramming case, while the anonymous tuple >> feels a little too lightweight and devoid of context, at least to me. > > A Struct perhaps? You can always use to_a to get a tuple back. Or an array of strings? def fred(a, b=2, *c &block) end method(:fred).arguments => ["a", "b=2", "*c", "&block" ]