class OoxmlParser::Column
Class for parsing ‘w:col` object
Attributes
Public Instance Methods
Source
# File lib/ooxml_parser/docx_parser/document_structure/page_properties/columns/column.rb, line 11 def parse(node) node.attributes.each do |key, value| case key when 'w' @width = OoxmlSize.new(value.value.to_f) when 'space' @space = OoxmlSize.new(value.value.to_f) end end self end
Parse Column
@param [Nokogiri::XML:Node] node with Column
@return [Column] result of parsing