class Whois::Scanners::WhoisDenicDe
Private Instance Methods
parse_pair(store)
click to toggle source
# File lib/whois/scanners/whois.denic.de.rb, line 80 def parse_pair(store) if @input.scan(/([^ \[]*):(.*)\n/) key, value = @input[1].strip, @input[2].strip if store[key].nil? store[key] = value else store[key].is_a?(Array) || store[key] = [store[key]] store[key] << value end store end end