Class: Arcenciel::Surfaces::Controller::DSL
- Defined in:
- lib/arcenciel/surfaces.rb
Instance Attribute Summary
Attributes inherited from DSLBase
Instance Method Summary collapse
-
#knob(&blk) ⇒ Object
Add a new logical knob (encoder) to the controller.
-
#name(name) ⇒ Object
Set the name of this logical controller.
Methods inherited from DSLBase
Constructor Details
This class inherits a constructor from Arcenciel::DSLBase
Instance Method Details
#knob(&blk) ⇒ Object
Add a new logical knob (encoder) to the controller.
17 18 19 20 |
# File 'lib/arcenciel/surfaces.rb', line 17 def knob(&blk) opts[:knobs] ||= [] opts[:knobs] << Knob.from_dsl(&blk) end |
#name(name) ⇒ Object
Set the name of this logical controller.
12 13 14 |
# File 'lib/arcenciel/surfaces.rb', line 12 def name(name) opts[:name] = name end |