summaryrefslogtreecommitdiff
path: root/sample/const.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/const.rb')
-rw-r--r--sample/const.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/sample/const.rb b/sample/const.rb
new file mode 100644
index 0000000..d7629fe
--- /dev/null
+++ b/sample/const.rb
@@ -0,0 +1,20 @@
+%test1 = 1
+%test2 = 2
+
+module Const
+ %test3 = 3
+ %test4 = 4
+end
+
+module Const2
+ %test3 = 6
+ %test4 = 8
+end
+
+include Const
+
+print(%test1,%test2,%test3,%test4,"\n")
+
+include Const2
+
+print(%test1,%test2,%test3,%test4,"\n")