From: Phrogz Date: 2009-06-17T09:41:05+09:00 Subject: Re: Ruby Reflection Method Parameters On Jun 16, 5:13 pm, Sirisha Pusapati wrote: > I have a class called ClassFromString and it has a method called > getCounterValue. It takes a parameter called name. Is there in Ruby > using reflection to get the name of the parameters of a method. There is not. The closest you can get is a hack that reads in source files (if you know where they are, and they're pure Ruby) and either parses the raw code or looks at the abstract syntax tree. Though I'm not actually recommending that you use it, this is why I wrote my own DescribeMethods module: http://phrogz.net/RubyLibs/rdoc/files/DescribeMethods_rb.html (Seriously way more work than you want to do, I'm sure.)