Class: RubyXL::Writer::RootRelsWriter
- Inherits:
-
GenericWriter
- Object
- GenericWriter
- RubyXL::Writer::RootRelsWriter
- Defined in:
- lib/rubyXL/writer/root_rels_writer.rb
Instance Method Summary collapse
Methods inherited from GenericWriter
#add_to_zip, #initialize, #ooxml_object, #render_xml
Constructor Details
This class inherits a constructor from RubyXL::Writer::GenericWriter
Instance Method Details
#filepath ⇒ Object
5 6 7 |
# File 'lib/rubyXL/writer/root_rels_writer.rb', line 5 def filepath File.join('_rels', '.rels') end |
#write ⇒ Object
9 10 11 12 13 |
# File 'lib/rubyXL/writer/root_rels_writer.rb', line 9 def write() contents = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/></Relationships>' contents end |