Class: MultiMovingsign::Screen
- Inherits:
-
Object
- Object
- MultiMovingsign::Screen
- Defined in:
- lib/multi_movingsign/page_renderer.rb
Instance Attribute Summary collapse
-
#lines ⇒ Object
Returns the value of attribute lines.
Instance Method Summary collapse
-
#initialize(lines) ⇒ Screen
constructor
A new instance of Screen.
- #line(index) ⇒ Object
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
#lines ⇒ Object
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 |