Sha256: a65939a96d04af6184c3b9cefcd0495fe2be2977ea5c82034cf218d34fc04d63
Contents?: true
Size: 966 Bytes
Versions: 1
Compression:
Stored size: 966 Bytes
Contents
# # = Ruby Whois # # An intelligent pure Ruby WHOIS client. # # # 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.0 | lib/whois/answer/parser/blank.rb |