summaryrefslogtreecommitdiff
path: root/sample/list2.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/list2.rb')
-rw-r--r--sample/list2.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/sample/list2.rb b/sample/list2.rb
index fef9d35a841..1c2ca08150e 100644
--- a/sample/list2.rb
+++ b/sample/list2.rb
@@ -1,10 +1,6 @@
# Linked list example -- short version
class Point
- def Point.new(x, y)
- super.init(x, y)
- end
-
- def init(x, y)
+ def init_object(x, y)
@x = x; @y = y
self
end