aboutsummaryrefslogtreecommitdiffstats
path: root/lib/roo/excelx/shared.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/roo/excelx/shared.rb')
-rwxr-xr-x[-rw-r--r--]lib/roo/excelx/shared.rb13
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/roo/excelx/shared.rb b/lib/roo/excelx/shared.rb
index 3677fa2..bcd2c08 100644..100755
--- a/lib/roo/excelx/shared.rb
+++ b/lib/roo/excelx/shared.rb
@@ -4,12 +4,15 @@ module Roo
# reduce memory usage and reduce the number of objects being passed
# to various inititializers.
class Shared
- attr_accessor :comments_files, :sheet_files, :rels_files
- def initialize(dir)
+ attr_accessor :comments_files, :sheet_files, :rels_files, :image_rels, :image_files
+ def initialize(dir, options = {})
@dir = dir
@comments_files = []
@sheet_files = []
@rels_files = []
+ @options = options
+ @image_rels = []
+ @image_files = []
end
def styles
@@ -17,7 +20,7 @@ module Roo
end
def shared_strings
- @shared_strings ||= SharedStrings.new(File.join(@dir, 'roo_sharedStrings.xml'))
+ @shared_strings ||= SharedStrings.new(File.join(@dir, 'roo_sharedStrings.xml'), @options)
end
def workbook
@@ -27,6 +30,10 @@ module Roo
def base_date
workbook.base_date
end
+
+ def base_timestamp
+ workbook.base_timestamp
+ end
end
end
end