Sometimes you see Ruby code that rescue an exception at the top of the hierarchy:
[code language='ruby'] rescue Exception => e
If you must do that, how about providing a means to control-C, by putting this in the method with the rescue:
[code language='ruby'] trap("INT") do puts "Terminating . . . " return # or maybe exit end
comments powered by Disqus