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/