Sha256: 2059f55426ccef2a7d6d085ac6e488d3ea3c12e28a31be9f09c999f6987a7192

Contents?: true

Size: 967 Bytes

Versions: 30

Compression:

Stored size: 967 Bytes

Contents

#
# = Ruby Whois
#
# An intelligent pure Ruby WHOIS client and parser.
#
#
# Category::    Net
# Package::     Whois
# Author::      Simone Carletti <weppos@weppos.net>
# License::     MIT License
#
#--
#
#++


require 'whois/answer/parser/base'


module Whois
  class Answer
    class Parser

      #
      # = Blank 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 an answer needs to create a parser
      # for a whois server not supported yet.
      #
      class Blank < Base

        Whois::Answer::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

30 entries across 30 versions & 1 rubygems

Version Path
whois-1.6.6 lib/whois/answer/parser/blank.rb
whois-1.6.5 lib/whois/answer/parser/blank.rb
whois-1.6.4 lib/whois/answer/parser/blank.rb
whois-1.6.3 lib/whois/answer/parser/blank.rb
whois-1.6.2 lib/whois/answer/parser/blank.rb
whois-1.6.1 lib/whois/answer/parser/blank.rb
whois-1.6.0 lib/whois/answer/parser/blank.rb
whois-1.5.1 lib/whois/answer/parser/blank.rb
whois-1.5.0 lib/whois/answer/parser/blank.rb
whois-1.3.11 lib/whois/answer/parser/blank.rb
whois-1.3.10 lib/whois/answer/parser/blank.rb
whois-1.3.9 lib/whois/answer/parser/blank.rb
whois-1.3.8 lib/whois/answer/parser/blank.rb
whois-1.3.7 lib/whois/answer/parser/blank.rb
whois-1.3.6 lib/whois/answer/parser/blank.rb
whois-1.3.5 lib/whois/answer/parser/blank.rb
whois-1.3.4 lib/whois/answer/parser/blank.rb
whois-1.3.3 lib/whois/answer/parser/blank.rb
whois-1.3.2 lib/whois/answer/parser/blank.rb
whois-1.3.1 lib/whois/answer/parser/blank.rb