Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

49 lines (36 sloc) 0.888 kb
#--
# 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
Jump to Line
Something went wrong with that request. Please try again.