class Prawn::Table::Cells
def rows(row_spec)
table.rows(3..4) # selects rows four and five
table.row(0) # selects first row
numbers; most commonly a number or a range.
that responds to the === operator selecting a set of 0-based row
Limits selection to the given row or rows. +row_spec+ can be anything
def rows(row_spec) index_cells unless defined?(@indexed) && @indexed row_spec = transform_spec(row_spec, @first_row, @row_count) Cells.new(@rows[row_spec] ||= select { |c| row_spec.respond_to?(:include?) ? row_spec.include?(c.row) : row_spec === c.row }) end