From: Roger Pack Date: 2010-01-27T10:22:10+09:00 Subject: Re: Find the parameters of each method in a class >> irb(main):005:0> C.instance_method(:meth).parameters >> => [[:req, :a], [:req, :bb], [:opt, :ccc], [:block, :b]] >> >> But you will not get the names for C methods like String#tr, just the >> type of the parameters. > Dang thats awesome and exactly what I need! Why can't it be in 1.8? :( rdp-arguments gem: >> require 'arguments' class C >> def meth(a, bb, ccc = nil, &b) >> end >> end => nil >> Arguments.names C, :meth => [[:a], [:bb], [:ccc, "nil"]] You can get it in 1.9.1 with the methopara gem, too. GL! -r -- Posted via http://www.ruby-forum.com/.