Class: Runner
- Inherits:
-
Object
- Object
- Runner
- Defined in:
- lib/app/selfrunning.rb
Instance Method Summary collapse
-
#initialize(renderer) ⇒ Runner
constructor
A new instance of Runner.
- #update(observable) ⇒ Object
Constructor Details
#initialize(renderer) ⇒ Runner
Returns a new instance of Runner.
27 28 29 |
# File 'lib/app/selfrunning.rb', line 27 def initialize(renderer) @renderer = renderer end |
Instance Method Details
#update(observable) ⇒ Object
30 31 32 |
# File 'lib/app/selfrunning.rb', line 30 def update(observable) @renderer.update_layout(observable) end |