From: "marcandre (Marc-Andre Lafortune)" Date: 2013-03-08T09:57:02+09:00 Subject: [ruby-core:53209] [ruby-trunk - Bug #8045][Open] Object#singleton_methods incompatible with prepend Issue #8045 has been reported by marcandre (Marc-Andre Lafortune). ---------------------------------------- Bug #8045: Object#singleton_methods incompatible with prepend https://bugs.ruby-lang.org/issues/8045 Author: marcandre (Marc-Andre Lafortune) Status: Open Priority: Normal Assignee: Category: core Target version: current: 2.1.0 ruby -v: r39608 Similar to #8044, although implementation is independent: o=Object.new def o.foo; end o.singleton_methods(false) # => [:foo], ok o.singleton_class.send :prepend, Enumerable o.singleton_methods(false) # => [], should be [:foo] -- http://bugs.ruby-lang.org/