Class: Axlsx::Break
- Inherits:
-
Object
- Object
- Axlsx::Break
- Includes:
- Accessors, OptionsParser, SerializedAttributes
- Defined in:
- lib/axlsx/workbook/worksheet/break.rb
Overview
The Break class stores the details for row and column page breaks.
Instance Method Summary collapse
-
#initialize(options = {}) {|_self| ... } ⇒ Break
constructor
Creates a new Break object.
-
#to_xml_string(str = '') ⇒ Object
serializes the break to xml.
Methods included from SerializedAttributes
#declared_attributes, included, #serialized_attributes, #serialized_element_attributes
Methods included from OptionsParser
Constructor Details
#initialize(options = {}) {|_self| ... } ⇒ Break
Creates a new Break object
18 19 20 21 |
# File 'lib/axlsx/workbook/worksheet/break.rb', line 18 def initialize(={}) yield self if block_given? end |
Instance Method Details
#to_xml_string(str = '') ⇒ Object
serializes the break to xml
30 31 32 33 34 |
# File 'lib/axlsx/workbook/worksheet/break.rb', line 30 def to_xml_string(str='') str << '<brk ' serialized_attributes str str << '></brk>' end |