class
Sheen::Table::Filter
- Sheen::Table::Filter
- Sheen::Table::Data
- Reference
- Object
Overview
A Data presenting a predicate-filtered view of another Data's rows. #columns are never touched.
Filtered out rows are skipped and reindexing is applied over survivors.
Defined in:
sheen/table.crConstructors
-
.new(data : Data)
Wraps data.
Instance Method Summary
-
#at(row : Int32, cell : Int32) : String
The cell at the row-th passing row and cell column, or "" when out of range
-
#columns : Int32
The wrapped data's column count
-
#filter(&block : Int32 -> Bool) : Filter
Sets the predicate block deciding whether the row at each index is kept.
-
#rows : Int32
The number of passing rows.
Instance methods inherited from class Sheen::Table::Data
at(row : Int32, cell : Int32) : String
at,
columns : Int32
columns,
rows : Int32
rows
Constructor Detail
Instance Method Detail
def at(row : Int32, cell : Int32) : String
#
The cell at the row-th passing row and cell column, or "" when out of range
Sets the predicate block deciding whether the row at each index is kept.
Returns self.