Sha256: 580c2f546884f5705863fae38435f1d00c115092e856bf092e75d81f6505e20b
Contents?: true
Size: 678 Bytes
Versions: 4
Compression:
Stored size: 678 Bytes
Contents
module OoxmlParser # Class for `limUpp`, `limLow` data class Limit < OOXMLDocumentObject attr_accessor :type, :element, :limit def initialize(parent: nil) @type = :upper @parent = parent end # Parse Accent object # @param node [Nokogiri::XML:Element] node to parse # @return [Accent] result of parsing def parse(node) @type = :lower if node.name == 'limLow' node.xpath('*').each do |node_child| case node_child.name when 'lim' @limit = DocxFormula.new(parent: self).parse(node_child) end end @element = DocxFormula.new(parent: self).parse(node) self end end end
Version data entries
4 entries across 4 versions & 1 rubygems