Sha256: 079ef8b9f17738d5247710f3800e88afd1a32e0c447bd8b9b54a0559b603837b

Contents?: true

Size: 656 Bytes

Versions: 2

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.registry.om record.
      #
      # @since RELEASE
      class WhoisRegistryOm < Base

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


        tokenizer :scan_available do
          if @input.skip(/^No Data Found\n/)
            @ast['status:available'] = true
          end
        end

      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
whois-2.6.1 lib/whois/record/scanners/whois.registry.om.rb
whois-2.6.0 lib/whois/record/scanners/whois.registry.om.rb