Class: QemuToolkit::DSL
- Inherits:
-
Object
- Object
- QemuToolkit::DSL
- Defined in:
- lib/qemu-toolkit/dsl.rb
Overview
A generic dsl class. You define a target keyword you want to associate with an object instance you also give during construction. The dsl will then react only to a call to TARGET, allowing to use a block to configure the object you give.
Inside the block, the following delegations are made:
foo 'some value'
# delegated to obj.foo= 'some value' if possible
# or then to obj.add_foo 'some_value'