Class: Facter::Util::CompositeLoader
- Inherits:
-
Object
- Object
- Facter::Util::CompositeLoader
- Defined in:
- lib/facter/util/composite_loader.rb
Overview
A composite loader that allows for more than one default directory loader
Instance Method Summary collapse
-
#initialize(loaders) ⇒ CompositeLoader
constructor
A new instance of CompositeLoader.
- #load(collection) ⇒ Object
Constructor Details
#initialize(loaders) ⇒ CompositeLoader
Returns a new instance of CompositeLoader.
5 6 7 |
# File 'lib/facter/util/composite_loader.rb', line 5 def initialize(loaders) @loaders = loaders end |
Instance Method Details
#load(collection) ⇒ Object
9 10 11 |
# File 'lib/facter/util/composite_loader.rb', line 9 def load(collection) @loaders.each { |loader| loader.load(collection) } end |