Method: IniParse::LineCollection#to_hash

Defined in:
lib/iniparse/line_collection.rb

#to_hashObject Also known as: to_h

Returns this collection as a hash. Does not contain blank and comment lines.



96
97
98
# File 'lib/iniparse/line_collection.rb', line 96

def to_hash
  Hash[ *(map { |line| [line.key, line] }).flatten ]
end