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