lib/workbook.rb in rxl-0.5.1 vs lib/workbook.rb in rxl-0.6.0

- old
+ new

@@ -24,15 +24,13 @@ Worksheet.hash_worksheet_to_rubyxl_worksheet(hash_value, rubyxl_workbook[hash_key]) end rubyxl_workbook end - def self.hashes_to_hash_workbook(hash_tables, order, write_headers: true) + def self.hashes_to_hash_workbook(hash_tables, write_headers: true) hash_workbook = {} - all_formats = hash_tables.delete(:formats) || {} hash_tables.each do |k, v| - formats = all_formats[k] - hash_workbook[k] = Worksheet.hashes_to_hash_worksheet(v, order, formats, write_headers: write_headers) + hash_workbook[k] = Worksheet.hashes_to_hash_worksheet(v[:rows], v[:columns], v[:formats] || {}, write_headers: write_headers) end hash_workbook end def self.hash_workbook_to_hash_tables(hash_workbook) \ No newline at end of file