Class: OoxmlParser::ArgumentProperties
- Inherits:
-
OOXMLDocumentObject
- Object
- OOXMLDocumentObject
- OoxmlParser::ArgumentProperties
- Defined in:
- lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_formula/argument_properties.rb
Overview
Class for parsing ‘m:argPr` object
Instance Attribute Summary collapse
-
#argument_size ⇒ ArgumentSize
Size of argument.
Attributes inherited from OOXMLDocumentObject
Instance Method Summary collapse
-
#parse(node) ⇒ ArgumentProperties
Parse ArgumentProperties.
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
#argument_size ⇒ ArgumentSize
Returns size of argument.
6 7 8 |
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_formula/argument_properties.rb', line 6 def argument_size @argument_size end |
Instance Method Details
#parse(node) ⇒ ArgumentProperties
Parse ArgumentProperties
11 12 13 14 15 16 17 18 19 |
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_formula/argument_properties.rb', line 11 def parse(node) node.xpath('*').each do |argument_child| case argument_child.name when 'argSz' @argument_size = ArgumentSize.new(parent: self).parse(argument_child) end end self end |