Avoid these traps when nesting Ruby modules

It turns out that the “inheritance” of a parent’s constants by the child isn’t due to the parent/child relationship. It’s lexical. That means that it’s based on the structure of your code, not on the structure of the objects your code is building.