Be able to pass options hash to Roo
This commit is contained in:
parent
cc9f2df964
commit
0c8a377b5f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user