summaryrefslogtreecommitdiff
path: root/ruby/module.rb
blob: b25d603226084b63886d504d6aa1269151830b62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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