Class: OoxmlParser::NaryProperties
- Inherits:
-
OOXMLDocumentObject
- Object
- OOXMLDocumentObject
- OoxmlParser::NaryProperties
- Defined in:
- lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/nary/nary_properties.rb
Overview
Class for parsing ‘m:naryPr` object
Instance Attribute Summary collapse
-
#grow ⇒ NaryGrow
Grow value.
-
#limit_location ⇒ NaryLimitLocation
Nary limit location.
Attributes inherited from OOXMLDocumentObject
Instance Method Summary collapse
-
#parse(node) ⇒ NaryProperties
Parse NaryProperties.
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
#grow ⇒ NaryGrow
Returns grow value.
9 10 11 |
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/nary/nary_properties.rb', line 9 def grow @grow end |
#limit_location ⇒ NaryLimitLocation
Returns nary limit location.
11 12 13 |
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/nary/nary_properties.rb', line 11 def limit_location @limit_location end |
Instance Method Details
#parse(node) ⇒ NaryProperties
Parse NaryProperties
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/nary/nary_properties.rb', line 16 def parse(node) node.xpath('*').each do |nary_pr_child| case nary_pr_child.name when 'grow' @grow = NaryGrow.new(parent: self).parse(nary_pr_child) when 'limLoc' @limit_location = NaryLimitLocation.new(parent: self).parse(nary_pr_child) end end self end |