# File lib/whois/record/parser/scanners/iana.rb, line 59 def parse_section_pairs # Sets by default the firsts values found in the section parsing bellow section_name, section_value = @input[1].strip, @input[2].strip #contents = {section_name => section_value} contents = {} while content = parse_section_pair contents.merge!(content) end if contents.has_key? section_name contents[section_name].insert(0, "#{section_value}\n") else contents[section_name] = section_value end if !contents.empty? contents else false end end