From 058faf2581970fa18c314ad07f5658adeca32c69 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sun, 27 Nov 2011 22:08:55 +0900 Subject: update to README --- doc/Axlsx/Relationships.html | 60 +++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 34 deletions(-) (limited to 'doc/Axlsx/Relationships.html') diff --git a/doc/Axlsx/Relationships.html b/doc/Axlsx/Relationships.html index 28523893..c0811bdb 100644 --- a/doc/Axlsx/Relationships.html +++ b/doc/Axlsx/Relationships.html @@ -99,16 +99,14 @@
Note: -

-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.

@@ -159,9 +157,8 @@ are related. -

-Creates a new Relationships collection based on SimpleTypedList. -

+
+

Creates a new Relationships collection based on SimpleTypedList.

@@ -183,9 +180,8 @@ Creates a new Relationships collection based on SimpleTypedList. -

-Serializes the relationships document. -

+
+

Serializes the relationships document.

@@ -211,9 +207,8 @@ Serializes the relationships document.

-

-Creates a new Relationships collection based on SimpleTypedList -

+ +

Creates a new Relationships collection based on SimpleTypedList

@@ -234,10 +229,9 @@ 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 @@ -269,9 +263,8 @@ Creates a new Relationships collection based on SimpleTypedList

-

-Serializes the relationships document. -

+ +

Serializes the relationships document.

@@ -310,15 +303,14 @@ 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 @@ -329,9 +321,9 @@ Serializes the relationships document.
-- cgit v1.2.3