From: Dave Thomas Date: 2000-10-31T23:53:19+09:00 Subject: [ruby-talk:5972] Re: Can singleton methods be removed? "John Small" writes: > Evidently the Module.remove_method can't be applied > to an instance of a class. The class is effectively anonymous, so there's no immediate receiver you can use. Even if there, was, 'remove_mthod' is private, so it wouldn't work: foo.classs.remove_method :hello #=> private method 'remove_method' called However, you can do it using 'class <<' notation. foo = "string" def foo.hello puts "hello" end foo.hello #=> hello class < undefined method Regards Dave