summaryrefslogtreecommitdiff
path: root/Code/Ruby/func_abc.rb
diff options
context:
space:
mode:
authorGeorge V. Neville-Neil <gnn@FreeBSD.org>2012-05-12 20:38:18 +0000
committerGeorge V. Neville-Neil <gnn@FreeBSD.org>2012-05-12 20:38:18 +0000
commit055173dba4a263acf10325a49eebf82915369ed2 (patch)
treeaec2772e8855e6dbaea6d8136ed0c47bcb825dee /Code/Ruby/func_abc.rb
parent87c8f7aa3a46118212b99f0d58b18aa93c06b02a (diff)
Notes
Diffstat (limited to 'Code/Ruby/func_abc.rb')
-rwxr-xr-xCode/Ruby/func_abc.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/Code/Ruby/func_abc.rb b/Code/Ruby/func_abc.rb
new file mode 100755
index 0000000000000..75adaf9f7ff1a
--- /dev/null
+++ b/Code/Ruby/func_abc.rb
@@ -0,0 +1,20 @@
+#!./ruby -w
+
+def func_c
+ print "Function C\n"
+ sleep 1
+end
+
+def func_b
+ print "Function B\n"
+ sleep 1
+ func_c
+end
+
+def func_a
+ print "Function A\n"
+ sleep 1
+ func_b
+end
+
+func_a