Class: Dry::System::Loader::Autoloading

Inherits:
Dry::System::Loader show all
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

call, constant

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