From: Roger Pack Date: 2008-10-29T00:43:40+09:00 Subject: Re: Named arguments gem > require 'named_arguments' > > class Example > > def another_instance_method( a = :a, b = :b, c = :c) > [a,b,c] > end > > named_args_for :instance_method, :another_instance_method How fascinating that your and my project would arrive at almost the same spot from [seemingly] different angles. LOL. http://code.google.com/p/ruby-roger-useful-functions/wiki/NamedParameters It would be interesting to compare the two. Perhaps we should combine projects. One thing to also look out for is if it works appropriately with blocks. I think the next step for this type of project is to have it fallback to ruby_parser [which just now started to work with 1.9]. We could thus use #UnboundMethod.source_location to try and parse the original source. Then it could work with 1.9 Cheers! -=R -- Posted via http://www.ruby-forum.com/.