From 4d16bfc43780e5d3f7368625700b583e3e98217a Mon Sep 17 00:00:00 2001
From: Randy Morgan Using Styles#add_style is the recommended way to manage cell protection.
+Using Styles#add_style is the recommended way to manage cell protection.
+ CellProtection stores information about locking or hiding cells in
-spreadsheet.
+CellProtection stores information about locking or hiding cells in
+spreadsheet.
+
specifies locking for cells that have the style containing this protection.
++specifies locking for cells that have the style containing this protection. +
specifies if the cells that have the style containing this protection.
++specifies if the cells that have the style containing this protection. +
Creates a new CellProtection.
++Creates a new CellProtection. +
Serializes the cell protection.
++Serializes the cell protection. +
Creates a new CellProtection
++Creates a new CellProtection +
a customizable set of options
++a customizable set of options +
value for hidden protection
+ —+value for hidden protection +
value for locked protection
+ —+value for locked protection +
# File 'lib/axlsx/stylesheet/cell_protection.rb', line 18 -def initialize(={}) - .each do |o| - self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}=" - end -end+def initialize(={}) + .each do |o| + self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}=" + end +end +
specifies locking for cells that have the style containing this protection
++specifies locking for cells that have the style containing this protection +
# File 'lib/axlsx/stylesheet/cell_protection.rb', line 9 -def - @hidden -end+def hidden + @hidden +end +
specifies if the cells that have the style containing this protection
++specifies if the cells that have the style containing this protection +
# File 'lib/axlsx/stylesheet/cell_protection.rb', line 13 -def locked - @locked -end+def locked + @locked +end +
Serializes the cell protection
++Serializes the cell protection +
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/cell_protection.rb', line 32 -def to_xml(xml) - xml.protection(self.instance_values) -end+def to_xml(xml) + xml.protection(self.instance_values) +end +