Sha256: 43a5b1124271ebcf25f425a485392bdbae270b041ba37cdb6817a763bbb5215e
Contents?: true
Size: 1023 Bytes
Versions: 28
Compression:
Stored size: 1023 Bytes
Contents
# frozen_string_literal: true require_relative 'conditional_formattings/conditional_formatting' module OoxmlParser # Class for `conditionalFormattings` data class ConditionalFormattings < OOXMLDocumentObject # @return [Array<ConditionalFormatting>] list of conditional formattings attr_reader :conditional_formattings_list def initialize(parent: nil) @conditional_formattings_list = [] super end # @return [Array, ConditionalFormatting] accessor def [](key) @conditional_formattings_list[key] end # Parse ConditionalFormattings data # @param [Nokogiri::XML:Element] node with ConditionalFormattings data # @return [ConditionalFormattings] value of ConditionalFormattings data def parse(node) node.xpath('*').each do |node_child| case node_child.name when 'conditionalFormatting' @conditional_formattings_list << ConditionalFormatting.new(parent: self).parse(node_child) end end self end end end
Version data entries
28 entries across 28 versions & 1 rubygems