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