lib/workbook.rb in rxl-0.2.1 vs lib/workbook.rb in rxl-0.3.0

- old
+ new

@@ -24,9 +24,15 @@ 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) + hash_workbook = {} + hash_tables.each { |k, v| hash_workbook[k] = Worksheet.hashes_to_hash_worksheet(v, order, write_headers: write_headers) } + hash_workbook + end + def self.hash_workbook_to_hash_tables(hash_workbook) hash_workbook.keys.each_with_object({}) do |key, hash_tables| hash_tables[key] = Worksheet.hash_worksheet_to_hash_table(hash_workbook[key]) end end \ No newline at end of file