Sha256: 98f7d44e7b47a91858fcd80e8194c16ddba91d9979bcbf9fcd61d4c93f8e03e3

Contents?: true

Size: 873 Bytes

Versions: 15

Compression:

Stored size: 873 Bytes

Contents

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


require 'whois/record/parser/base'


module Whois
  class Record
    class Parser

      # The Blank parser isn't a real parser. It's just a fake parser
      # that acts as a parser but doesn't provide any special capability.
      #
      # It doesn't register itself in the parser_registry,
      # it doesn't scan any string, it only exists to be initialized
      # in case a record needs to create a parser for a WHOIS server
      # not yet supported.
      #
      class Blank < Base

        Whois::Record::Parser::PROPERTIES.each do |method|
          define_method(method) do
            raise ParserNotFound, "Unable to find a parser for the server `#{part.host}'"
          end
        end

      end

    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
whois-3.6.2 lib/whois/record/parser/blank.rb
whois-3.6.1 lib/whois/record/parser/blank.rb
whois-3.6.0 lib/whois/record/parser/blank.rb
whois-3.5.9 lib/whois/record/parser/blank.rb
whois-3.5.8 lib/whois/record/parser/blank.rb
whois-3.5.7 lib/whois/record/parser/blank.rb
whois-3.5.6 lib/whois/record/parser/blank.rb
whois-3.5.5 lib/whois/record/parser/blank.rb
whois-3.5.4 lib/whois/record/parser/blank.rb
whois-3.5.3 lib/whois/record/parser/blank.rb
whois-3.5.2 lib/whois/record/parser/blank.rb
whois-3.5.1 lib/whois/record/parser/blank.rb
whois-3.5.0 lib/whois/record/parser/blank.rb
whois-3.4.5 lib/whois/record/parser/blank.rb
whois-3.4.4 lib/whois/record/parser/blank.rb