From: Jos Backus Date: 2007-03-22T09:13:46+09:00 Subject: Re: Ruby Method Signatures (was Re: Multiton in standard library) On 3/19/07, TRANS wrote: > >Which reminds me, it would be nice of Method could return a >representation of a methods signature. I've run into this need >elsewhere too. This would be nice for some kinds of tracing. We have a Perl Trace library at work which prints the method's arguments, and is used like this: su foo { my($arg1, $arg2) = @_; Trace::begin(@_); ... } No easy way to do this in Ruby beyond Trace.begin(arg1, arg2) Instead I'd like to be able to write Trace.begin(__argv__) or something like that... -- Jos Backus jos at catnook.com