summaryrefslogtreecommitdiff
path: root/sample/evaldef.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/evaldef.rb')
-rw-r--r--sample/evaldef.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/sample/evaldef.rb b/sample/evaldef.rb
index c261b53068..021f65800a 100644
--- a/sample/evaldef.rb
+++ b/sample/evaldef.rb
@@ -1,3 +1,8 @@
+# method definition by eval()
+# output:
+# bar
+# (eval):21: method `baz' not available for "#<foo: 0xbfc5c>"(foo)
+
class foo
def foo
eval("