class OoxmlParser::Choice

Class for storing choice (for office 2014 and newer) graphic data

Attributes

math_text[RW]

Public Instance Methods

parse(node) click to toggle source

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

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