Method: RubyXL::RootRelationships#before_write_xml

Defined in:
lib/rubyXL/objects/relationships.rb

#before_write_xmlObject



84
85
86
87
88
89
90
91
92
93
# File 'lib/rubyXL/objects/relationships.rb', line 84

def before_write_xml
  self.relationships = []

  relationships << document_relationship('xl/workbook.xml',   'officeDocument')
  relationships << ('docProps/thumbnail.jpeg', 'thumbnail') unless @workbook.thumbnail.empty?
  relationships << ('docProps/core.xml', 'core-properties')
  relationships << document_relationship('docProps/app.xml',  'extended-properties')

  true
end