From: Daniel Berger Date: 2007-04-06T00:55:05+09:00 Subject: Re: Redefining initialize while staying -w clean On Apr 5, 9:40 am, James Edward Gray II wrote: > On Apr 5, 2007, at 10:35 AM, Daniel Berger wrote: > > > If I do "undef_method(:initialize)" and run with -w, I'll get: > > > "warning: undefining `initialize' may cause serious problem". > > Does this work? > > remove_method(:initialize) if method_defined? :initialize Unfortunately, using remove_method just issues a different message: "warning: removing `initialize' may cause serious problem" Regards, Dan