Sha256: 638fac3c9c9f0ce04c187730f5f8be0a2850dc837e7117a8b496c8f27775773f
Contents?: true
Size: 590 Bytes
Versions: 2
Compression:
Stored size: 590 Bytes
Contents
module Axlsx # The cols class manages the col object used to manage column widths. # This is where the magic happens with autowidth class Cols < SimpleTypedList def initialize(worksheet) raise ArgumentError, "you must provide a worksheet" unless worksheet.is_a?(Worksheet) super Col @worksheet = worksheet end # Serialize the Cols object # @param [String] str # @return [String] def to_xml_string(str = '') return if empty? str << '<cols>' each { |item| item.to_xml_string(str) } str << '</cols>' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
caxlsx-3.4.1 | lib/axlsx/workbook/worksheet/cols.rb |
caxlsx-3.4.0 | lib/axlsx/workbook/worksheet/cols.rb |