Class Facter::Util::Collection
In: lib/facter/util/collection.rb
Parent: Object

Manage which facts exist and how we access them. Largely just a wrapper around a hash of facts.

Methods

[]   add   each   fact   flush   list   load_all   loader   new   to_hash   value  

Included Modules

Enumerable

Public Class methods

Public Instance methods

Return a fact object by name. If you use this, you still have to call ‘value’ on it to retrieve the actual value.

Add a resolution mechanism for a named fact. This does not distinguish between adding a new fact and adding a new way to resolve a fact.

Iterate across all of the facts.

Return a fact by name.

Flush all cached values.

Return a list of all of the facts.

Load all known facts.

The thing that loads facts if we don‘t have them.

Return a hash of all of our facts.

[Validate]