A simple example might explain a better idea:
class C def initialize puts "At top level" end end module M class C def initialize puts "In module M" end end class P < C def initialize super end end class Q < ::C def initialize super end end end M::P.new M::Q.new
It is produced at startup:
In module M At top level
source share