Method#inspect with source location.

Method#inspect shows with source location.
[Feature #14145]
This commit is contained in:
Koichi Sasada 2019-07-14 15:42:55 +09:00
parent 4ce935cd5d
commit 47b04557b0
3 changed files with 21 additions and 9 deletions

View file

@ -2313,7 +2313,7 @@ class TestModule < Test::Unit::TestCase
A.prepend InspectIsShallow
expect = "#<Method: A(ShallowInspect)#inspect(shallow_inspect)>"
expect = "#<Method: A(ShallowInspect)#inspect(shallow_inspect) -:7>"
assert_equal expect, A.new.method(:inspect).inspect, "#{bug_10282}"
RUBY
end