What are the differences between this:
module Outer
module Inner
class Foo
end
end
end
and this:
module Outer::Inner
class Foo
end
end
I know the latter example won't work if Outer
was not defined earlier, but there are some other differences with constant scope and I could find their description on SO or in documentation (including Programming Ruby book)
class A::B::MyClass; end
andmodule A; module B; class MyClass; end; end; end;
?