lib/reportbuilder/table.rb in reportbuilder-1.2.3 vs lib/reportbuilder/table.rb in reportbuilder-1.2.4

- old
+ new

@@ -73,10 +73,13 @@ end # Count the numbers of rows without :hr def n_rows_no_hr @rows.inject(0) {|ac,v| ac+(v==:hr ? 0 : 1)} end + def n_rows + @rows.size + end # Adds a colspan on a cell # table.add_row(["a",table.colspan("b",2)]) def colspan(data,n) Colspan.new(data,n) end @@ -126,10 +129,10 @@ @max_cols.inject(0){|a,v| a+(v+3)}+1 else 0 end end - + ###################### # INTERNAL CLASSES # ######################