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(style) ⇒ Object
Colorize characters with a given style.
Instance Attribute Details
#center ⇒ Object
Returns the value of attribute center
8 9 10 |
# File 'lib/tty/table/border/row_line.rb', line 8 def center @center end |
#left ⇒ Object
Returns the value of attribute left
8 9 10 |
# File 'lib/tty/table/border/row_line.rb', line 8 def left @left end |
#right ⇒ Object
Returns the value of attribute right
8 9 10 |
# File 'lib/tty/table/border/row_line.rb', line 8 def right @right end |
Instance Method Details
#colorize(style) ⇒ Object
Colorize characters with a given style
13 14 15 16 |
# File 'lib/tty/table/border/row_line.rb', line 13 def colorize(style) colorized_chars = Border.set_color(style, right, center, left) self.right, self.center, self.left = colorized_chars end |