Excel-specific Workbook methods. These are mostly pertinent to the Excel reader. You should have no reason to use any of these.
# File lib/spreadsheet/excel/workbook.rb, line 34 def initialize *args super enc = 'UTF-16LE' if RUBY_VERSION >= '1.9' enc = Encoding.find enc end @encoding = enc @version = 0x600 @sst = [] end
# File lib/spreadsheet/excel/workbook.rb, line 30 def Workbook.open io, opts = {} @reader = Reader.new opts @reader.read io end
# File lib/spreadsheet/excel/workbook.rb, line 47 def add_worksheet worksheet @changes.store :boundsheets, true super end
# File lib/spreadsheet/excel/workbook.rb, line 51 def biff_version case @bof when 0x009 2 when 0x209 3 when 0x409 4 else BIFF_VERSIONS.fetch(@version) { raise "Unkown BIFF_VERSION '#@version'" } end end
# File lib/spreadsheet/excel/workbook.rb, line 63 def date_base @date_base ||= DateTime.new 1899, 12, 31 end
# File lib/spreadsheet/excel/workbook.rb, line 66 def inspect self.worksheets end
# File lib/spreadsheet/excel/workbook.rb, line 72 def sst_size @sst.size end
# File lib/spreadsheet/excel/workbook.rb, line 75 def uninspect_variables super.push '@sst', '@offsets', '@changes' end
# File lib/spreadsheet/excel/workbook.rb, line 78 def version_string client VERSION_STRINGS.fetch(@version, "Unknown"), 'UTF-8' end