Method: Axlsx::Break#initialize

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

#initialize(options = {}) {|_self| ... } ⇒ Break

Creates a new Break object

Parameters:

  • options (defaults to: {})

    A hash of attribute options for this break.

  • option (Hash)

    a customizable set of options

Options Hash (options):

  • id (Integer)

    Zero-based row or column Id of the page break. Breaks occur above the specified row and left of the specified column.

  • min (Integer)

    Zero-based index of start row or column of the break. For row breaks, specifies column index; for column breaks, specifies row index.

  • max (Integer)

    Zero-based index of end row or column of the break. For row breaks, specifies column index; for column breaks, specifies row index.

  • man (Boolean)

    Manual Break flag. 1 means the break is a manually inserted break.

Yields:

  • (_self)

Yield Parameters:

  • _self (Axlsx::Break)

    the object that the method was called on



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

def initialize(options={})
  parse_options options
  yield self if block_given?
end