def parse
      IniParse::Generator.gen do |generator|
        @source.split("\n", -1).each do |line|
          generator.send(*Parser.parse_line(line))
        end
      end
    end
def parse
      IniParse::Generator.gen do |generator|
        @source.split("\n", -1).each do |line|
          generator.send(*Parser.parse_line(line))
        end
      end
    end
Creates a new Parser instance for parsing string +source+.

 ==== Parameters
 source<String>:: The source string.

 Parses the source string and returns the resulting data structure.

 ==== Returns
 IniParse::Document