lib/berkeley_library/util/ods/xml/table/table.rb
# Adds a new row with the specified height.
# @param height [String] the row height. Defaults to {XML::Style::RowStyle::DEFAULT_HEIGHT}.
# @param number_repeated [Integer] the number of identical rows to repeat
# @return [TableRow] the new row
Adds a new row with the specified height.
Adds a new row with the specified height .
def add_row(height = nil, number_repeated = 1)
              row_style = styles.find_or_create_row_style(height)
              TableRow.new(row_style, number_repeated, table: self).tap do |row|
                rows << row
                self.row_count += number_repeated
              end
            end
def add_row ( height = nil , number_repeated = 1 ) row_style = styles . find_or_create_row_style ( height ) TableRow . new ( row_style , number_repeated , table : self ) . tap do | row | rows << row self . row_count += number_repeated end end
Adds a new row with the specified height.
Adds a new row with the specified height .
the new row
the new row
TableRow
height
the row height. Defaults to {XML::Style::RowStyle::DEFAULT_HEIGHT}.
the row height . Defaults to { XML :: Style :: RowStyle :: DEFAULT_HEIGHT } .
number_repeated
the number of identical rows to repeat
the number of identical rows to repeat