Sha256: d07047572919fed148b1610b8cc43b5182473f4e697e5d276f0d3502ed28ad6b
Contents?: true
Size: 630 Bytes
Versions: 8
Compression:
Stored size: 630 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 @parent = parent 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
8 entries across 8 versions & 1 rubygems