Sha256: 9aad57a68c92bd02d06285b71a0d5a3b654a3374a8f8e5b9ccd55bf8546c123d
Contents?: true
Size: 824 Bytes
Versions: 6
Compression:
Stored size: 824 Bytes
Contents
#-- # Ruby Whois # # An intelligent pure Ruby WHOIS client and parser. # # Copyright (c) 2009-2013 Simone Carletti <weppos@weppos.net> #++ require 'whois/record/scanners/base' module Whois class Record module Scanners # Scanner for the whois.nc record. # # @since 2.4.0 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
6 entries across 6 versions & 1 rubygems