Class: Axlsx::SheetPr
- Inherits:
-
Object
- Object
- Axlsx::SheetPr
- Includes:
- Accessors, OptionsParser, SerializedAttributes
- Defined in:
- lib/axlsx/workbook/worksheet/sheet_pr.rb
Overview
The SheetPr class manages serialization fo a worksheet's sheetPr element.
Instance Attribute Summary collapse
-
#worksheet ⇒ Worksheet
readonly
The worksheet these properties apply to!.
Instance Method Summary collapse
-
#initialize(worksheet, options = {}) ⇒ SheetPr
constructor
Creates a new SheetPr object.
-
#page_setup_pr ⇒ PageSetUpPr
The PageSetUpPr for this sheet pr object.
-
#to_xml_string(str = '') ⇒ String
Serialize the object.
Methods included from SerializedAttributes
#declared_attributes, included, #serialized_attributes, #serialized_element_attributes
Methods included from OptionsParser
Constructor Details
Instance Attribute Details
#worksheet ⇒ Worksheet (readonly)
The worksheet these properties apply to!
41 42 43 |
# File 'lib/axlsx/workbook/worksheet/sheet_pr.rb', line 41 def worksheet @worksheet end |
Instance Method Details
#page_setup_pr ⇒ PageSetUpPr
The PageSetUpPr for this sheet pr object
55 56 57 |
# File 'lib/axlsx/workbook/worksheet/sheet_pr.rb', line 55 def page_setup_pr @page_setup_pr ||= PageSetUpPr.new end |
#to_xml_string(str = '') ⇒ String
Serialize the object
46 47 48 49 50 51 |
# File 'lib/axlsx/workbook/worksheet/sheet_pr.rb', line 46 def to_xml_string(str = '') update_properties str << "<sheetPr #{serialized_attributes}>" page_setup_pr.to_xml_string(str) str << "</sheetPr>" end |