Class: Dry::System::Loader::Autoloading
- Inherits:
-
Dry::System::Loader
- Object
- Dry::System::Loader
- Dry::System::Loader::Autoloading
- Defined in:
- lib/dry/system/loader/autoloading.rb
Overview
Component loader for autoloading-enabled applications
This behaves like the default loader, except instead of requiring the given path, it loads the respective constant, allowing the autoloader to load the corresponding file per its own configuration.
Class Method Summary collapse
Methods inherited from Dry::System::Loader
Class Method Details
.require!(component) ⇒ Object
16 17 18 19 |
# File 'lib/dry/system/loader/autoloading.rb', line 16 def require!(component) constant(component) self end |