Sha256: 1da3633839fe0d29d75caf9ddaa1c5c61d1aa554782bf17a7454d03508a32dad
Contents?: true
Size: 855 Bytes
Versions: 20
Compression:
Stored size: 855 Bytes
Contents
# frozen_string_literal: true module OoxmlParser # Class for parsing `a:fillRef`, `a:effectRef`, `a:lnRef` tags class StyleMatrixReference < OOXMLDocumentObject # @return [Integer] Style Matrix Index attr_reader :index # @return [Color] scheme color of EffectReference attr_reader :scheme_color # Parse StyleMatrixReference object # @param node [Nokogiri::XML:Element] node to parse # @return [StyleMatrixReference] result of parsing def parse(node) node.attributes.each do |key, value| case key when 'idx' @index = value.value.to_f end end node.xpath('*').each do |node_child| case node_child.name when 'schemeClr' @scheme_color = Color.new(parent: self).parse_scheme_color(node_child) end end self end end end
Version data entries
20 entries across 20 versions & 1 rubygems