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

NEWLINE

Instance Method Summary collapse

Methods included from Unicode

#as_unicode, #clean_utf8, #utf8?

Constructor Details

#initialize(row) ⇒ Null

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.

Returns a new instance of Null.



11
12
13
14
# File 'lib/tty/table/border/null.rb', line 11

def initialize(row)
  @row = row
  @widths = row.map { |cell| cell.chars.to_a.size }
end

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



42
43
44
# File 'lib/tty/table/border/null.rb', line 42

def bottom_line
  nil
end

#row_lineString

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.

Returns:

  • (String)


35
36
37
# File 'lib/tty/table/border/null.rb', line 35

def row_line
  row.join(' ')
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



26
27
28
# File 'lib/tty/table/border/null.rb', line 26

def separator
  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



19
20
21
# File 'lib/tty/table/border/null.rb', line 19

def top_line
  nil
end