Sha256: 2c67e0047ab76faa0361f01d1bdc303c1236c9b86719b6c20ac16ec357ed3a26
Contents?: true
Size: 804 Bytes
Versions: 21
Compression:
Stored size: 804 Bytes
Contents
# frozen_string_literal: true module OoxmlParser # Class for parsing `a:lnRef` tags class LineReference < OOXMLDocumentObject # @return [Integer] Style Matrix Index attr_reader :index # @return [Color] scheme color of LineReference attr_reader :scheme_color # Parse LineReference object # @param node [Nokogiri::XML:Element] node to parse # @return [LineReference] 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
21 entries across 21 versions & 1 rubygems