lib/pivot_table/grid.rb in pivot_table-0.2.0 vs lib/pivot_table/grid.rb in pivot_table-0.3.0

- old
+ new

@@ -24,21 +24,23 @@ @rows = [] @data_grid.each_with_index do |data, index| @rows << Row.new( :header => row_headers[index], :data => data, - :value_name => value_name + :value_name => value_name, + :orthogonal_headers => column_headers ) end end def build_columns @columns = [] @data_grid.transpose.each_with_index do |data, index| @columns << Column.new( - :header => column_headers[index], - :data => data, - :value_name => value_name + :header => column_headers[index], + :data => data, + :value_name => value_name, + :orthogonal_headers => row_headers ) end end def column_headers