Sha256: 973eb59e4b80860fec21b45a5c973769627285c1b610e1319c9552841015447a

Contents?: true

Size: 656 Bytes

Versions: 3

Compression:

Stored size: 656 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'


module Whois
  class Record
    module Scanners

      # Scanner for the whois.dns.hr record.
      #
      # @since  2.4.0
      class WhoisDnsHr < Base

        self.tokenizers += [
            :skip_empty_line,
            :scan_available,
            :scan_keyvalue,
        ]


        tokenizer :scan_available do
          if @input.skip(/^%ERROR: no entries found\n/)
            @ast["status:available"] = true
          end
        end

      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
whois-2.7.0 lib/whois/record/scanners/whois.dns.hr.rb
whois-2.6.4 lib/whois/record/scanners/whois.dns.hr.rb
whois-2.6.3 lib/whois/record/scanners/whois.dns.hr.rb