Class: ZeroMQ::Context
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- ZeroMQ::Context
- Defined in:
- lib/zero_mq/context.rb
Instance Method Summary collapse
-
#initialize(io_threads = 1) ⇒ Context
constructor
A new instance of Context.
- #socket(*args) ⇒ Object
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 |