Class: Clio::Layout::Line
- Inherits:
-
Clio::Layout
- Object
- Clio::Layout
- Clio::Layout::Line
- Defined in:
- lib/clio/layout/line.rb
Overview
Draws a horizonal line.
Instance Attribute Summary collapse
-
#fill ⇒ Object
readonly
Returns the value of attribute fill.
Instance Method Summary collapse
-
#initialize(fill = '-') ⇒ Line
constructor
A new instance of Line.
- #to_s ⇒ Object
Methods inherited from Clio::Layout
Constructor Details
#initialize(fill = '-') ⇒ Line
Returns a new instance of Line.
10 11 12 |
# File 'lib/clio/layout/line.rb', line 10 def initialize(fill='-') @fill = '-' end |
Instance Attribute Details
#fill ⇒ Object (readonly)
Returns the value of attribute fill.
8 9 10 |
# File 'lib/clio/layout/line.rb', line 8 def fill @fill end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/clio/layout/line.rb', line 14 def to_s fill * screen_width end |