Class: XlsxWriter::SheetRels

Inherits:
Xml
  • Object
show all
Defined in:
lib/xlsx_writer/xml/sheet_rels.rb

Constant Summary collapse

AUTO =
false

Instance Attribute Summary collapse

Attributes inherited from Xml

#document

Instance Method Summary collapse

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

#sheetObject (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_pathObject



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