From: gabriele renzi Date: 2005-08-15T17:21:13+09:00 Subject: Re: Dear RubyGems: Perhaps a better way to override require... Trans ha scritto: > Learned something new pertaining to this today. You can override > require: > > module Kernel > def require > #... > end > end > > And yet still access the original funtionality via the module-method: > > Kernel.require( ... ) > > Very handy. just use super: def require file new stuff super end the problem is that you can't stack overriding methods, you always get back to the original one