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, #version, #worksheets

Instance Method Summary collapse

Methods inherited from Workbook

#add_shared_string, #add_worksheet, #biff_version, 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, #font, #format, #inspect, #uninspect_variables, #worksheet, #write, #writer

Constructor Details

#initialize(file_path, *args) ⇒ ExcelCompatibleWorkbook

Returns a new instance of ExcelCompatibleWorkbook.



15
16
17
18
# File 'lib/spreadsheet/excel.rb', line 15

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

Instance Method Details

#closeObject



19
20
21
# File 'lib/spreadsheet/excel.rb', line 19

def close
  write @file_path
end