class OoxmlParser::XlsxColumns
Class for parsing XlsxColumns
object <cols>
Attributes
elements[R]
@return [Array<XlsxColumnProperties>] list of elements
Public Class Methods
new(parent: nil)
click to toggle source
Calls superclass method
OoxmlParser::OOXMLDocumentObject::new
# File lib/ooxml_parser/xlsx_parser/workbook/worksheet/xlsx_columns.rb, line 10 def initialize(parent: nil) @elements = [] super end
Public Instance Methods
parse(node)
click to toggle source
Parse XlsxColumns
@param node [Nokogiri::XML::Element] node to parse @return [XlsxColumns] value of TimeNodeList
# 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