Xavier Noria
7/22/2007 5:55:00 PM
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