Sha256: 1859a761c4a47b537ebf187e63d6e4001ce4414b5abe67c11b62b409928ba75d
Contents?: true
Size: 608 Bytes
Versions: 1
Compression:
Stored size: 608 Bytes
Contents
# # = Ruby Whois # # An intelligent pure Ruby WHOIS client. # # # Category:: Net # Package:: Whois # Author:: Simone Carletti <weppos@weppos.net> # License:: MIT License # #-- # #++ module Whois class Server module Adapters class Formatted < Base def request(qstring) options[:format] || raise(ServerError, "Missing mandatory :format option for adapter `Formatted'") response = query_the_socket(sprintf(options[:format], qstring), host) append_to_buffer response, host end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
whois-0.8.0 | lib/whois/server/adapters/formatted.rb |