Sha256: 8071b6e8af2eff08bd96eda547cb428541a83443d4d028aa87bd779f438a53ce

Contents?: true

Size: 316 Bytes

Versions: 1

Compression:

Stored size: 316 Bytes

Contents

module Libvirt
  module Ruby
    module Connect
      def self.dispatcher(method, args = [])
        return_type = args.delete(args.last)
        attach_function ("virConnect" + method.to_s), ("virConnect" + method.to_s), args, return_type
        send(("virConnect" + method.to_s), args)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
libvirt-ruby-0.0.1 lib/libvirt-ruby/connect.rb