summaryrefslogtreecommitdiff
path: root/ruby/module.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ruby/module.rb')
-rw-r--r--ruby/module.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/ruby/module.rb b/ruby/module.rb
new file mode 100644
index 0000000..b25d603
--- /dev/null
+++ b/ruby/module.rb
@@ -0,0 +1,20 @@
+module Aaa
+ class Bbb
+ def initialize
+ puts "BBB"
+ end
+ end
+
+ def Aaa.q
+ puts "xxx"
+ end
+
+ def Aaa.bla
+ q
+ end
+end
+
+Aaa.bla
+
+a = Aaa::Bbb.new
+