From cda8664471b5c2adb9d1ea9563ac38378621d0fd Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Mon, 19 Aug 2019 18:00:29 +0900 Subject: Update a sample code (#2387) Kernel#inspect does not call #to_s now To follow https://github.com/ruby/ruby/commit/fd7dc23d281f38a71fa7f9c32812cd468c4b1788 --- sample/list3.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sample/list3.rb') diff --git a/sample/list3.rb b/sample/list3.rb index 1d9f04b710..110e405cf9 100644 --- a/sample/list3.rb +++ b/sample/list3.rb @@ -7,7 +7,7 @@ class Point self end - def to_s + def inspect sprintf("%d@%d", @x, @y) end end -- cgit v1.2.3