Module as Namespace
suggest changeModules can contain other modules and classes:
module Namespace
module Child
class Foo; end
end # module Child
# Foo can now be accessed as:
#
Child::Foo
end # module Namespace
# Foo must now be accessed as:
#
Namespace::Child::Foo
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents