From: Arlen Christian Mart Cuss Date: 2007-09-01T08:20:35+09:00 Subject: Aliasing methods as a way to wrap them (Was: Re: Overriding Kernel#raise) > > module Kernel > > alias _raise raise > > > > def raise(*a) > > begin > > _raise(*a) > > rescue Exception => e > > $stderr.print e.class, ": ", e.message, "\n" > > $stderr.puts e.backtrace unless e.backtrace.nil? > > end > > end > > end I'm always a bit worried when I do this that there's a chance I'll be aliasing my method right into someone else's aliased method. Is there any way to do this 'safely'? - Arlen.