Method: LegacyFacter.value

Defined in:
lib/facter/custom_facts/core/legacy_facter.rb

.value(name) ⇒ Object?

Gets the value for a fact. Returns ‘nil` if no such fact exists.

Parameters:

  • name (String)

    the fact name

Returns:

  • (Object, nil)

    the value of the fact, or nil if no fact is found



112
113
114
# File 'lib/facter/custom_facts/core/legacy_facter.rb', line 112

def self.value(name)
  collection.value(name)
end