Sha256: ccd2f4dd8b5021143826851eb120d8c2c55d6afe3f747a01e4f13401c0bcbb2c
Contents?: true
Size: 888 Bytes
Versions: 1
Compression:
Stored size: 888 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' require 'whois/record/scanners/base_shared2' module Whois class Record module Scanners class BaseShared2 < Base self.tokenizers += [ :skip_blank_line, :scan_available, :scan_keyvalue, :skip_lastupdate, :skip_fuffa, ] tokenizer :scan_available do if @input.scan(/^Not found: (.+)\n/) @ast["Domain Name"] = @input[1] @ast["status:available"] = true end end tokenizer :skip_lastupdate do @input.skip(/>>>(.+?)<<<\n/) end tokenizer :skip_fuffa do @input.skip(/^\S(.+)\n/) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
whois-2.7.0 | lib/whois/record/scanners/base_shared2.rb |