module CZMQ::FFI
Constants
- CZMQ_VERSION
CZMQ
library version- GEM_VERSION
- VERSION
- ZMQ_VERSION
ZMQ library version
Public Class Methods
attach_function(name, *rest)
click to toggle source
Calls superclass method
# File lib/czmq-ffi-gen/czmq/ffi.rb, line 39 def self.attach_function(name, *rest) super rescue ::FFI::NotFoundError define_singleton_method name do |*| raise NotImplementedError, "The function #{name}() is not provided by the CZMQ library installed. Upgrade the library or compile it with --enable-drafts." end return unless $VERBOSE || $DEBUG warn "The function #{name}() is not provided by the installed CZMQ library." end
available?()
click to toggle source
# File lib/czmq-ffi-gen/czmq/ffi.rb, line 19 def self.available? @available end
has_draft?()
click to toggle source
@return [Boolean] whether the CZMQ
DRAFT API is available
# File lib/czmq-ffi-gen/czmq_ffi_extensions.rb, line 6 def self.has_draft? # NOTE: We use some function that is currently declared DRAFT. Another one # might be needed in future versions. zsock_new_server(nil) true rescue NotImplementedError, NoMethodError false end