Class: OoxmlParser::ArgumentProperties
- Inherits:
-
OOXMLDocumentObject
- Object
- OOXMLDocumentObject
- OoxmlParser::ArgumentProperties
- Defined in:
- lib/ooxml_parser/docx_parser/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
#==, #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
#argument_size ⇒ ArgumentSize
Returns size of argument.
8 9 10 |
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/argument_properties.rb', line 8 def argument_size @argument_size end |
Instance Method Details
#parse(node) ⇒ ArgumentProperties
Parse ArgumentProperties
13 14 15 16 17 18 19 20 21 |
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/argument_properties.rb', line 13 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 |