Project

General

Profile

Actions

Bug #8045

closed

Object#singleton_methods incompatible with prepend

Added by marcandre (Marc-Andre Lafortune) about 11 years ago. Updated about 11 years ago.

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

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 1 (0 open1 closed)

Is duplicate of Ruby master - Bug #8044: Object#methods incompatible with prependClosed03/08/2013Actions

Updated by nobu (Nobuyoshi Nakada) about 11 years ago

  • Status changed from Open to Closed
Actions

Also available in: Atom PDF

Like0
Like0