#!/usr/local/bin/ruby module A module B C = 'a' end end puts Object::A # => M #::M # => M #::M::M # => M::M #M::M # => M::M #M::M::M # => "a"