Module: Writexlsx::Workbook::Initialization
- Included in:
- Writexlsx::Workbook
- Defined in:
- lib/write_xlsx/workbook/initialization.rb,
lib/write_xlsx/workbook/workbook_writer.rb
Overview
Workbook initialization helpers extracted from Workbook to keep the main class focused on public API and orchestration.
Instance Method Summary collapse
-
#assemble_xml_file ⇒ Object
user must not use.
Instance Method Details
#assemble_xml_file ⇒ Object
user must not use. it is internal method.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/write_xlsx/workbook/workbook_writer.rb', line 10 def assemble_xml_file # :nodoc: return unless @writer # Prepare format object for passing to Style.rb. prepare_format_properties write_xml_declaration do # Write the root workbook element. write_workbook do # Write the XLSX file version. write_file_version # Write the fileSharing element. write_file_sharing # Write the workbook properties. write_workbook_pr # Write the workbook view properties. write_book_views # Write the worksheet names and ids. @worksheets.write_sheets(@writer) # Write the workbook defined names. write_defined_names # Write the workbook calculation properties. write_calc_pr # Write the workbook extension storage. # write_ext_lst end end end |