class TTY::Table::Empty

Constants

ZERO_ROW

Public Class Methods

new(header, rows = ZERO_ROW) click to toggle source
Calls superclass method TTY::Table::new
# File lib/tty/table/empty.rb, line 9
def self.new(header, rows = ZERO_ROW)
  super.new(header, rows)
end

Public Instance Methods

each() click to toggle source
# File lib/tty/table/empty.rb, line 13
def each
  return to_enum unless block_given?
  self
end
size() click to toggle source
# File lib/tty/table/empty.rb, line 18
def size
  0
end
width() click to toggle source
# File lib/tty/table/empty.rb, line 22
def width
  0
end