Sha256: dac01e601a5d6fb8ae7a5443d6f4dabe1202967866864286974f08092eae9b09
Contents?: true
Size: 852 Bytes
Versions: 15
Compression:
Stored size: 852 Bytes
Contents
#-- # Ruby Whois # # An intelligent pure Ruby WHOIS client and parser. # # Copyright (c) 2009-2014 Simone Carletti <weppos@weppos.net> #++ require 'whois/record/scanners/base' module Whois class Record module Scanners # Scanner for the whois.centralnic.com record. class WhoisCentralnicCom < Base self.tokenizers += [ :skip_empty_line, :scan_available, :scan_disclaimer, :scan_keyvalue, ] tokenizer :scan_available do if @input.skip(/^DOMAIN NOT FOUND\n/) @ast["status:available"] = true end end tokenizer :scan_disclaimer do if @input.match?(/^\S([^:]+)\n/) @ast["field:disclaimer"] = _scan_lines_to_array(/(.+)\n/).join(" ") end end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems