Class: MultiMovingsign::Screen

Inherits:
Object
  • Object
show all
Defined in:
lib/multi_movingsign/page_renderer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lines) ⇒ Screen

Returns a new instance of Screen.



215
216
217
# File 'lib/multi_movingsign/page_renderer.rb', line 215

def initialize(lines)
  self.lines = lines
end

Instance Attribute Details

#linesObject

Returns the value of attribute lines.



213
214
215
# File 'lib/multi_movingsign/page_renderer.rb', line 213

def lines
  @lines
end

Instance Method Details

#line(index) ⇒ Object



219
220
221
# File 'lib/multi_movingsign/page_renderer.rb', line 219

def line(index)
  self.lines[index] || " "
end