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

Version Path
noam_lemma-0.2.1.3 lib/noam_lemma/message/polo.rb
noam_lemma-0.2.1.2 lib/noam_lemma/message/polo.rb
noam_lemma-0.2.1.1 lib/noam_lemma/message/polo.rb
noam_lemma-0.2.1 lib/noam_lemma/message/polo.rb