Sha256: 36fb6126bda835f566f9855846cdcf3ede1da207a0c6a9fa5c984637811ba87f
Contents?: true
Size: 640 Bytes
Versions: 3
Compression:
Stored size: 640 Bytes
Contents
require_relative 'table_cell_line' module OoxmlParser # Border Data class Border < OOXMLDocumentObject attr_accessor :style, :color # Parse Border object # @param node [Nokogiri::XML:Element] node to parse # @return [Border] result of parsing def parse(node) node.attributes.each do |key, value| case key when 'style' @style = value_to_symbol(value) end end node.xpath('*').each do |node_child| case node_child.name when 'color' @color = OoxmlColor.new(parent: self).parse(node_child) end end self end end end
Version data entries
3 entries across 3 versions & 1 rubygems