Sha256: d65922b882677056b41ae432d10876c38db403a8e3f92a496df1713aa5e76fa2
Contents?: true
Size: 326 Bytes
Versions: 4
Compression:
Stored size: 326 Bytes
Contents
module Noam module Message class Polo attr_reader :host, :port class InvalidHost < Exception; end class InvalidPort < Exception; end def initialize(host, port) raise InvalidHost.new if (@host = host).nil? raise InvalidPort.new if (@port = port).nil? end end end end
Version data entries
4 entries across 4 versions & 1 rubygems