Class: OoxmlParser::TableStyleRowBandSize
- Inherits:
-
OOXMLDocumentObject
- Object
- OOXMLDocumentObject
- OoxmlParser::TableStyleRowBandSize
- Defined in:
- lib/ooxml_parser/common_parser/common_data/table/properties/table_style_row_band_size.rb
Overview
Class for parsing ‘w:tblStyleRowBandSize` object When a style specifies the format for a band for rows in a table (a set of contiguous rows), this specifies the number of rows in a band.
Instance Attribute Summary collapse
-
#value ⇒ Integer
Value of table style column band size.
Attributes inherited from OOXMLDocumentObject
Instance Method Summary collapse
-
#parse(node) ⇒ TableStyleRowBandSize
Parse TableStyleRowBandSize.
Methods inherited from OOXMLDocumentObject
#==, #boolean_attribute_value, #initialize, #parse_xml, #with_data?
Methods included from OoxmlObjectAttributeHelper
#attribute_enabled?, #option_enabled?
Methods included from OoxmlDocumentObjectHelper
Constructor Details
This class inherits a constructor from OoxmlParser::OOXMLDocumentObject
Instance Attribute Details
#value ⇒ Integer
Returns value of table style column band size.
10 11 12 |
# File 'lib/ooxml_parser/common_parser/common_data/table/properties/table_style_row_band_size.rb', line 10 def value @value end |
Instance Method Details
#parse(node) ⇒ TableStyleRowBandSize
Parse TableStyleRowBandSize
15 16 17 18 19 20 21 22 23 |
# File 'lib/ooxml_parser/common_parser/common_data/table/properties/table_style_row_band_size.rb', line 15 def parse(node) node.attributes.each do |key, value| case key when 'val' @value = value.value.to_i end end self end |