From: Trans Date: 2005-08-15T20:41:13+09:00 Subject: Re: Dear RubyGems: Perhaps a better way to override require... gabriele renzi wrote: > 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 Basicially my original idea, but w/o the module. Good idea. Thanks. After trying every possibility multiple times using super does seem to work the best. T.