lib/rxl.rb in rxl-0.1.4 vs lib/rxl.rb in rxl-0.2.0

- old
+ new

@@ -21,6 +21,18 @@ def self.read_file_as_tables(filepath) hash_workbook = read_file(filepath) Workbook.hash_workbook_to_hash_tables(hash_workbook) end + def self.read_files(filepaths_hash, read_style = nil) + return_hash = {} + filepaths_hash.each do |key, value| + if read_style == :as_tables + return_hash[key] = read_file_as_tables(value) + else + return_hash[key] = read_file(value) + end + end + return_hash + end + end