class Tablo::Row

Included Modules

Defined in:

row.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(table : Table, source : Array(CellType), idx : Int32, with_header : Bool = true) #

Creates a new instance of a Row


[View source]

Instance Method Detail

def each(&) #

Calls the given block once for each cell(column) in the Row, passing that cell value as parameter. Each "cell" is just the calculated value for its column (pre-formatting) for this Row's source item.


[View source]
def to_h #

Returns a Hash representation of the Row, with column labels acting as keys and the calculated cell values (before formatting) providing the values.


[View source]
def to_s(io) #

Returns a string being an "ASCII" graphical representation of the Row, including any column headers that appear just above it in the Table (depending on where this Row is in the Table and how the Table was configured with respect to header frequency).


[View source]