Sha256: e77dc57023d9b58f346e3963113c6112b733a5216799e77a9a7809247c4f8d58
Contents?: true
Size: 645 Bytes
Versions: 8
Compression:
Stored size: 645 Bytes
Contents
# frozen_string_literal: true require_relative 'codition_list/condition' module OoxmlParser # Class for parsing `stCondLst` tags class ConditionList < OOXMLDocumentObject attr_reader :list def initialize(parent: nil) @list = [] @parent = parent end # Parse ConditionList object # @param node [Nokogiri::XML:Element] node to parse # @return [ConditionList] result of parsing def parse(node) node.xpath('*').each do |node_child| case node_child.name when 'cond' @list << Condition.new(parent: self).parse(node_child) end end self end end end
Version data entries
8 entries across 8 versions & 1 rubygems