Hi,
In message "[ruby-talk:15433] Re: how to remove method from singleton class"
on 01/05/21, Joel VanderWerf <jskeeler / pacbell.net> writes:
|How can I get a reference to this anonymous singleton class, so that I
|can call remove_method on it from a different scope?
class <<obj
self
end.send(:remove_method, name)
or
class <<obj
self
end.class_eval{
remove_method name
}
Ugly, but possible...
matz.