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/CatAxisData.html | 85 +++++++++++++++++++++++++--------------------- 1 file changed, 47 insertions(+), 38 deletions(-) (limited to 'doc/Axlsx/CatAxisData.html') diff --git a/doc/Axlsx/CatAxisData.html b/doc/Axlsx/CatAxisData.html index 188310aa..12bed40c 100644 --- a/doc/Axlsx/CatAxisData.html +++ b/doc/Axlsx/CatAxisData.html @@ -96,8 +96,9 @@

Overview

- -

The CatAxisData class serializes the category axis data for a chart

+

+The CatAxisData class serializes the category axis data for a chart +

@@ -152,8 +153,9 @@ -
-

Create a new CatAxisData object.

+

+Create a new CatAxisData object. +

@@ -175,8 +177,9 @@ -
-

Serializes the category axis data.

+

+Serializes the category axis data. +

@@ -202,8 +205,9 @@

- -

Create a new CatAxisData object

+

+Create a new CatAxisData object +

@@ -224,9 +228,10 @@ — -
-

the data for this category axis. This can be a simple array or a simple -typed list of cells.

+

+the data for this category axis. This can be a simple array or a simple +typed list of cells. +

@@ -249,11 +254,12 @@ typed list of cells.

# File 'lib/axlsx/drawing/cat_axis_data.rb', line 7
 
-def initialize(data=[])
-  super Object
-  @list.concat data if data.is_a?(Array)
-  data.each { |i| @list << i } if data.is_a?(SimpleTypedList)
-end
+def initialize(data=[]) + super Object + @list.concat data if data.is_a?(Array) + data.each { |i| @list << i } if data.is_a?(SimpleTypedList) +end + @@ -285,8 +291,9 @@ typed list of cells.

- -

Serializes the category axis data

+

+Serializes the category axis data +

@@ -305,8 +312,9 @@ typed list of cells.

— -
-

The document builder instance this objects xml will be added to.

+

+The document builder instance this objects xml will be added to. +

@@ -353,22 +361,23 @@ typed list of cells.

# File 'lib/axlsx/drawing/cat_axis_data.rb', line 16
 
-def to_xml(xml)
-  xml.send('c:cat') {
-    xml.send('c:strRef') {
-      xml.send('c:f', Axlsx::cell_range(@list))
-      xml.send('c:strCache') {
-        xml.send('c:ptCount', :val=>size)
-        each_with_index do |item, index|
-          v = item.is_a?(Cell) ? item.value : item
-          xml.send('c:pt', :idx=>index) {
-            xml.send('c:v', v)
-          }                          
-        end
-      }
-    }
-  }
-end
+def to_xml(xml) + xml.send('c:cat') { + xml.send('c:strRef') { + xml.send('c:f', Axlsx::cell_range(@list)) + xml.send('c:strCache') { + xml.send('c:ptCount', :val=>size) + each_with_index do |item, index| + v = item.is_a?(Cell) ? item.value : item + xml.send('c:pt', :idx=>index) { + xml.send('c:v', v) + } + end + } + } + } +end + @@ -379,9 +388,9 @@ typed list of cells.

-- cgit v1.2.3