Sha256: 9882208e45a4d4abf0fae74ef3a0c5bcdd9ac8eb6c733839d7e4bf7a2543c08a
Contents?: true
Size: 710 Bytes
Versions: 40
Compression:
Stored size: 710 Bytes
Contents
# frozen_string_literal: true module OoxmlParser # Class for `acc` data class Accent < OOXMLDocumentObject attr_accessor :symbol, :element # Parse Accent object # @param node [Nokogiri::XML:Element] node to parse # @return [Accent] result of parsing def parse(node) node.xpath('*').each do |node_child| case node_child.name when 'accPr' node_child.xpath('*').each do |node_child_child| case node_child_child.name when 'chr' @symbol = node_child_child.attribute('val').value end end end end @element = DocxFormula.new(parent: self).parse(node) self end end end
Version data entries
40 entries across 40 versions & 1 rubygems