« Return to Thread: How to invoke RubyParser on a class?

Re: How to invoke RubyParser on a class?

by rogerdpack :: Rate this Message:

Reply to Author | View in Thread

> What do I need to give
> RubyParser to get it to parse a defined class or class::method?

With ParseTree there is a method to do this.  With RubyParser I don't
think there is.  With 1.9.1 you could use {method, proc}#source_location
to try to re-locate the source and parse it from there.
--
Posted via http://www.ruby-forum.com/.

 « Return to Thread: How to invoke RubyParser on a class?