Zeitwerk 2.8 is out, with a new way to define namespaces.
Given
loader.nsfile = 'ns.rb'
self-contained components can define their namespace inside their folder:
my_component/ns.rb # MyComponent
my_component/widget.rb # MyComponent::Widget
More details in github.com/fxn/zeitwerk...
github.com
Efficient and thread-safe code loader for Ruby. Contribute to fxn/zeitwerk development by creating an account on GitHub.