Class: Qcmd::CueAction
- Inherits:
-
BaseAction
- Object
- BaseAction
- Qcmd::CueAction
- Defined in:
- lib/qcmd/actions/cue_action.rb
Instance Attribute Summary
Attributes inherited from BaseAction
Instance Method Summary collapse
-
#command ⇒ Object
cue commands should be in the form:.
-
#id_field ⇒ Object
cue specific fields.
- #identifier ⇒ Object
- #osc_address ⇒ Object
- #osc_arguments ⇒ Object
Methods inherited from BaseAction
evaluate, #evaluate, #initialize, #osc_address=, #osc_message, #parse
Constructor Details
This class inherits a constructor from Qcmd::BaseAction
Instance Method Details
#command ⇒ Object
cue commands should be in the form:
[$id_field, $identifier, $command[, $arguments]]
where arguments are optional.
9 10 11 |
# File 'lib/qcmd/actions/cue_action.rb', line 9 def command code[2] end |
#id_field ⇒ Object
cue specific fields
23 24 25 |
# File 'lib/qcmd/actions/cue_action.rb', line 23 def id_field code[0] end |
#identifier ⇒ Object
27 28 29 |
# File 'lib/qcmd/actions/cue_action.rb', line 27 def identifier code[1] end |
#osc_address ⇒ Object
13 14 15 |
# File 'lib/qcmd/actions/cue_action.rb', line 13 def osc_address "/#{ code[0] }/#{ code[1] }/#{ code[2] }" end |
#osc_arguments ⇒ Object
17 18 19 |
# File 'lib/qcmd/actions/cue_action.rb', line 17 def osc_arguments stringify code[3..-1] end |