Sha256: 26dcac18904e81fbb71258704012cd93b76857af6f609641026f4b4e68a23794

Contents?: true

Size: 566 Bytes

Versions: 6

Compression:

Stored size: 566 Bytes

Contents

require_relative 'socket'

# Syntactic sugar for 0MQ, because Ruby shouldn't feel like C.
module EZMQ
  # Pull socket that receives messages but does not send them.
  class Puller < EZMQ::Socket
    # Creates a new Puller socket.
    #
    # @param [:bind, :connect] mode a mode for the socket.
    # @param [Hash] options optional parameters.
    # @see EZMQ::Socket EZMQ::Socket for optional parameters.
    #
    # @return [Puller] a new instance of Puller.
    #
    def initialize(mode = :bind, **options)
      super mode, ZMQ::PULL, options
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ezmq-0.3.6 lib/ezmq/pull.rb
ezmq-0.3.5 lib/ezmq/pull.rb
ezmq-0.3.4 lib/ezmq/pull.rb
ezmq-0.3.3 lib/ezmq/pull.rb
ezmq-0.3.2 lib/ezmq/pull.rb
ezmq-0.3.1 lib/ezmq/pull.rb