From: "Raveendran .P" Date: 2010-02-11T16:10:12+09:00 Subject: Re: Global rescue - DRY (don't repeat yourself) Hi, lib_error.rb: class Library def self.error puts "Oops. something went wrong" end end original_code.rb: # require the file first line of code instead of calling in mid of programs require 'lib_error.rb' begin puts fg rescue Library.error end begin puts fdg rescue Library.error end Run the code: Oops. something went wrong Oops. something went wrong I hope it clears ur doubt. If need more details then update here asap. Thanks, P.Raveendran http://raveendran.wordpress.com -- Posted via http://www.ruby-forum.com/.