Class: Pedalboard::Components::Led
Instance Attribute Summary
#pedalboard, #pin
Instance Method Summary
collapse
#initialize
Instance Method Details
#light_if(condition) ⇒ Object
8
9
10
|
# File 'lib/pedalboard/components/led.rb', line 8
def light_if condition
condition ? on : off
end
|
#off ⇒ Object
12
13
14
|
# File 'lib/pedalboard/components/led.rb', line 12
def off
dino_component.send :off
end
|
#on ⇒ Object
16
17
18
|
# File 'lib/pedalboard/components/led.rb', line 16
def on
dino_component.send :on
end
|