lib/libvirt-ruby.rb in libvirt-ruby-1.0.1 vs lib/libvirt-ruby.rb in libvirt-ruby-1.0.2
- old
+ new
@@ -19,10 +19,9 @@
def self.dispatcher(method, args = [], return_type = nil)
raise Libvirt::Ruby::Exceptions::WrongCall unless not_direct_call?
begin
ffi_lib "libvirt"
attach_function method.to_s, method.to_s, args, return_type
- send method.to_s, args
rescue FFI::NotFoundError
raise Libvirt::Ruby::Exceptions::InvalidFunction.new(method.to_s)
rescue LoadError
raise Libvirt::Ruby::Exceptions::MissingLib
end
\ No newline at end of file