class Prawn::Table
def add_one_header_row(page_of_cells, x_offset, y, row, row_of_header=nil)
Return the height of the header.
this page.
any Cells built for this page) immediately prior to the first data row on
Number the row with the given +row+ index, so that the header appears (in
Add the header row(s) to the given array of cells at the given y-position.
def add_one_header_row(page_of_cells, x_offset, y, row, row_of_header=nil) rows_to_operate_on = @header_row rows_to_operate_on = @header_row.rows(row_of_header) if row_of_header rows_to_operate_on.each do |cell| cell.row = row cell.dummy_cells.each {|c| if cell.rowspan > 1 # be sure to account for cells that span multiple rows # in this case you need multiple row numbers c.row += row else c.row = row end } page_of_cells << [cell, [cell.x + x_offset, y]] end rows_to_operate_on.height end