Class: Fir::Screen
- Inherits:
-
Object
- Object
- Fir::Screen
- Defined in:
- lib/fir/screen.rb
Instance Attribute Summary collapse
-
#eraser ⇒ Object
readonly
Returns the value of attribute eraser.
-
#evaluater ⇒ Object
readonly
Returns the value of attribute evaluater.
-
#renderer ⇒ Object
readonly
Returns the value of attribute renderer.
Instance Method Summary collapse
-
#initialize(output, error) ⇒ Screen
constructor
A new instance of Screen.
- #update(state, new_state) ⇒ Object
Constructor Details
Instance Attribute Details
#eraser ⇒ Object (readonly)
Returns the value of attribute eraser.
10 11 12 |
# File 'lib/fir/screen.rb', line 10 def eraser @eraser end |
#evaluater ⇒ Object (readonly)
Returns the value of attribute evaluater.
12 13 14 |
# File 'lib/fir/screen.rb', line 12 def evaluater @evaluater end |
#renderer ⇒ Object (readonly)
Returns the value of attribute renderer.
11 12 13 |
# File 'lib/fir/screen.rb', line 11 def renderer @renderer end |
Instance Method Details
#update(state, new_state) ⇒ Object
20 21 22 23 24 |
# File 'lib/fir/screen.rb', line 20 def update(state, new_state) eraser.perform(state) renderer.perform(new_state) evaluater.perform(new_state) end |