class Prawn::Table::Cells
def []=(row, col, cell) # :nodoc:
Puts a cell in the collection at the given position. Internal use only.
def []=(row, col, cell) # :nodoc: cell.extend(Cell::InTable) cell.row = row cell.column = col if defined?(@indexed) && @indexed (@rows[row] ||= []) << cell (@columns[col] ||= []) << cell @first_row = row if !@first_row || row < @first_row @first_column = col if !@first_column || col < @first_column @row_count = @rows.size @column_count = @columns.size end self << cell end