Sha256: d66ff67fb53b045967eb3238b01ebdc8cfb42806925351d4fc62a48618329daa

Contents?: true

Size: 619 Bytes

Versions: 41

Compression:

Stored size: 619 Bytes

Contents

# frozen_string_literal: true

module OoxmlParser
  # Class for parsing `m:rPr` object
  class MathRunProperties < OOXMLDocumentObject
    # @return [True, False] is run with break
    attr_accessor :break

    def initialize(parent: nil)
      @break = false
      super
    end

    # Parse MathRunProperties
    # @param [Nokogiri::XML:Node] node with MathRunProperties
    # @return [MathRunProperties] result of parsing
    def parse(node)
      node.xpath('*').each do |math_run_child|
        case math_run_child.name
        when 'brk'
          @break = true
        end
      end
      self
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
ooxml_parser-0.38.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/math_run/math_run_properties.rb
ooxml_parser-0.37.1 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/math_run/math_run_properties.rb
ooxml_parser-0.37.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/math_run/math_run_properties.rb
ooxml_parser-0.36.1 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/math_run/math_run_properties.rb
ooxml_parser-0.36.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/math_run/math_run_properties.rb
ooxml_parser-0.35.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/math_run/math_run_properties.rb
ooxml_parser-0.34.2 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/math_run/math_run_properties.rb
ooxml_parser-0.34.1 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/math_run/math_run_properties.rb
ooxml_parser-0.34.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/math_run/math_run_properties.rb
ooxml_parser-0.33.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/math_run/math_run_properties.rb
ooxml_parser-0.32.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/math_run/math_run_properties.rb
ooxml_parser-0.31.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/math_run/math_run_properties.rb
ooxml_parser-0.30.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/math_run/math_run_properties.rb
ooxml_parser-0.29.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/math_run/math_run_properties.rb
ooxml_parser-0.28.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/math_run/math_run_properties.rb
ooxml_parser-0.27.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/math_run/math_run_properties.rb
ooxml_parser-0.26.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/math_run/math_run_properties.rb
ooxml_parser-0.25.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/math_run/math_run_properties.rb
ooxml_parser-0.24.0 lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/math_run/math_run_properties.rb
ooxml_parser-0.23.0 lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_formula/math_run/math_run_properties.rb