From: Logan Capaldo Date: 2006-05-01T04:13:48+09:00 Subject: Re: Extending Methods On Apr 29, 2006, at 10:58 AM, Geoff Stanley wrote: > The only problem is those warnings. Is there a different way of > overwriting the Foo class with the FooPlugin class so that these > warnings are not produced? I really don't want to have to resort to > running my program with -W0 (warning level: silent). > > Thanks once again! # Changing Foo, so we temporarily disable warnings begin old_verbosity = $VERBOSE $VERBOSE = nil Foo = FooPlugin2 ensure $VERBOSE = old_verbosity end