Issue #8045 has been updated by nobu (Nobuyoshi Nakada).

Status changed from Open to Closed


----------------------------------------
Bug #8045: Object#singleton_methods incompatible with prepend
https://bugs.ruby-lang.org/issues/8045#change-37564

Author: marcandre (Marc-Andre Lafortune)
Status: Closed
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/