Be able to pass options hash to Roo

This commit is contained in:
John Bintz 2014-03-01 11:03:28 -05:00
parent cc9f2df964
commit 0c8a377b5f

View File

@ -2,12 +2,12 @@ require 'roo'
module SVGGVS module SVGGVS
class DataSource class DataSource
def initialize(file) def initialize(file, options = {})
@file = file @file, @options = [ file, options ].flatten.compact
end end
def doc def doc
@doc ||= Roo::Spreadsheet.open(@file) @doc ||= Roo::Spreadsheet.open(@file, @options)
end end
def settings def settings