# File lib/facter/util/collection.rb, line 105
105:   def to_hash
106:     @facts.inject({}) do |h, ary|
107:       value = ary[1].value
108:       if ! value.nil?
109:         # For backwards compatibility, convert the fact name to a string.
110:         h[ary[0].to_s] = value
111:       end
112:       h
113:     end
114:   end