Class: RubyXL::RootRelationships

Inherits:
OOXMLRelationshipsFile show all
Defined in:
lib/rubyXL/objects/relationships.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from OOXMLRelationshipsFile

#find_by_rid

Methods inherited from OOXMLTopLevelObject

#add_to_zip, #filepath, parse_file, set_namespaces

Methods included from OOXMLObjectClassMethods

#define_attribute, #define_child_node, #define_element_name, #obtain_class_variable, #parse, #set_countable

Methods included from OOXMLObjectInstanceMethods

#dup, #index_in_collection, #initialize, #write_xml

Instance Attribute Details

#workbookObject

Returns the value of attribute workbook.



78
79
80
# File 'lib/rubyXL/objects/relationships.rb', line 78

def workbook
  @workbook
end

Class Method Details

.filepathObject



90
91
92
# File 'lib/rubyXL/objects/relationships.rb', line 90

def self.filepath
  File.join('_rels', '.rels')
end

Instance Method Details

#before_write_xmlObject



80
81
82
83
84
85
86
87
88
# File 'lib/rubyXL/objects/relationships.rb', line 80

def before_write_xml
  self.relationships = []

  relationships << document_relationship('xl/workbook.xml', 'officeDocument')
  relationships << ('docProps/core.xml', 'core-properties')
  relationships << document_relationship('docProps/app.xml', 'extended-properties')

  true
end