Class: XlsxWriter::SheetRels
- Defined in:
- lib/xlsx_writer/xml/sheet_rels.rb
Constant Summary collapse
- AUTO =
false
Instance Attribute Summary collapse
-
#sheet ⇒ Object
readonly
Returns the value of attribute sheet.
Attributes inherited from Xml
Instance Method Summary collapse
-
#initialize(document, sheet) ⇒ SheetRels
constructor
A new instance of SheetRels.
- #relative_path ⇒ Object
Methods inherited from Xml
auto, #generate, #generated?, #path, #render, #template_path
Constructor Details
#initialize(document, sheet) ⇒ SheetRels
Returns a new instance of SheetRels.
8 9 10 11 |
# File 'lib/xlsx_writer/xml/sheet_rels.rb', line 8 def initialize(document, sheet) @sheet = sheet super document end |
Instance Attribute Details
#sheet ⇒ Object (readonly)
Returns the value of attribute sheet.
6 7 8 |
# File 'lib/xlsx_writer/xml/sheet_rels.rb', line 6 def sheet @sheet end |
Instance Method Details
#relative_path ⇒ Object
13 14 15 |
# File 'lib/xlsx_writer/xml/sheet_rels.rb', line 13 def relative_path "xl/worksheets/_rels/sheet#{sheet.ndx}.xml.rels" end |