class OoxmlParser::MathRunProperties
Class for parsing `m:rPr` object
Attributes
break[RW]
@return [True, False] is run with break
Public Class Methods
new(parent: nil)
click to toggle source
Calls superclass method
OoxmlParser::OOXMLDocumentObject::new
# File lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_formula/math_run/math_run_properties.rb, line 9 def initialize(parent: nil) @break = false super end
Public Instance Methods
parse(node)
click to toggle source
Parse MathRunProperties
@param [Nokogiri::XML:Node] node with MathRunProperties
@return [MathRunProperties] result of parsing
# File lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_formula/math_run/math_run_properties.rb, line 17 def parse(node) node.xpath('*').each do |math_run_child| case math_run_child.name when 'brk' @break = true end end self end