From 4d16bfc43780e5d3f7368625700b583e3e98217a Mon Sep 17 00:00:00 2001
From: Randy Morgan The package automatically manages releationships.
+The package automatically manages releationships.
+ Relationships are a collection of Relations that define how package parts
-are related.
+Relationships are a collection of Relations that define how package parts
+are related.
+
Creates a new Relationships collection based on SimpleTypedList.
++Creates a new Relationships collection based on SimpleTypedList. +
Serializes the relationships document.
++Serializes the relationships document. +
Creates a new Relationships collection based on SimpleTypedList
++Creates a new Relationships collection based on SimpleTypedList +
# File 'lib/axlsx/rels/relationships.rb', line 9 -def initialize - super Relationship -end+def initialize + super Relationship +end +
Serializes the relationships document.
++Serializes the relationships document. +
# File 'lib/axlsx/rels/relationships.rb', line 15 -def to_xml() - builder = Nokogiri::XML::Builder.new(:encoding => ENCODING) do |xml| - xml.Relationships(:xmlns => Axlsx::RELS_R) { - each_with_index { |rel, index| rel.to_xml(xml, "rId#{index+1}") } - } - end - builder.to_xml -end+def to_xml() + builder = Nokogiri::XML::Builder.new(:encoding => ENCODING) do |xml| + xml.Relationships(:xmlns => Axlsx::RELS_R) { + each_with_index { |rel, index| rel.to_xml(xml, "rId#{index+1}") } + } + end + builder.to_xml +end +