From 4d16bfc43780e5d3f7368625700b583e3e98217a Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sun, 27 Nov 2011 18:11:42 +0900 Subject: adding in row_style and col_style methods to worksheet and active record 'acts_as_axlsx' to provide to_xlsx. --- doc/Axlsx/Relationships.html | 60 +++++++++++++++++++++++++------------------- 1 file changed, 34 insertions(+), 26 deletions(-) (limited to 'doc/Axlsx/Relationships.html') diff --git a/doc/Axlsx/Relationships.html b/doc/Axlsx/Relationships.html index b68eff83..50312a07 100644 --- a/doc/Axlsx/Relationships.html +++ b/doc/Axlsx/Relationships.html @@ -99,14 +99,16 @@
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. +

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

-
-

Creates a new Relationships collection based on SimpleTypedList.

+

+Creates a new Relationships collection based on SimpleTypedList. +

@@ -180,8 +183,9 @@ are related.

-
-

Serializes the relationships document.

+

+Serializes the relationships document. +

@@ -207,8 +211,9 @@ are related.

- -

Creates a new Relationships collection based on SimpleTypedList

+

+Creates a new Relationships collection based on SimpleTypedList +

@@ -229,9 +234,10 @@ are related.

# File 'lib/axlsx/rels/relationships.rb', line 9
 
-def initialize
-  super Relationship
-end
+def initialize + super Relationship +end + @@ -263,8 +269,9 @@ are related.

- -

Serializes the relationships document.

+

+Serializes the relationships document. +

@@ -303,14 +310,15 @@ are related.

# 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 + @@ -321,9 +329,9 @@ are related.

-- cgit v1.2.3