lib/facter.rb
def clear
      @already_searched = {}
      LegacyFacter.clear
      Options[:custom_dir] = []
      LegacyFacter.collection.invalidate_custom_facts
      LegacyFacter.collection.reload_custom_facts
    end
# Clears all cached values and removes all facts from memory.
#
# @return [nil]
#
# @api public
Clears all cached values and removes all facts from memory.
Clears all cached values and removes all facts from memory .
def clear
      @already_searched = {}
      LegacyFacter.clear
      Options[:custom_dir] = []
      LegacyFacter.collection.invalidate_custom_facts
      LegacyFacter.collection.reload_custom_facts
    end
def clear @already_searched = { } LegacyFacter . clear Options [ :custom_dir ] = [ ] LegacyFacter . collection . invalidate_custom_facts LegacyFacter . collection . reload_custom_facts end
Clears all cached values and removes all facts from memory.
Clears all cached values and removes all facts from memory .
None
nil
api
None