What is Zeitwerk
mainZeitwerk is an efficient and thread-safe code loader for Ruby. It automates the loading of classes and modules based on a conventional file structure, eliminating the need for manual require calls.
Key features include:
- Autoloading: Loading constants on demand.
- Eager Loading: Loading all constants upfront.
- Code Reloading: Supporting development workflows where code changes need to be reflected without restarting the process.
- Independent Loaders: Multiple loaders can coexist in a single process, each managing its own project tree, configuration, inflector, and logger independently.
- Performance: Uses absolute file names for
requirecalls to avoid$LOAD_PATHlookups and performs minimal file system scans.