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

Overview

-

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

+ +

The CatAxisData class serializes the category axis data for a chart

@@ -153,9 +152,8 @@ The CatAxisData class serializes the category axis data for a chart -

-Create a new CatAxisData object. -

+
+

Create a new CatAxisData object.

@@ -177,9 +175,8 @@ Create a new CatAxisData object. -

-Serializes the category axis data. -

+
+

Serializes the category axis data.

@@ -205,9 +202,8 @@ Serializes the category axis data.

-

-Create a new CatAxisData object -

+ +

Create a new CatAxisData object

@@ -228,10 +224,9 @@ Create a new CatAxisData object — -

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

@@ -254,12 +249,11 @@ 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 @@ -291,9 +285,8 @@ typed list of cells.

-

-Serializes the category axis data -

+ +

Serializes the category axis data

@@ -312,9 +305,8 @@ Serializes the category axis data — -

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

+
+

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

@@ -361,23 +353,22 @@ The document builder instance this objects xml will be added to.
# 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 @@ -388,9 +379,9 @@ The document builder instance this objects xml will be added to.
-- cgit v1.2.3