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 :)