--001636c5b9b9c66e70048d15e760 Content-Type: text/plain; charset=UTF-8 So if the do_stuff is in a format like this: def do_something . . . end do_something Then when you could do is have a module which overrides Ruby's method that gets called when you define a method. You can alias the method being created to something else, then define a new method which calls that one, but wraps it in whatever error-handling code you want. On Thu, Aug 5, 2010 at 10:55 AM, Martin Hansen <mail / maasha.dk> wrote: > Andrew Wagner wrote: > > What kind of stuff are you doing in my_script.rb? Defining a class? A > > method? Several methods? Just evaluating code? > > <do_stuff> would be something simple like parsing a tabular file and > raising an error if the format is wrong. > > > Cheers, > > > Martin > -- > Posted via http://www.ruby-forum.com/. > > --001636c5b9b9c66e70048d15e760--