From: Xavier Noria Date: 2007-07-23T02:54:55+09:00 Subject: Re: How do you "undef_method" for a class method? El Jul 22, 2007, a las 6:44 PM, Dean Wampler escribi�: > Module#undef_method and Module#remove_method work fine for instance > methods, > but if you specify a class method, your get an error that it > doesn't exist. > (I'm using ruby 1.8.6.) You need to get into the singleton class: (class << Foo; self; end).send(:remove_method, :method) -- fxn