diff options
author | Patrick Simianer <p@simianer.de> | 2015-12-19 00:44:09 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2015-12-19 00:44:09 +0100 |
commit | 7375fdd7600fd83256d13644bc8b35dc2c71c2d0 (patch) | |
tree | 4ee0871b50aca3b5df730fc51cac20adf38101b7 /ruby/module.rb | |
parent | 869e1c86d80dee01b39d447e741f9498d917a418 (diff) |
ruby: module, split range
Diffstat (limited to 'ruby/module.rb')
-rw-r--r-- | ruby/module.rb | 20 |
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 + |