As part of our migration from the Classic autoloader to Zeitwerk in Rails, I gave a short presentation on the high-level aspects of Zeitwerk worth knowing about.
To go along with this, I wrote ztwrk, an abbreviated autoloader which takes the core parts of Zeitwerk to demonstrate how it works in conjunction with the autoload
and Kernel.require
methods to implement dynamic autoloading.
Check it out!