mirror of
https://github.com/ruby/ruby.git
synced 2025-09-23 12:33:56 +02:00
Method#inspect with source location.
Method#inspect shows with source location. [Feature #14145]
This commit is contained in:
parent
4ce935cd5d
commit
47b04557b0
3 changed files with 21 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue