class OoxmlParser::TableElement

Describe single table element

Attributes

cell_properties[RW]
cell_style[RW]

Public Instance Methods

parse(node) click to toggle source

Parse TableElement object @param node [Nokogiri::XML:Element] node to parse @return [TableElement] result of parsing

# File lib/ooxml_parser/common_parser/common_data/table/properties/table_element.rb, line 13
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