Sha256: a1f3e2e7b16c9b90bf7a61ea25236c90eb3aaba1cb3efc1c941452b7daa71cb2
Contents?: true
Size: 930 Bytes
Versions: 17
Compression:
Stored size: 930 Bytes
Contents
module Axlsx # A collection of break objects that define row breaks (page breaks) for printing and preview class RowBreaks < SimpleTypedList def initialize super Break end # Adds a row break # @param [Hash] options The options for the break to be created. # max and man values are fixed. # @see Break def add_break(options) # force feed the excel default self << Break.new(options.merge(:max => 16383, :man => true)) last end # <rowBreaks count="3" manualBreakCount="3"> # <brk id="1" max="16383" man="1"/> # <brk id="7" max="16383" man="1"/> # <brk id="13" max="16383" man="1"/> # </rowBreaks> def to_xml_string(str='') return if empty? str << ('<rowBreaks count="' << self.size.to_s << '" manualBreakCount="' << self.size.to_s << '">') each { |brk| brk.to_xml_string(str) } str << '</rowBreaks>' end end end
Version data entries
17 entries across 17 versions & 6 rubygems