lib/axlsx/workbook/workbook.rb in axlsx-1.0.9 vs lib/axlsx/workbook/workbook.rb in axlsx-1.0.10a

- old
+ new

@@ -61,11 +61,13 @@ # The styles associated with this workbook # @note The recommended way to manage styles is Styles#add_style # @see Style#add_style # @see Style # @return [Styles] - attr_reader :styles - + def styles + yield @styles if block_given? + @styles + end # Indicates if the epoc date for serialization should be 1904. If false, 1900 is used. @@date1904 = false