Sha256: b0600ee7c4836722a0fa694da4e99590b967975f053f22e54982a33981019323
Contents?: true
Size: 882 Bytes
Versions: 3
Compression:
Stored size: 882 Bytes
Contents
#-- # Ruby Whois # # An intelligent pure Ruby WHOIS client and parser. # # Copyright (c) 2009-2012 Simone Carletti <weppos@weppos.net> #++ require 'whois/record/scanners/base' module Whois class Record module Scanners # Scanner for the whois.centralnic.com record. # # @since 2.3.0 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
whois-2.7.0 | lib/whois/record/scanners/whois.centralnic.com.rb |
whois-2.6.4 | lib/whois/record/scanners/whois.centralnic.com.rb |
whois-2.6.3 | lib/whois/record/scanners/whois.centralnic.com.rb |