Class: TTY::Table::Border::Null

Inherits:
TTY::Table::Border show all
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

#border

Attributes included from Equatable

#comparison_attrs

Instance Method Summary collapse

Methods inherited from TTY::Table::Border

#[], #color?, def_border, #initialize, #row_line, 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_lineObject

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



32
33
34
# File 'lib/tty/table/border/null.rb', line 32

def bottom_line
  border ? super : nil
end

#separatorObject

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_lineObject

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