Yesterday (Feb 10, 2009),
asakusa.rb
In the monthly meet-up of that community,
@ko1_twitte
And I made it as a gem for ease of use. Now we can use it by the command below.
1 % sudo gem install methopara --source http://merbi.st
Usage is as follows.
1 >> require "rubygems" 2 >> require "methopara" 3 >> def foo(a,b=nil,&c) end 4 >> method(:foo).parameters5 => [[:req, :a], [:opt, :b], [:block, :c]]
This gem is only for Ruby-1.9.1
Enjoy!
See Also
Thanks for doing that