class OoxmlParser::TableLayout
Class for parsing `w:tblLayout` object Whether a table uses a fixed width or autofit method for laying out the table contents is specified with the <w:tblLayout> element within the <w:tblPr> element. If <w:tblLayout> is omitted, autofit is assumed.
Attributes
type[RW]
@return [Symbol] Specifies the method of laying out the contents of the table
Public Instance Methods
parse(node)
click to toggle source
Parse TableLayout
@param [Nokogiri::XML:Node] node with TableLayout
@return [TableLayout] result of parsing
# File lib/ooxml_parser/common_parser/common_data/table/properties/table_layout.rb, line 15 def parse(node) node.attributes.each do |key, value| case key when 'type' @type = value.value.to_sym end end self end