lib/pivot_table/grid.rb in pivot_table-0.4.0 vs lib/pivot_table/grid.rb in pivot_table-0.5.0
- old
+ new
@@ -43,14 +43,14 @@
)
end
end
def column_headers
- headers @column_name
+ @column_headers ||= headers @column_name
end
def row_headers
- headers @row_name
+ @row_headers ||= headers @row_name
end
def column_totals
columns.map { |c| c.total }
end