Bug #8045

Object#singleton_methods incompatible with prepend

Added by Marc-Andre Lafortune about 1 year ago. Updated about 1 year ago.

[ruby-core:53209]
Status:Closed
Priority:Normal
Assignee:-
Category:core
Target version:2.1.0
ruby -v:r39608 Backport:

Description

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]

Related issues

Duplicates ruby-trunk - Bug #8044: Object#methods incompatible with prepend Closed 03/08/2013

History

#1 Updated by Nobuyoshi Nakada about 1 year ago

  • Status changed from Open to Closed

Also available in: Atom PDF