Sha256: 24cf1ed3489691c4c859ab207ddd3af3228aeade0e13096935b334cb33a932fa

Contents?: true

Size: 571 Bytes

Versions: 10

Compression:

Stored size: 571 Bytes

Contents

#--
# Ruby Whois
#
# An intelligent pure Ruby WHOIS client and parser.
#
# Copyright (c) 2009-2014 Simone Carletti <weppos@weppos.net>
#++


require 'whois/record/scanners/base'


module Whois
  class Record
    module Scanners

      class BaseShared1 < 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

10 entries across 10 versions & 1 rubygems

Version Path
whois-3.5.7 lib/whois/record/scanners/base_shared1.rb
whois-3.5.6 lib/whois/record/scanners/base_shared1.rb
whois-3.5.5 lib/whois/record/scanners/base_shared1.rb
whois-3.5.4 lib/whois/record/scanners/base_shared1.rb
whois-3.5.3 lib/whois/record/scanners/base_shared1.rb
whois-3.5.2 lib/whois/record/scanners/base_shared1.rb
whois-3.5.1 lib/whois/record/scanners/base_shared1.rb
whois-3.5.0 lib/whois/record/scanners/base_shared1.rb
whois-3.4.5 lib/whois/record/scanners/base_shared1.rb
whois-3.4.4 lib/whois/record/scanners/base_shared1.rb