Class: OoxmlParser::NaryProperties
- Inherits:
-
OOXMLDocumentObject
- Object
- OOXMLDocumentObject
- OoxmlParser::NaryProperties
- Defined in:
- lib/ooxml_parser/docx_parser/docx_data/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
#==, add_to_xmls_stack, copy_file_and_rename_to_zip, current_xml, dir, encrypted_file?, get_link_from_rels, #initialize, unzip_file, #with_data?
Methods included from OoxmlDocumentObjectHelper
Constructor Details
This class inherits a constructor from OoxmlParser::OOXMLDocumentObject
Instance Attribute Details
#grow ⇒ NaryGrow
Returns grow value.
7 8 9 |
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_formula/nary/nary_properties.rb', line 7 def grow @grow end |
#limit_location ⇒ NaryLimitLocation
Returns nary limit location.
9 10 11 |
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_formula/nary/nary_properties.rb', line 9 def limit_location @limit_location end |
Instance Method Details
#parse(node) ⇒ NaryProperties
Parse NaryProperties
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_formula/nary/nary_properties.rb', line 14 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 |