Method: Axlsx::ColBreaks#add_break

Defined in:
lib/axlsx/workbook/worksheet/col_breaks.rb

#add_break(options) ⇒ Object

A column break specific helper for adding a break. The max and man options are fixed, however any other valid option for Break will be passed to the created break object.

Parameters:

  • options (Hash)

    A list of options to pass into the Break object

See Also:



18
19
20
21
# File 'lib/axlsx/workbook/worksheet/col_breaks.rb', line 18

def add_break(options)
  @list << Break.new(options.merge(:max => 1048575, :man => true))
  last
end