Class: Facter::Util::CompositeLoader

Inherits:
Object
  • Object
show all
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

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