class Fir::Screen

Attributes

eraser[R]
evaluater[R]
renderer[R]

Public Class Methods

new(output, error) click to toggle source
# File lib/fir/screen.rb, line 14
def initialize(output, error)
  @eraser = Eraser.new(output)
  @renderer = Renderer.new(output)
  @evaluater = Evaluater.new(output, error)
end

Public Instance Methods

update(state, new_state) click to toggle source
# File lib/fir/screen.rb, line 20
def update(state, new_state)
  eraser.perform(state)
  renderer.perform(new_state)
  evaluater.perform(new_state)
end