Sha256: 3b802afe04071f3b9ff730338edae96bc919a328442252480f402d0827e5f34c

Contents?: true

Size: 523 Bytes

Versions: 1

Compression:

Stored size: 523 Bytes

Contents

# Table Style in XLSX
module OoxmlParser
  class TableStyleElement < OOXMLDocumentObject
    attr_accessor :cell_properties

    def initialize
      @cell_properties = CellProperties.new
    end

    def self.parse(style_node)
      element_style = TableStyleElement.new
      style_node.xpath('*').each do |style_node_child|
        case style_node_child.name
        when 'tcPr'
          element_style.cell_properties = CellProperties.parse(style_node_child)
        end
      end
      element_style
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ooxml_parser-0.1.2 lib/ooxml_parser/common_parser/common_data/table/properties/table_style_elements.rb