Method: Axlsx::Workbook#initialize

Defined in:
lib/axlsx/workbook/workbook.rb

#initialize(options = {}) {|_self| ... } ⇒ Workbook

Creates a new Workbook

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • date1904 (Boolean)

Yields:

  • (_self)

Yield Parameters:



86
87
88
89
90
91
92
93
94
# File 'lib/axlsx/workbook/workbook.rb', line 86

def initialize(options={})
  @styles = Styles.new
  @worksheets = SimpleTypedList.new Worksheet
  @drawings = SimpleTypedList.new Drawing
  @charts = SimpleTypedList.new Chart
  @images = SimpleTypedList.new Pic
  self.date1904= options[:date1904] unless options[:date1904].nil?
  yield self if block_given?      
end