From 7375fdd7600fd83256d13644bc8b35dc2c71c2d0 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sat, 19 Dec 2015 00:44:09 +0100 Subject: ruby: module, split range --- ruby/module.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ruby/module.rb (limited to 'ruby/module.rb') 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 + -- cgit v1.2.3