Class: Pixo::Renderer::SetLedsOn
- Inherits:
-
Object
- Object
- Pixo::Renderer::SetLedsOn
- Defined in:
- lib/pixo/renderer.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(leds_on) ⇒ SetLedsOn
constructor
A new instance of SetLedsOn.
Constructor Details
#initialize(leds_on) ⇒ SetLedsOn
Returns a new instance of SetLedsOn.
105 106 107 |
# File 'lib/pixo/renderer.rb', line 105 def initialize(leds_on) @leds_on = leds_on end |
Instance Method Details
#call ⇒ Object
109 110 111 |
# File 'lib/pixo/renderer.rb', line 109 def call Pixo::Application.instance.leds_on = @leds_on end |