Class: Dio::LoaderFactory::Loader
- Inherits:
-
Object
- Object
- Dio::LoaderFactory::Loader
- Defined in:
- lib/dio/loader_factory.rb
Overview
Loader just loads a dependency.
Instance Method Summary collapse
-
#initialize(loader) ⇒ Loader
constructor
A new instance of Loader.
- #load(key, *args) ⇒ Object
Constructor Details
#initialize(loader) ⇒ Loader
Returns a new instance of Loader.
74 75 76 |
# File 'lib/dio/loader_factory.rb', line 74 def initialize(loader) @loader = loader end |
Instance Method Details
#load(key, *args) ⇒ Object
79 80 81 |
# File 'lib/dio/loader_factory.rb', line 79 def load(key, *args) @loader.call(key, *args) end |