Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

47 lines (38 sloc) 0.953 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'
module Whois
class Record
module Scanners
# Scanner for the whois.cctld.by server.
#
# @author Aliaksei Kliuchnikau <aliaksei.kliuchnikau@gmail.com>
# @since RELEASE
class WhoisCctldBy < Base
self.tokenizers += [
:skip_empty_line,
:skip_dash_line,
:scan_available,
:scan_keyvalue,
:skip_provider_signature,
]
tokenizer :scan_available do
if @input.skip(/^Object does not exist/)
@ast["status:available"] = true
end
end
tokenizer :skip_dash_line do
@input.skip(/^-+\n/)
end
tokenizer :skip_provider_signature do
@input.scan(/^(.+)\n/)
end
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.