Update: A newer version of the article is published at ->
Nested Modules in Ruby
Ruby provides two different ways to define nested modules. This post explains the difference between them and how to decide which one to use. It also explains the `Module.nesting` method which returns the list of modules nested when called.