Class: TTY::Table::Border::Null
- Inherits:
-
TTY::Table::Border
- Object
- TTY::Table::Border
- TTY::Table::Border::Null
- Defined in:
- lib/tty/table/border/null.rb
Overview
A class that represents no border.
Constant Summary
Constants inherited from TTY::Table::Border
EACH_ROW, EMPTY_CHAR, SPACE_CHAR
Instance Attribute Summary
Attributes inherited from TTY::Table::Border
Attributes included from Equatable
Instance Method Summary collapse
-
#bottom_line ⇒ Object
private
A stub bottom line.
-
#row_line ⇒ String
private
A line spanning all columns delemited by space character.
-
#separator ⇒ Object
private
A stub separator line.
-
#top_line ⇒ Object
private
A stub top line.
Methods inherited from TTY::Table::Border
#[], #color?, def_border, #initialize, set_color
Methods included from Equatable
#attr_reader, included, #inherited
Methods included from Unicode
#as_unicode, #clean_utf8, #utf8?
Constructor Details
This class inherits a constructor from TTY::Table::Border
Instance Method Details
#bottom_line ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
A stub bottom line
41 42 43 |
# File 'lib/tty/table/border/null.rb', line 41 def bottom_line border ? super : nil end |
#row_line ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
A line spanning all columns delemited by space character.
34 35 36 |
# File 'lib/tty/table/border/null.rb', line 34 def row_line (border && !border.characters.empty?) ? super : row.join(SPACE_CHAR) end |
#separator ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
A stub separator line
24 25 26 27 |
# File 'lib/tty/table/border/null.rb', line 24 def separator return [] if border.separator == EACH_ROW border ? super : nil end |
#top_line ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
A stub top line
17 18 19 |
# File 'lib/tty/table/border/null.rb', line 17 def top_line border ? super : nil end |