Namespaces 101
During the last days I have done an immersion into namespaces, the new big feature that is coming in Ruby.
Here's a digested mental model for you all.
https://gist.github.com/fxn/86ad8584d7813caf03dac9222f8dcf41
During the last days I have done an immersion into namespaces, the new big feature that is coming in Ruby.
Here's a digested mental model for you all.
https://gist.github.com/fxn/86ad8584d7813caf03dac9222f8dcf41
Comments
These are kind of isolated contexts, it is a different feature.
This summary was very helpful, and I almost wish we had something equivalent to Rails Guides for Ruby above the level of API docs on an official doc site.
I think I spotted a constant name typo...?
> While we are invoking `Foo.m` [...snip...] the `X` in main does not exist there, the only `X` that exists for that method is the one in ns.
Should those `X` be `M`?