Sha256: b6aacaa69ce126dc3d17c0a863a3ddac4c2434ae7e2d837d2f8f00647fe3ef9f
Contents?: true
Size: 977 Bytes
Versions: 1
Compression:
Stored size: 977 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.registrable_methods.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
whois-0.8.1 | lib/whois/answer/parser/blank.rb |