On 11/15/10 4:58 PM, Guilherme Silveira wrote:
Thanks Roland,

ParseTree and Ripper are file source parsers,
That's incorrect for ParseTree, which essentially just turned MRI's AST into a Ruby data structure, ie. it worked at runtime without looking at the source. Merb had a feature, long ago, called action arguments, which used ParseTree to get at argument names (the docu link is gone, but I wrote about it here http://www.infoq.com/news/2009/07/ruby192-preview1-rubyversions )

There's a JRuby version of ParseTree (oddly named 'jParseTree') that I wrote a few years ago, but it hasn't been updated in quite a while, and probably doesn't run in its current state (unless the JRuby AST has been stable for the last 3 years).

Hm... come to think of it... this http://www.infoq.com/news/2009/07/ruby192-preview1-rubyversions mentions that Ruby 1.9.2 might get Method#parameters, which should do what you want. No idea about the status of this right now;


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to