Sha256: b145c18559c2a40cc289a688aed56d60238de4875b4bbfedc3b11e55abc96eff

Contents?: true

Size: 968 Bytes

Versions: 17

Compression:

Stored size: 968 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

17 entries across 17 versions & 1 rubygems

Version Path
whois-1.1.2 lib/whois/answer/parser/blank.rb
whois-1.1.1 lib/whois/answer/parser/blank.rb
whois-1.1.0 lib/whois/answer/parser/blank.rb
whois-1.0.12 lib/whois/answer/parser/blank.rb
whois-1.0.11 lib/whois/answer/parser/blank.rb
whois-1.0.10 lib/whois/answer/parser/blank.rb
whois-1.0.9 lib/whois/answer/parser/blank.rb
whois-1.0.8 lib/whois/answer/parser/blank.rb
whois-1.0.7 lib/whois/answer/parser/blank.rb
whois-1.0.6 lib/whois/answer/parser/blank.rb
whois-1.0.5 lib/whois/answer/parser/blank.rb
whois-1.0.4 lib/whois/answer/parser/blank.rb
whois-1.0.3 lib/whois/answer/parser/blank.rb
whois-1.0.2 lib/whois/answer/parser/blank.rb
whois-1.0.1 lib/whois/answer/parser/blank.rb
whois-1.0.0 lib/whois/answer/parser/blank.rb
whois-0.9.0 lib/whois/answer/parser/blank.rb