lib/axlsx/workbook/workbook.rb in axlsx-1.0.7 vs lib/axlsx/workbook/workbook.rb in axlsx-1.0.8

- old
+ new

@@ -42,10 +42,17 @@ # @see Worksheet#add_chart # @see Chart # @return [SimpleTypedList] attr_reader :charts + # A colllection of images associated with this workbook + # @note The recommended way to manage images is Worksheet#add_image + # @see Worksheet#add_image + # @see Pic + # @return [SimpleTypedList] + attr_reader :images + # A colllection of drawings associated with this workbook # @note The recommended way to manage drawings is Worksheet#add_chart # @see Worksheet#add_chart # @see Drawing # @return [SimpleTypedList] @@ -75,9 +82,10 @@ 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 def date1904=(v) Axlsx::validate_boolean v; @@date1904 = v; end