Class: Pixo::Renderer::SetBrightness
- Inherits:
-
Object
- Object
- Pixo::Renderer::SetBrightness
- Defined in:
- lib/pixo/renderer.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(brightness) ⇒ SetBrightness
constructor
A new instance of SetBrightness.
Constructor Details
#initialize(brightness) ⇒ SetBrightness
Returns a new instance of SetBrightness.
88 89 90 |
# File 'lib/pixo/renderer.rb', line 88 def initialize(brightness) @brightness = brightness end |
Instance Method Details
#call ⇒ Object
92 93 94 |
# File 'lib/pixo/renderer.rb', line 92 def call Pixo::Application.instance.brightness = @brightness end |