Method: Spreadsheet::Excel::Writer::Workbook#write_xfs

Defined in:
lib/spreadsheet/excel/writer/workbook.rb

#write_xfs(workbook, writer) ⇒ Object



605
606
607
608
609
610
611
# File 'lib/spreadsheet/excel/writer/workbook.rb', line 605

def write_xfs workbook, writer
  # The default cell format is always present in an Excel file, described by
  # the XF record with the fixed index 15 (0-based). By default, it uses the
  # worksheet/workbook default cell style, described by the very first XF
  # record (index 0).
  @formats[workbook][:writers].each { |fmt| fmt.write_xf writer }
end