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