From: Martin Hansen Date: 2010-08-05T22:51:03+09:00 Subject: Re: Abstracting exception handling I was hoping for a setup like this in two files: my_script.rb: include "my_class" or raise __END__ my_class.rb: def do_at_begin set trap for signals. status end def do_at_exit begin rescue Exception ensure p status end end status = do_at_begin END { do_at_exit(status) } __END__ I want to keep the my_script.rb file minimal and hence move the error handling to the included file. I have no idea if this can be done? Martin -- Posted via http://www.ruby-forum.com/.