Sha256: 31eeab0bf75ab0f05cf3e8ee5a4218e02460de5d3abd99d19b9bbf9158caf643
Contents?: true
Size: 1020 Bytes
Versions: 1
Compression:
Stored size: 1020 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 Icann Compliant-based records. class BaseIcannCompliant < Base self.tokenizers += [ :skip_head, :scan_available, :skip_empty_line, :skip_blank_line, :scan_keyvalue, :skip_end, ] tokenizer :scan_available do if settings[:pattern_available] && @input.skip_until(settings[:pattern_available]) @ast['status:available'] = true end end tokenizer :skip_head do if @input.skip_until(/Domain Name:/) @input.scan(/\s(.+)\n/) @ast["Domain Name"] = @input[1].strip end end tokenizer :skip_end do @input.terminate end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
whois-3.4.4 | lib/whois/record/scanners/base_icann_compliant.rb |