Class: TTY::Table::Border::RowLine
- Inherits:
-
Struct
- Object
- Struct
- TTY::Table::Border::RowLine
- Defined in:
- lib/tty/table/border/row_line.rb
Overview
A class for a table row line chars manipulation
Instance Attribute Summary collapse
-
#center ⇒ Object
Returns the value of attribute center.
-
#left ⇒ Object
Returns the value of attribute left.
-
#right ⇒ Object
Returns the value of attribute right.
Instance Method Summary collapse
-
#colorize(border, style) ⇒ Object
Colorize characters with a given style.
Instance Attribute Details
#center ⇒ Object
Returns the value of attribute center
7 8 9 |
# File 'lib/tty/table/border/row_line.rb', line 7 def center @center end |
#left ⇒ Object
Returns the value of attribute left
7 8 9 |
# File 'lib/tty/table/border/row_line.rb', line 7 def left @left end |
#right ⇒ Object
Returns the value of attribute right
7 8 9 |
# File 'lib/tty/table/border/row_line.rb', line 7 def right @right end |
Instance Method Details
#colorize(border, style) ⇒ Object
Colorize characters with a given style
11 12 13 14 15 |
# File 'lib/tty/table/border/row_line.rb', line 11 def colorize(border, style) self.right = border.set_color(style, right) self.center = border.set_color(style, center) self.left = border.set_color(style, left) end |