From: "marcandre (Marc-Andre Lafortune)" Date: 2013-03-08T09:55:04+09:00 Subject: [ruby-core:53208] [ruby-trunk - Bug #8044] Object#methods incompatible with prepend Issue #8044 has been updated by marcandre (Marc-Andre Lafortune). {public|protected|private}_methods have the same problem, since they all call class_instance_method_list ---------------------------------------- Bug #8044: Object#methods incompatible with prepend https://bugs.ruby-lang.org/issues/8044#change-37372 Author: marcandre (Marc-Andre Lafortune) Status: Open Priority: Normal Assignee: Category: core Target version: current: 2.1.0 ruby -v: r39608 Object#methods incompatible with prepend: o = Object.new def o.foo; end o.methods(false) # => [:foo], ok o.singleton_class.send :prepend, Enumerable o.methods(false) # => [], should be [:foo] -- http://bugs.ruby-lang.org/