class OoxmlParser::XlsxColumns
Class for parsing XlsxColumns
object <cols>
Attributes
@return [Array<XlsxColumnProperties>] list of elements
Public Class Methods
Source
# File lib/ooxml_parser/xlsx_parser/workbook/worksheet/xlsx_columns.rb, line 10 def initialize(parent: nil) @elements = [] super end
Calls superclass method
OoxmlParser::OOXMLDocumentObject::new
Public Instance Methods
Source
# File lib/ooxml_parser/xlsx_parser/workbook/worksheet/xlsx_columns.rb, line 18 def parse(node) node.xpath('*').each do |node_child| case node_child.name when 'col' @elements << XlsxColumnProperties.new(parent: parent).parse(node_child) end end self end
Parse XlsxColumns
@param node [Nokogiri::XML::Element] node to parse @return [XlsxColumns] value of TimeNodeList