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
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