Sha256: f0a2e2e5242fdb39b3c7b866b0d8ae180f77ec584a2b9541e7f00fe9e1a8b3b7

Contents?: true

Size: 572 Bytes

Versions: 2

Compression:

Stored size: 572 Bytes

Contents

# frozen_string_literal: true

require_relative 'math_text/math_paragraph'
module OoxmlParser
  # Class for storing math text
  class MathText < OOXMLDocumentObject
    attr_accessor :math_paragraph
    # Parse MathText object
    # @param node [Nokogiri::XML:Element] node to parse
    # @return [MathText] result of parsing
    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
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ooxml_parser-0.5.1 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/choice/math_text.rb
ooxml_parser-0.5.0 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/choice/math_text.rb