class OoxmlParser::MathText

Class for storing math text

Attributes

math_paragraph[RW]

Public Instance Methods

parse(node) click to toggle source

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

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