Sha256: 7e498d7df5b7678135b9a79ffd89ebd0e70a38cf895ab4ee7e121b44a4c13026

Contents?: true

Size: 522 Bytes

Versions: 2

Compression:

Stored size: 522 Bytes

Contents

# frozen_string_literal: true

module OoxmlParser
  # Class for storing math paragraph
  class MathParagraph < OOXMLDocumentObject
    attr_accessor :math
    # Parse MathParagraph object
    # @param node [Nokogiri::XML:Element] node to parse
    # @return [MathParagraph] result of parsing
    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
  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/math_paragraph.rb
ooxml_parser-0.5.0 lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/choice/math_text/math_paragraph.rb