Class: Pedalboard::DSLParser

Inherits:
Object
  • Object
show all
Defined in:
lib/pedalboard/dsl_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pedalboardObject (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

#boardObject



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