Method: ZMQ.version
- Defined in:
- ext/rbczmq/rbczmq_ext.c
.version ⇒ Array
Returns the libzmq version linked against.
Examples
ZMQ.version => [2,1,11]
63 64 65 66 67 68 |
# File 'ext/rbczmq/rbczmq_ext.c', line 63 static VALUE rb_czmq_m_version(ZMQ_UNUSED VALUE obj) { int major, minor, patch; zmq_version(&major, &minor, &patch); return rb_ary_new3(3, INT2NUM(major), INT2NUM(minor), INT2NUM(patch)); } |