summaryrefslogtreecommitdiff
path: root/sample/clone.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/clone.rb')
-rw-r--r--sample/clone.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/sample/clone.rb b/sample/clone.rb
index 6a752e8ab5..69d2f1d52b 100644
--- a/sample/clone.rb
+++ b/sample/clone.rb
@@ -1,3 +1,9 @@
+# object cloning & single method test
+# output:
+# test2
+# test
+# test
+# clone.rb:13: undefined method `test2' for "#<Object: 0xbfca4>"(Object)
foo = Object.new
def foo.test
print("test\n")