Class: Pedalboard::DSLParser
- Inherits:
-
Object
- Object
- Pedalboard::DSLParser
- Defined in:
- lib/pedalboard/dsl_parser.rb
Instance Attribute Summary collapse
-
#pedalboard ⇒ Object
readonly
Returns the value of attribute pedalboard.
Instance Method Summary collapse
- #board ⇒ Object
-
#initialize(pedalboard) ⇒ DSLParser
constructor
A new instance of DSLParser.
- #led(*args) ⇒ Object
- #pedal(*args) ⇒ Object
- #pot(*args) ⇒ Object
Constructor Details
#initialize(pedalboard) ⇒ DSLParser
Returns a new instance of DSLParser.
5 6 7 |
# File 'lib/pedalboard/dsl_parser.rb', line 5 def initialize pedalboard @pedalboard = pedalboard end |
Instance Attribute Details
#pedalboard ⇒ Object (readonly)
Returns the value of attribute pedalboard.
3 4 5 |
# File 'lib/pedalboard/dsl_parser.rb', line 3 def pedalboard @pedalboard end |
Instance Method Details
#board ⇒ Object
21 22 23 |
# File 'lib/pedalboard/dsl_parser.rb', line 21 def board self.pedalboard.board end |
#led(*args) ⇒ Object
9 10 11 |
# File 'lib/pedalboard/dsl_parser.rb', line 9 def led *args @pedalboard.add_component :led, *args end |
#pedal(*args) ⇒ Object
13 14 15 |
# File 'lib/pedalboard/dsl_parser.rb', line 13 def pedal *args @pedalboard.add_component :pedal, *args end |
#pot(*args) ⇒ Object
17 18 19 |
# File 'lib/pedalboard/dsl_parser.rb', line 17 def pot *args @pedalboard.add_component :pot, *args end |