Sha256: 4e23d70dc6a203fc4e0b4d8d01c85f2aba4ed8333460c9ad1fc237583f1927ac

Contents?: true

Size: 547 Bytes

Versions: 4

Compression:

Stored size: 547 Bytes

Contents

# Describe single table element
module OoxmlParser
  class TableElement < OOXMLDocumentObject
    attr_accessor :cell_style

    alias cell_properties cell_style

    # Parse TableElement object
    # @param node [Nokogiri::XML:Element] node to parse
    # @return [TableElement] result of parsing
    def parse(node)
      node.xpath('*').each do |node_child|
        case node_child.name
        when 'tcStyle', 'tcPr'
          @cell_style = CellProperties.new(parent: self).parse(node_child)
        end
      end
      self
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ooxml_parser-0.4.1 lib/ooxml_parser/common_parser/common_data/table/properties/table_element.rb
ooxml_parser-0.4.0 lib/ooxml_parser/common_parser/common_data/table/properties/table_element.rb
ooxml_parser-0.3.0 lib/ooxml_parser/common_parser/common_data/table/properties/table_element.rb
ooxml_parser-0.2.0 lib/ooxml_parser/common_parser/common_data/table/properties/table_element.rb