Class: ZeroMQ::Context

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/zero_mq/context.rb

Instance Method Summary collapse

Constructor Details

#initialize(io_threads = 1) ⇒ Context

Returns a new instance of Context.



3
4
5
# File 'lib/zero_mq/context.rb', line 3

def initialize(io_threads = 1)
  super(ZMQ::Context.new(io_threads))
end

Instance Method Details

#socket(*args) ⇒ Object



7
8
9
# File 'lib/zero_mq/context.rb', line 7

def socket(*args)
  Socket.new(super)
end