summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
Diffstat (limited to 'sample')
-rw-r--r--sample/blk.rb9
-rw-r--r--sample/export.rb2
2 files changed, 10 insertions, 1 deletions
diff --git a/sample/blk.rb b/sample/blk.rb
new file mode 100644
index 0000000000..4e618bce2d
--- /dev/null
+++ b/sample/blk.rb
@@ -0,0 +1,9 @@
+def foo()
+ $block = Block.new
+end
+
+foo(){i | print "i = ", i, "\n"}
+$block.do(2)
+
+foo(){i | print "i*2 = ", i*2, "\n"}
+$block.do(2)
diff --git a/sample/export.rb b/sample/export.rb
index ea6c5aeaeb..4046a7ec49 100644
--- a/sample/export.rb
+++ b/sample/export.rb
@@ -1,4 +1,4 @@
-# methos access permission
+# methods access permission
# output:
# foobar
# foo