Class: Spreadsheet::Excel::ExcelCompatibleWorkbook

Inherits:
Workbook show all
Defined in:
lib/spreadsheet/excel.rb

Constant Summary

Constants inherited from Workbook

Workbook::BIFF_VERSIONS, Workbook::VERSION_STRINGS

Instance Attribute Summary

Attributes inherited from Workbook

#bof, #date_base, #ole

Attributes included from Offset

#changes, #offsets

Attributes inherited from Workbook

#active_worksheet, #default_format, #encoding, #fonts, #formats, #io, #palette, #version, #worksheets

Instance Method Summary collapse

Methods inherited from Workbook

#add_shared_string, #add_worksheet, #biff_version, #inspect, open, #shared_string, #sst_size, #uninspect_variables, #version_string

Methods included from Offset

append_features

Methods included from Compatibility

#ivar_name, #method_name

Methods inherited from Workbook

#add_font, #add_format, #add_worksheet, #create_worksheet, #delete_worksheet, #font, #format, #inspect, #set_custom_color, #sheet_count, #uninspect_variables, #worksheet, #write, #writer

Constructor Details

#initialize(file_path, *args) ⇒ ExcelCompatibleWorkbook

Returns a new instance of ExcelCompatibleWorkbook.



9
10
11
12
# File 'lib/spreadsheet/excel.rb', line 9

def initialize file_path, *args
  super *args
  @file_path = file_path
end

Instance Method Details

#closeObject



13
14
15
# File 'lib/spreadsheet/excel.rb', line 13

def close
  write @file_path
end