From 0c8a377b5fd5c2325b93309596e840d0db33d0bc Mon Sep 17 00:00:00 2001 From: John Bintz Date: Sat, 1 Mar 2014 11:03:28 -0500 Subject: [PATCH] Be able to pass options hash to Roo --- lib/svggvs/data_source.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/svggvs/data_source.rb b/lib/svggvs/data_source.rb index 79f0d51..3442cbf 100644 --- a/lib/svggvs/data_source.rb +++ b/lib/svggvs/data_source.rb @@ -2,12 +2,12 @@ require 'roo' module SVGGVS class DataSource - def initialize(file) - @file = file + def initialize(file, options = {}) + @file, @options = [ file, options ].flatten.compact end def doc - @doc ||= Roo::Spreadsheet.open(@file) + @doc ||= Roo::Spreadsheet.open(@file, @options) end def settings