>>>>> "D" == Dave Thomas <Dave / thomases.com> writes:

D>    ruby -rStuff  prog.rb
D> and have 'Stuff' be able to examine prog.rb's parse tree.

 Have you tried with set_trace_func and intercept the first call to "line" ?

Guy Decoux