From 4d16bfc43780e5d3f7368625700b583e3e98217a Mon Sep 17 00:00:00 2001
From: Randy Morgan The recommended way to manage styles in your workbook is to use
-Styles#add_style.
+The recommended way to manage styles in your workbook is to use
+Styles#add_style.
+ The Fill is a formatting object that manages the background color, and
-pattern for cells.
+The Fill is a formatting object that manages the background color, and
+pattern for cells.
+
The type of fill.
++The type of fill. +
Creates a new Fill object.
++Creates a new Fill object. +
Serializes the fill.
++Serializes the fill. +
Creates a new Fill object
++Creates a new Fill object +
if the fill_type parameter is not a PatternFill or a GradientFill instance
++if the fill_type parameter is not a PatternFill or a GradientFill instance +
# File 'lib/axlsx/stylesheet/fill.rb', line 16 -def initialize(fill_type) - self.fill_type = fill_type -end+def initialize(fill_type) + self.fill_type = fill_type +end +
The type of fill
++The type of fill +
# File 'lib/axlsx/stylesheet/fill.rb', line 11 -def fill_type - @fill_type -end+def fill_type + @fill_type +end +
Serializes the fill
++Serializes the fill +
The document builder instance this objects xml will be added to.
++The document builder instance this objects xml will be added to. +
# File 'lib/axlsx/stylesheet/fill.rb', line 23 -def to_xml(xml) - xml.fill { @fill_type.to_xml(xml) } -end+def to_xml(xml) + xml.fill { @fill_type.to_xml(xml) } +end +