class OoxmlParser::MathParagraph

Class for storing math paragraph

Attributes

math[RW]

Public Instance Methods

parse(node) click to toggle source

Parse MathParagraph object @param node [Nokogiri::XML:Element] node to parse @return [MathParagraph] result of parsing

# File lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/choice/math_text/math_paragraph.rb, line 11
def parse(node)
  node.xpath('*').each do |node_child|
    case node_child.name
    when 'oMath'
      @math = DocxFormula.new(parent: self).parse(node_child)
    end
  end
  self
end