Sha256: 4643813026281989f9546dead644467c886c5be04dbad587275ee722af5de882
Contents?: true
Size: 560 Bytes
Versions: 1
Compression:
Stored size: 560 Bytes
Contents
module Libvirt module Ruby class Util extend FFI::Library def self.dispatcher(method, args = [], return_type) begin ffi_lib "libvirt" attach_function (self.klass + method.to_s), (self.klass + method.to_s), args, return_type send (self.klass + method.to_s), args rescue FFI::NotFoundError raise Libvirt::Ruby::Exceptions::InvalidFunction.new(self.klass + method.to_s) rescue LoadError raise Libvirt::Ruby::Exceptions::MissingLib end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
libvirt-ruby-0.0.3 | lib/libvirt-ruby/util.rb |