From: Joel VanderWerf Date: 2004-05-25T15:37:17+09:00 Subject: Re: RCR? change Proc#inspect to show start..end lines Florian Gross wrote: > Joel VanderWerf wrote: > >> It would be easier to extract the entire code block without doing >> parsing if Proc#inspect returned a _range_ of lines: > > > Heh, are you wanting to do the same that I want to? :) > > (See http://noegnud.sourceforge.net/flgr/proc_source.rb -- I'm doing > lots of manual parsing there however.) That's much more sophisticated than what I need. I've got a little debugger for a domain-specific language embedded in ruby, and I want to show what a proc is about to do. So all I need is first and last line numbers. Great hack, though :)