1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/core
Jeremy Evans 0d24fb774d Don't display singleton class in Method#inspect unless method defined there
Previously, if an object has a singleton class, and you call
Object#method on the object, the resulting string would include
the object's singleton class, even though the method was not
defined in the singleton class.

Change this so the we only show the singleton class if the method
is defined in the singleton class.

Fixes [Bug #15608]

(cherry picked from commit e02bd0e713)
2020-03-14 16:15:15 +09:00
..
argf Fixed misspellings 2019-12-20 09:32:42 +09:00
array Update to ruby/spec@dcf4955 2019-12-01 14:11:42 +01:00
basicobject Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
binding Suppress warnings against locations in eval 2019-08-03 14:07:10 +09:00
builtin_constants
class Update to ruby/spec@4eec3dc 2019-11-30 21:26:52 +01:00
comparable Comparable#clamp with a range [Feature #14784] 2019-10-16 01:42:34 +09:00
complex Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
data Update to ruby/spec@4eec3dc 2019-11-30 21:26:52 +01:00
dir Update to ruby/spec@34e6246 2019-09-29 19:13:37 +02:00
encoding Update to ruby/spec@519df35 2019-09-29 16:03:58 +02:00
enumerable Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
enumerator Update to ruby/spec@e69a14c 2019-09-29 18:01:32 +02:00
env Fixed misspellings 2019-12-20 09:32:42 +09:00
exception Makes the receiver to FrozenError.new a keyword parameter 2019-12-20 14:18:20 +09:00
false [EXPERIMENTAL] Make NilClass#to_s, TrueClass#to_s and FalseClass#to_s return a frozen String 2019-09-27 13:52:33 +09:00
fiber Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
file Get rid of false positive misspellings 2019-12-24 10:33:32 +09:00
filetest
float Update to ruby/spec@4eec3dc 2019-11-30 21:26:52 +01:00
gc Update to ruby/spec@e69a14c 2019-09-29 18:01:32 +02:00
hash Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
integer Fixed misspellings 2019-12-20 09:32:42 +09:00
io Update to ruby/spec@4eec3dc 2019-11-30 21:26:52 +01:00
kernel Add spec for capturing Kernel#lambda with Kernel#method 2019-12-21 09:08:52 -05:00
main Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
marshal Update to ruby/spec@4eec3dc 2019-11-30 21:26:52 +01:00
matchdata Update to ruby/spec@4eec3dc 2019-11-30 21:26:52 +01:00
math Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
method Don't display singleton class in Method#inspect unless method defined there 2020-03-14 16:15:15 +09:00
module Fixed misspellings 2019-12-20 09:32:42 +09:00
mutex Update to ruby/spec@28a728b 2019-10-26 20:53:01 +02:00
nil [EXPERIMENTAL] Make NilClass#to_s, TrueClass#to_s and FalseClass#to_s return a frozen String 2019-09-27 13:52:33 +09:00
numeric Update to ruby/spec@519df35 2019-09-29 16:03:58 +02:00
objectspace Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
proc Fix Proc#<< spec 2020-01-16 17:52:04 +09:00
process Make more attempts to check for the precision of Process.times 2019-12-02 21:23:10 +01:00
queue
random Update to ruby/spec@28a728b 2019-10-26 20:53:01 +02:00
range Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
rational Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
regexp Revert "Regexp#match{?} with nil raises TypeError as String, Symbol (#1506)" 2019-12-04 06:40:54 +09:00
signal Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
sizedqueue Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
string Fixed misspellings 2019-12-20 09:32:42 +09:00
struct Update to ruby/spec@4eec3dc 2019-11-30 21:26:52 +01:00
symbol Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
systemexit
thread Move version guard outside to make it clear the method was added in Ruby 2.5 2019-12-22 11:39:22 +01:00
threadgroup Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
time Fixed misspellings 2019-12-20 09:32:42 +09:00
tracepoint Update to ruby/spec@875a09e 2019-07-27 12:40:09 +02:00
true [EXPERIMENTAL] Make NilClass#to_s, TrueClass#to_s and FalseClass#to_s return a frozen String 2019-09-27 13:52:33 +09:00
unboundmethod Update to ruby/spec@519df35 2019-09-29 16:03:58 +02:00
warning