Class: Clio::Layout::Line

Inherits:
Clio::Layout show all
Defined in:
lib/clio/layout/line.rb

Overview

Draws a horizonal line.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Clio::Layout

#screen_width

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

#fillObject (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_sObject



14
15
16
# File 'lib/clio/layout/line.rb', line 14

def to_s
  fill * screen_width
end