Class: LegacyFacter::Util::CompositeLoader Private

Inherits:
Object
  • Object
show all
Defined in:
lib/facter/custom_facts/util/composite_loader.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initialize(loaders) ⇒ CompositeLoader

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of CompositeLoader.



9
10
11
# File 'lib/facter/custom_facts/util/composite_loader.rb', line 9

def initialize(loaders)
  @loaders = loaders
end

Instance Method Details

#load(collection) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



13
14
15
# File 'lib/facter/custom_facts/util/composite_loader.rb', line 13

def load(collection)
  @loaders.each { |loader| loader.load(collection) }
end