Sha256: 12f7fe2b1ddb0b59b3e0fcc46d2e235083ceabc0182582ecc4d35777618b79d1
Contents?: true
Size: 586 Bytes
Versions: 11
Compression:
Stored size: 586 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
11 entries across 11 versions & 3 rubygems