class Roo::Excelx::Shared

Public: Shared class for allowing sheets to share data. This should

reduce memory usage and reduce the number of objects being passed
to various inititializers.

Attributes

comments_files[RW]
image_files[RW]
image_rels[RW]
rels_files[RW]
sheet_files[RW]

Public Class Methods

new(dir, options = {}) click to toggle source
# File lib/roo/excelx/shared.rb, line 8
def initialize(dir, options = {})
  @dir = dir
  @comments_files = []
  @sheet_files = []
  @rels_files = []
  @options = options
  @image_rels = []
  @image_files = []
end

Public Instance Methods

base_date() click to toggle source
# File lib/roo/excelx/shared.rb, line 30
def base_date
  workbook.base_date
end
base_timestamp() click to toggle source
# File lib/roo/excelx/shared.rb, line 34
def base_timestamp
  workbook.base_timestamp
end
shared_strings() click to toggle source
# File lib/roo/excelx/shared.rb, line 22
def shared_strings
  @shared_strings ||= SharedStrings.new(File.join(@dir, 'roo_sharedStrings.xml'), @options)
end
styles() click to toggle source
# File lib/roo/excelx/shared.rb, line 18
def styles
  @styles ||= Styles.new(File.join(@dir, 'roo_styles.xml'))
end
workbook() click to toggle source
# File lib/roo/excelx/shared.rb, line 26
def workbook
  @workbook ||= Workbook.new(File.join(@dir, 'roo_workbook.xml'))
end