Class: Libvirt::Base
- Inherits:
-
Object
- Object
- Libvirt::Base
- Extended by:
- FFI::Library
- Defined in:
- lib/libvirt-ruby.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/libvirt-ruby.rb', line 10 def method_missing(method, *args) args.flatten! return_type = args.delete(args.last) raise Libvirt::Exceptions::NoReturnParameter unless return_type dispatcher(method, args, return_type) end |