class Sheen::Table::StringData

Overview

A Data backed by a mutable matrix of strings.

Defined in:

sheen/table.cr

Constructors

Instance Method Summary

Instance methods inherited from class Sheen::Table::Data

at(row : Int32, cell : Int32) : String at, columns : Int32 columns, rows : Int32 rows

Constructor Detail

def self.new(rows : Array(Array(String)) = [] of Array(String)) #

[View source]

Instance Method Detail

def append(row : Array(String)) : StringData #

Appends row, widening the column count if needed.

Returns self


[View source]
def at(row : Int32, cell : Int32) : String #

The cell at (row, cell), or "" when out of range.


[View source]
def columns : Int32 #

The number of columns.


[View source]
def item(*cells : String) : StringData #

Appends a row built from cells.

Returns self.


[View source]
def rows : Int32 #

The number of rows


[View source]