# File lib/facter/util/collection.rb, line 28 def define_fact(name, options = {}, &block) fact = create_or_return_fact(name, options) if block_given? fact.instance_eval(&block) end fact rescue => e Facter.log_exception(e, "Unable to add fact #{name}: #{e}") end