class Prawn::Table::Cells
def [](row, col)
table.cells[0, 0].content # => "First cell content"
individual Cell, not a Cells collection.
Retrieves a cell based on its 0-based row and column. Returns an
def [](row, col) return nil if empty? index_cells unless defined?(@indexed) && @indexed row_array, col_array = @rows[@first_row + row] || [], @columns[@first_column + col] || [] if row_array.length < col_array.length row_array.find { |c| c.column == @first_column + col } else col_array.find { |c| c.row == @first_row + row } end end