Sha256: dc692da99d3d192a308b3df0cb5ec24248d5780b1fcadbc26cf04e1152bc8ae0
Contents?: true
Size: 507 Bytes
Versions: 19
Compression:
Stored size: 507 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 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
19 entries across 19 versions & 5 rubygems