Sha256: 9d20f05d0aefc3cf644613561581b142641a1a844534497e7873ad787360b8ec
Contents?: true
Size: 577 Bytes
Versions: 2
Compression:
Stored size: 577 Bytes
Contents
# frozen_string_literal: true require_relative 'choice/math_text' module OoxmlParser # Class for storing choice (for office 2014 and newer) # graphic data class Choice < OOXMLDocumentObject attr_accessor :math_text # Parse Choice object # @param node [Nokogiri::XML:Element] node to parse # @return [Choice] result of parsing def parse(node) node.xpath('*').each do |node_child| case node_child.name when 'm' @math_text = MathText.new(parent: self).parse(node_child) end end self end end end
Version data entries
2 entries across 2 versions & 1 rubygems