Sha256: 3fb045dcb203cfcb473c55ad55358ac974a68bed908a8ede3fe184cc851fecd5
Contents?: true
Size: 794 Bytes
Versions: 15
Compression:
Stored size: 794 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.nc record. class WhoisNc < Base self.tokenizers += [ :skip_empty_line, :skip_more, :scan_available, :scan_keyvalue, ] MORES = ['Whois \.NC', 'more details on'] tokenizer :scan_available do if @input.skip(/^No entries found .+\n/) @ast["status:available"] = true end end tokenizer :skip_more do MORES.any? { |more| @input.skip(/^#{more}.*\n/) } end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems