summaryrefslogtreecommitdiff
path: root/sample/t2.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/t2.rb')
-rw-r--r--sample/t2.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/sample/t2.rb b/sample/t2.rb
new file mode 100644
index 0000000..7f5b9df
--- /dev/null
+++ b/sample/t2.rb
@@ -0,0 +1,24 @@
+#print("in Print\n")
+def t2() end
+
+def println(*args)
+ for a in args
+ t2()
+ print(a)
+ end
+ print("\n")
+end def
+
+def tt
+ for i in 1..10
+ println("i:", i);
+ yield(i);
+ end
+end
+
+test =
+do tt() using i
+ if i == 3; break end
+ println("ttt: ", i);
+end
+#exit()