Project

General

Profile

Actions

Bug #8044

closed

Object#methods incompatible with prepend

Added by marcandre (Marc-Andre Lafortune) almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
r39608
Backport:
[ruby-core:53207]

Description

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]

Related issues 1 (0 open1 closed)

Has duplicate Ruby master - Bug #8045: Object#singleton_methods incompatible with prependClosed03/08/2013Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0