Sha256: 62b55456cb3f2ceb9594bf918f0e1371d8f183ff70523d8ca5382992288e65dc
Contents?: true
Size: 613 Bytes
Versions: 1
Compression:
Stored size: 613 Bytes
Contents
require_relative 'fill/pattern_fill' module OoxmlParser # Parsing `fill` tag class Fill < OOXMLDocumentObject # @return [PatternFill] pattern fill attr_accessor :pattern_fill # Parse Fill data # @param [Nokogiri::XML:Element] node with Fill data # @return [Fill] value of Fill data def parse(node) node.xpath('*').each do |node_child| case node_child.name when 'patternFill' @pattern_fill = PatternFill.new(parent: self).parse(node_child) end end self end def to_color pattern_fill.foreground_color end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ooxml_parser-0.2.0 | lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/style_sheet/fills/fill.rb |