Class: RubyXL::RootRelationships
- Inherits:
-
OOXMLRelationshipsFile
- Object
- OOXMLObject
- OOXMLTopLevelObject
- OOXMLRelationshipsFile
- RubyXL::RootRelationships
- Defined in:
- lib/rubyXL/objects/relationships.rb
Instance Attribute Summary collapse
-
#workbook ⇒ Object
Returns the value of attribute workbook.
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from OOXMLRelationshipsFile
Methods inherited from OOXMLTopLevelObject
#add_to_zip, parse_file, set_namespaces, #xlsx_path
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
#workbook ⇒ Object
Returns the value of attribute workbook.
82 83 84 |
# File 'lib/rubyXL/objects/relationships.rb', line 82 def workbook @workbook end |
Class Method Details
.xlsx_path ⇒ Object
95 96 97 |
# File 'lib/rubyXL/objects/relationships.rb', line 95 def self.xlsx_path File.join('_rels', '.rels') end |
Instance Method Details
#before_write_xml ⇒ Object
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 |