Sha256: 757bb92ac4d2c31dc230437c72d9778c5b493a0d180b198cbcbc73586c396a6d

Contents?: true

Size: 793 Bytes

Versions: 6

Compression:

Stored size: 793 Bytes

Contents

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


require_relative 'base'


module Whois
  class Parsers

    # 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

      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

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
whois-parser-1.0.1 lib/whois/parsers/blank.rb
hetzner-whois-parser-1.0.1.rc2 lib/whois/parsers/blank.rb
hetzner-whois-parser-1.0.1.rc1 lib/whois/parsers/blank.rb
whois-parser-1.0.0 lib/whois/parsers/blank.rb
whois-parser-1.0.0.pre.beta2 lib/whois/parsers/blank.rb
whois-parser-1.0.0.pre.beta1 lib/whois/parsers/blank.rb