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

Re: How to invoke RubyParser on a class?

by Juston Davies :: Rate this Message:

Reply to Author | View in Thread

Excellent, I'll look into it! Im still in 1.8.6 now but I'm Im working
my way to 1.9.+
Thanks a for the reply, this gives me some much needed direction.


On Jul 9, 10:16 pm, Roger Pack <rogerpack2...@...> wrote:
> > 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 viahttp://www.ruby-forum.com/.

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