What is the difference between this:
module Outer module Inner class Foo end end end
and this:
module Outer::Inner class Foo end end
I know that the last example will not work if Outer
not been defined before, but there are some other differences with a constant scope, and I could find their description in SO or in the documentation (including the Ruby book Program)
source share