Project

General

Profile

ActionsLike0

Bug #8044

closed

Object#methods incompatible with prepend

Added by marcandre (Marc-Andre Lafortune) about 12 years ago. Updated about 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 - Bug #8045: Object#singleton_methods incompatible with prependClosed03/08/2013Actions

Added by nobu (Nobuyoshi Nakada) about 12 years ago

Revision 99126a4c

class.c: from the origin class

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

ActionsLike0

Also available in: Atom PDF