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]
on 2013-03-08 02:02
on 2013-03-13 07:17
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]
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.