Project

General

Profile

Actions

Bug #11980

closed

External methods are appearing as instance methods for String

Added by danielpclark (Daniel P. Clark) almost 9 years ago. Updated over 5 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:72820]

Description

It appears we're having methods creep into the String scope.

"".methods.count
# => 170

defined? "".a
# => nil

def a
 "foo"
end

"".methods.count
# => 171

defined? "".a
# => "method"

"bar".a
# => "foo"
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0