From: Brian Marick Date: 2001-06-29T02:41:40+09:00 Subject: [ruby-talk:17022] removing singleton methods Is there a way to remove a singleton method from an object? > o=Object.new > def o.mumble > 'mumble' > end > o.singleton_methods ["mumble"] > o.remove_method(:mumble) NameError: undefined method `remove_method' for # (irb):43:in `irb_binding' I want to avoid the warning from ruby -w when I redefine the singleton method. (I know I can change $VERBOSE around the definition, but I got curious.) -- Brian Marick, marick@testing.com www.testing.com - Software testing services and resources www.testingcraft.com - Where software testers exchange techniques www.visibleworkings.com - Adequate understanding of system internals