Method: Axlsx::Workbook#initialize
- Defined in:
- lib/axlsx/workbook/workbook.rb
#initialize(options = {}) {|_self| ... } ⇒ Workbook
Creates a new Workbook The recomended way to work with workbooks is via Package#workbook
114 115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/axlsx/workbook/workbook.rb', line 114 def initialize(={}) @styles = Styles.new @worksheets = SimpleTypedList.new Worksheet @drawings = SimpleTypedList.new Drawing @charts = SimpleTypedList.new Chart @images = SimpleTypedList.new Pic @tables = SimpleTypedList.new Table @use_autowidth = true self.date1904= ![:date1904].nil? && [:date1904] yield self if block_given? end |