On Jun 23, 2006, at 10:25 AM, Mat Schaffer wrote:

> What about something like:
> begin
>   load(ARGV[0])
> rescue Exception => e
>   do_stuff_with e
> end
>
> then:
> ruby my_special_env.rb script_to_run.rb
>
> Would this be unacceptable?  It seems to me you could turn your  
> environment into an app much like rcov or ruby-prof.

This is what I've been using, that had to be replaced.  :(  The  
problems here are many:  DATA, $0/$PROGRAM_NAME, etc.

James Edward Gray II