Sha256: 7c6d1677a8cc423a94ddcce4e23cc325e1cde890809eb29b9d0cb6260cb0f6de

Contents?: true

Size: 312 Bytes

Versions: 1

Compression:

Stored size: 312 Bytes

Contents

module Libvirt
  module Ruby
    module Domain
      def self.dispatcher(method, args = [])
        return_type = args.delete(args.last)
        attach_function ("virDomain" + method.to_s), ("virDomain" + method.to_s), args, return_type
        send(("virDomain" + 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/domain.rb