Method: TTY::Table#data

Defined in:
lib/tty/table.rb

#dataArray

Provides access to all table data

Returns:

  • (Array)


141
142
143
# File 'lib/tty/table.rb', line 141

def data
  (header && !header.empty?) ? [header] + rows : rows
end