-we should do what ruport did and use only, exclude and methods hashes
+adds in the instance and singleton methods
@@ -148,13 +160,13 @@ we should do what ruport did and use only, exclude and methods hashes
-14
-15
16
-17
+17
+18
+19
- # File 'lib/axlsx/ar.rb', line 14
+ # File 'lib/axlsx/ar.rb', line 16
def acts_as_axlsx(options={})
include Axlsx::Ar::InstanceMethods
@@ -171,7 +183,7 @@ we should do what ruport did and use only, exclude and methods hashes
diff --git a/doc/Axlsx/Ar/InstanceMethods.html b/doc/Axlsx/Ar/InstanceMethods.html
index e1253017..ccff0449 100644
--- a/doc/Axlsx/Ar/InstanceMethods.html
+++ b/doc/Axlsx/Ar/InstanceMethods.html
@@ -77,8 +77,21 @@
+Overview
+
+
+Empty module - I really like ruports way of allowing :include, :only,
+:exclude and am looking to add something like that in later
+
+
+
+
+
+
+
+
@@ -87,7 +100,7 @@
diff --git a/doc/Axlsx/Ar/SingletonMethods.html b/doc/Axlsx/Ar/SingletonMethods.html
index 19fe1358..f1081b17 100644
--- a/doc/Axlsx/Ar/SingletonMethods.html
+++ b/doc/Axlsx/Ar/SingletonMethods.html
@@ -77,8 +77,20 @@
+Overview
+
+
+Singleton methods for the mixin
+
+
+
+
+
+
+
+
@@ -106,7 +118,10 @@
-
+
+Maps the AR class to an Axlsx package options are passed into AR find.
+
+
@@ -127,21 +142,102 @@
-
+
+
+
+Maps the AR class to an Axlsx package options are passed into AR find
+
+
+
+
+
+
-22
-23
-24
-25
-26
-27
-28
-29
-30
31
32
33
@@ -153,10 +249,19 @@
39
40
41
-42
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
|
- # File 'lib/axlsx/ar.rb', line 22
+ # File 'lib/axlsx/ar.rb', line 31
def to_xlsx(number = :all, options = {})
row_style = options.delete(:style)
@@ -190,7 +295,7 @@
diff --git a/doc/Axlsx/Axis.html b/doc/Axlsx/Axis.html
index afe6295c..5588a0b4 100644
--- a/doc/Axlsx/Axis.html
+++ b/doc/Axlsx/Axis.html
@@ -1066,7 +1066,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/Bar3DChart.html b/doc/Axlsx/Bar3DChart.html
index 00f05ccb..da81e4d9 100644
--- a/doc/Axlsx/Bar3DChart.html
+++ b/doc/Axlsx/Bar3DChart.html
@@ -1173,7 +1173,7 @@ Serializes the bar chart
diff --git a/doc/Axlsx/BarSeries.html b/doc/Axlsx/BarSeries.html
index aa071eea..ac711ddc 100644
--- a/doc/Axlsx/BarSeries.html
+++ b/doc/Axlsx/BarSeries.html
@@ -702,7 +702,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/Border.html b/doc/Axlsx/Border.html
index 2e4de314..b1becd25 100644
--- a/doc/Axlsx/Border.html
+++ b/doc/Axlsx/Border.html
@@ -770,7 +770,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/BorderPr.html b/doc/Axlsx/BorderPr.html
index dea2809d..5e549bf0 100644
--- a/doc/Axlsx/BorderPr.html
+++ b/doc/Axlsx/BorderPr.html
@@ -700,7 +700,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/CatAxis.html b/doc/Axlsx/CatAxis.html
index 2e6da39d..2795d665 100644
--- a/doc/Axlsx/CatAxis.html
+++ b/doc/Axlsx/CatAxis.html
@@ -760,7 +760,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/CatAxisData.html b/doc/Axlsx/CatAxisData.html
index ec16a685..92239b29 100644
--- a/doc/Axlsx/CatAxisData.html
+++ b/doc/Axlsx/CatAxisData.html
@@ -388,7 +388,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/Cell.html b/doc/Axlsx/Cell.html
index ede1f07d..3df34d79 100644
--- a/doc/Axlsx/Cell.html
+++ b/doc/Axlsx/Cell.html
@@ -1622,7 +1622,7 @@ xml text for the cell
diff --git a/doc/Axlsx/CellAlignment.html b/doc/Axlsx/CellAlignment.html
index dde76f01..8d87931f 100644
--- a/doc/Axlsx/CellAlignment.html
+++ b/doc/Axlsx/CellAlignment.html
@@ -1238,7 +1238,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/CellProtection.html b/doc/Axlsx/CellProtection.html
index 578ca844..2270800b 100644
--- a/doc/Axlsx/CellProtection.html
+++ b/doc/Axlsx/CellProtection.html
@@ -556,7 +556,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/CellStyle.html b/doc/Axlsx/CellStyle.html
index e30b4a7e..3574cb20 100644
--- a/doc/Axlsx/CellStyle.html
+++ b/doc/Axlsx/CellStyle.html
@@ -940,7 +940,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/Chart.html b/doc/Axlsx/Chart.html
index 7a9b16d3..77cc801b 100644
--- a/doc/Axlsx/Chart.html
+++ b/doc/Axlsx/Chart.html
@@ -1675,7 +1675,7 @@ Chart Serialization serializes the chart
diff --git a/doc/Axlsx/Color.html b/doc/Axlsx/Color.html
index b37d18ba..cabe0d1d 100644
--- a/doc/Axlsx/Color.html
+++ b/doc/Axlsx/Color.html
@@ -656,7 +656,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/ContentType.html b/doc/Axlsx/ContentType.html
index b5631e7b..70bd847c 100644
--- a/doc/Axlsx/ContentType.html
+++ b/doc/Axlsx/ContentType.html
@@ -326,7 +326,7 @@ The document as a string.
diff --git a/doc/Axlsx/Core.html b/doc/Axlsx/Core.html
index ac608d16..37251c2a 100644
--- a/doc/Axlsx/Core.html
+++ b/doc/Axlsx/Core.html
@@ -456,7 +456,7 @@ time when this method is called.
diff --git a/doc/Axlsx/DataTypeValidator.html b/doc/Axlsx/DataTypeValidator.html
index a9b24ff1..ee08feeb 100644
--- a/doc/Axlsx/DataTypeValidator.html
+++ b/doc/Axlsx/DataTypeValidator.html
@@ -315,7 +315,7 @@ types or the block passed returns false
diff --git a/doc/Axlsx/Default.html b/doc/Axlsx/Default.html
index f9c1a94d..7f380873 100644
--- a/doc/Axlsx/Default.html
+++ b/doc/Axlsx/Default.html
@@ -556,7 +556,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/Drawing.html b/doc/Axlsx/Drawing.html
index 72ee7ea6..d0ed25f3 100644
--- a/doc/Axlsx/Drawing.html
+++ b/doc/Axlsx/Drawing.html
@@ -1255,7 +1255,7 @@ Serializes the drawing
diff --git a/doc/Axlsx/Fill.html b/doc/Axlsx/Fill.html
index 4a2cf21e..3171e6b2 100644
--- a/doc/Axlsx/Fill.html
+++ b/doc/Axlsx/Fill.html
@@ -451,7 +451,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/Font.html b/doc/Axlsx/Font.html
index 35ffa4ec..80ee6bd2 100644
--- a/doc/Axlsx/Font.html
+++ b/doc/Axlsx/Font.html
@@ -1545,7 +1545,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/GradientFill.html b/doc/Axlsx/GradientFill.html
index 9315c460..019d2fe8 100644
--- a/doc/Axlsx/GradientFill.html
+++ b/doc/Axlsx/GradientFill.html
@@ -1017,7 +1017,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/GradientStop.html b/doc/Axlsx/GradientStop.html
index 6d7afa37..6d4546d7 100644
--- a/doc/Axlsx/GradientStop.html
+++ b/doc/Axlsx/GradientStop.html
@@ -517,7 +517,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/GraphicFrame.html b/doc/Axlsx/GraphicFrame.html
index 3c191594..0ca334a2 100644
--- a/doc/Axlsx/GraphicFrame.html
+++ b/doc/Axlsx/GraphicFrame.html
@@ -633,7 +633,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/Line3DChart.html b/doc/Axlsx/Line3DChart.html
index 9fa25d73..42667ca9 100644
--- a/doc/Axlsx/Line3DChart.html
+++ b/doc/Axlsx/Line3DChart.html
@@ -995,7 +995,7 @@ Serializes the bar chart
diff --git a/doc/Axlsx/LineSeries.html b/doc/Axlsx/LineSeries.html
index c38ac861..dbc5fa45 100644
--- a/doc/Axlsx/LineSeries.html
+++ b/doc/Axlsx/LineSeries.html
@@ -596,7 +596,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/Marker.html b/doc/Axlsx/Marker.html
index 51bc972f..81613635 100644
--- a/doc/Axlsx/Marker.html
+++ b/doc/Axlsx/Marker.html
@@ -848,7 +848,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/NumFmt.html b/doc/Axlsx/NumFmt.html
index a087eb2f..8dd0ac81 100644
--- a/doc/Axlsx/NumFmt.html
+++ b/doc/Axlsx/NumFmt.html
@@ -553,7 +553,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/OneCellAnchor.html b/doc/Axlsx/OneCellAnchor.html
index 7a77d0c3..f75e35e3 100644
--- a/doc/Axlsx/OneCellAnchor.html
+++ b/doc/Axlsx/OneCellAnchor.html
@@ -973,7 +973,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/Override.html b/doc/Axlsx/Override.html
index 4fdb36bf..1a0de048 100644
--- a/doc/Axlsx/Override.html
+++ b/doc/Axlsx/Override.html
@@ -543,7 +543,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/Package.html b/doc/Axlsx/Package.html
index c3b046a6..e1afdd68 100644
--- a/doc/Axlsx/Package.html
+++ b/doc/Axlsx/Package.html
@@ -902,7 +902,7 @@ ArgumentError if workbook parameter is not a Workbook instance.
diff --git a/doc/Axlsx/PatternFill.html b/doc/Axlsx/PatternFill.html
index 1315ba7a..5e7f0e06 100644
--- a/doc/Axlsx/PatternFill.html
+++ b/doc/Axlsx/PatternFill.html
@@ -672,7 +672,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/Pic.html b/doc/Axlsx/Pic.html
index 4b5d6971..e131236c 100644
--- a/doc/Axlsx/Pic.html
+++ b/doc/Axlsx/Pic.html
@@ -1619,7 +1619,7 @@ providing access to the anchor’s width attribute
diff --git a/doc/Axlsx/Pie3DChart.html b/doc/Axlsx/Pie3DChart.html
index a05e7c77..8703fd0b 100644
--- a/doc/Axlsx/Pie3DChart.html
+++ b/doc/Axlsx/Pie3DChart.html
@@ -480,7 +480,7 @@ Serializes the pie chart
diff --git a/doc/Axlsx/PieSeries.html b/doc/Axlsx/PieSeries.html
index b3101562..59d0146c 100644
--- a/doc/Axlsx/PieSeries.html
+++ b/doc/Axlsx/PieSeries.html
@@ -701,7 +701,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/RegexValidator.html b/doc/Axlsx/RegexValidator.html
index 7cab4fdb..f1571271 100644
--- a/doc/Axlsx/RegexValidator.html
+++ b/doc/Axlsx/RegexValidator.html
@@ -259,7 +259,7 @@ The value to validate.
diff --git a/doc/Axlsx/Relationship.html b/doc/Axlsx/Relationship.html
index 12dbfeec..6d0f4060 100644
--- a/doc/Axlsx/Relationship.html
+++ b/doc/Axlsx/Relationship.html
@@ -545,7 +545,7 @@ the reference id of the object.
diff --git a/doc/Axlsx/Relationships.html b/doc/Axlsx/Relationships.html
index baeb3709..28523893 100644
--- a/doc/Axlsx/Relationships.html
+++ b/doc/Axlsx/Relationships.html
@@ -329,7 +329,7 @@ Serializes the relationships document.
diff --git a/doc/Axlsx/RestrictionValidator.html b/doc/Axlsx/RestrictionValidator.html
index 9ddb1e89..14a579a1 100644
--- a/doc/Axlsx/RestrictionValidator.html
+++ b/doc/Axlsx/RestrictionValidator.html
@@ -291,7 +291,7 @@ Raised if the value provided is not in the list of choices.
diff --git a/doc/Axlsx/Row.html b/doc/Axlsx/Row.html
index 24933dab..e8623faa 100644
--- a/doc/Axlsx/Row.html
+++ b/doc/Axlsx/Row.html
@@ -294,7 +294,7 @@ sets the style for every cell in this row.
- - (Object) to_ary
+ - (Array) to_ary
@@ -307,7 +307,11 @@ sets the style for every cell in this row.
-
+
+returns the cells in this row as an array This lets us transpose the rows
+into columns.
+
+
@@ -771,22 +775,48 @@ sets the style for every cell in this row
- - (Object) to_ary
+ - (Array) to_ary
-
+
+
+
+returns the cells in this row as an array This lets us transpose the rows
+into columns
+
+
+
+
+
+
-65
-66
-67
+68
+69
+70
|
- # File 'lib/axlsx/workbook/worksheet/row.rb', line 65
+ # File 'lib/axlsx/workbook/worksheet/row.rb', line 68
def to_ary
@cells.to_ary
@@ -877,7 +907,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/Scaling.html b/doc/Axlsx/Scaling.html
index f6d2a33b..e4b9881e 100644
--- a/doc/Axlsx/Scaling.html
+++ b/doc/Axlsx/Scaling.html
@@ -733,7 +733,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/SerAxis.html b/doc/Axlsx/SerAxis.html
index 59445925..6d122772 100644
--- a/doc/Axlsx/SerAxis.html
+++ b/doc/Axlsx/SerAxis.html
@@ -632,7 +632,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/Series.html b/doc/Axlsx/Series.html
index 925b2c4c..6142ec01 100644
--- a/doc/Axlsx/Series.html
+++ b/doc/Axlsx/Series.html
@@ -804,7 +804,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/SeriesTitle.html b/doc/Axlsx/SeriesTitle.html
index 0c21a9d8..43e526d1 100644
--- a/doc/Axlsx/SeriesTitle.html
+++ b/doc/Axlsx/SeriesTitle.html
@@ -281,7 +281,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/Styles.html b/doc/Axlsx/Styles.html
index 425c8461..1ce1ddc5 100644
--- a/doc/Axlsx/Styles.html
+++ b/doc/Axlsx/Styles.html
@@ -1745,7 +1745,7 @@ Serializes the styles document
diff --git a/doc/Axlsx/TableStyle.html b/doc/Axlsx/TableStyle.html
index f77ec619..ad318d8a 100644
--- a/doc/Axlsx/TableStyle.html
+++ b/doc/Axlsx/TableStyle.html
@@ -696,7 +696,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/TableStyleElement.html b/doc/Axlsx/TableStyleElement.html
index 2fe39a4a..7a8b5912 100644
--- a/doc/Axlsx/TableStyleElement.html
+++ b/doc/Axlsx/TableStyleElement.html
@@ -668,7 +668,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/TableStyles.html b/doc/Axlsx/TableStyles.html
index 9971e09e..dbbe360b 100644
--- a/doc/Axlsx/TableStyles.html
+++ b/doc/Axlsx/TableStyles.html
@@ -585,7 +585,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/Title.html b/doc/Axlsx/Title.html
index 6f3e21f8..acc832e6 100644
--- a/doc/Axlsx/Title.html
+++ b/doc/Axlsx/Title.html
@@ -534,7 +534,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/TwoCellAnchor.html b/doc/Axlsx/TwoCellAnchor.html
index 32a5b362..731764f1 100644
--- a/doc/Axlsx/TwoCellAnchor.html
+++ b/doc/Axlsx/TwoCellAnchor.html
@@ -964,7 +964,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/ValAxis.html b/doc/Axlsx/ValAxis.html
index 3bf1fead..66d9e01b 100644
--- a/doc/Axlsx/ValAxis.html
+++ b/doc/Axlsx/ValAxis.html
@@ -529,7 +529,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/ValAxisData.html b/doc/Axlsx/ValAxisData.html
index 89dbb467..96fbca5c 100644
--- a/doc/Axlsx/ValAxisData.html
+++ b/doc/Axlsx/ValAxisData.html
@@ -312,7 +312,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/View3D.html b/doc/Axlsx/View3D.html
index b96b8c96..3eecea4e 100644
--- a/doc/Axlsx/View3D.html
+++ b/doc/Axlsx/View3D.html
@@ -964,7 +964,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/Workbook.html b/doc/Axlsx/Workbook.html
index db00aa41..764ec304 100644
--- a/doc/Axlsx/Workbook.html
+++ b/doc/Axlsx/Workbook.html
@@ -1500,7 +1500,7 @@ Serializes the workbook document
diff --git a/doc/Axlsx/Worksheet.html b/doc/Axlsx/Worksheet.html
index 0630d08b..eb6045a5 100644
--- a/doc/Axlsx/Worksheet.html
+++ b/doc/Axlsx/Worksheet.html
@@ -2444,7 +2444,7 @@ of Cell objects
diff --git a/doc/Axlsx/Xf.html b/doc/Axlsx/Xf.html
index 67653bae..b7da1702 100644
--- a/doc/Axlsx/Xf.html
+++ b/doc/Axlsx/Xf.html
@@ -1771,7 +1771,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/_index.html b/doc/_index.html
index 6f502a49..acc55086 100644
--- a/doc/_index.html
+++ b/doc/_index.html
@@ -662,7 +662,7 @@
diff --git a/doc/file.LICENSE.html b/doc/file.LICENSE.html
index f69bbd7f..de6d8629 100644
--- a/doc/file.LICENSE.html
+++ b/doc/file.LICENSE.html
@@ -82,7 +82,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/doc/file.README.html b/doc/file.README.html
index 518f0de0..806bbc90 100644
--- a/doc/file.README.html
+++ b/doc/file.README.html
@@ -346,7 +346,7 @@ licensed under the MIT license. Please see the
diff --git a/doc/index.html b/doc/index.html
index 518f0de0..806bbc90 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -346,7 +346,7 @@ licensed under the MIT license. Please see the
diff --git a/doc/method_list.html b/doc/method_list.html
index 079563f3..e14c2373 100644
--- a/doc/method_list.html
+++ b/doc/method_list.html
@@ -81,17 +81,17 @@
- #ContentType
+ #ContentType
- Axlsx::Default
+ Axlsx::Override
- #ContentType
+ #ContentType
- Axlsx::Override
+ Axlsx::Default
@@ -369,17 +369,17 @@
- #anchor
+ #anchor
- Axlsx::GraphicFrame
+ Axlsx::Pic
- #anchor
+ #anchor
- Axlsx::Pic
+ Axlsx::GraphicFrame
@@ -649,17 +649,17 @@
- #charts
+ #charts
- Axlsx::Workbook
+ Axlsx::Drawing
- #charts
+ #charts
- Axlsx::Drawing
+ Axlsx::Workbook
@@ -697,17 +697,17 @@
- #color
+ #color
- Axlsx::GradientStop
+ Axlsx::BorderPr
- #color
+ #color
- Axlsx::BorderPr
+ Axlsx::GradientStop
@@ -785,9 +785,9 @@
- #data
+ #data
- Axlsx::LineSeries
+ Axlsx::PieSeries
@@ -801,9 +801,9 @@
- #data
+ #data
- Axlsx::PieSeries
+ Axlsx::LineSeries
@@ -825,7 +825,7 @@
- #date1904=
+ date1904=
Axlsx::Workbook
@@ -833,7 +833,7 @@
- date1904=
+ #date1904=
Axlsx::Workbook
@@ -905,17 +905,17 @@
- #drawing
+ #drawing
- Axlsx::TwoCellAnchor
+ Axlsx::OneCellAnchor
- #drawing
+ #drawing
- Axlsx::OneCellAnchor
+ Axlsx::TwoCellAnchor
@@ -1081,17 +1081,17 @@
- #gapDepth
+ #gapDepth
- Axlsx::Line3DChart
+ Axlsx::Bar3DChart
- #gapDepth
+ #gapDepth
- Axlsx::Bar3DChart
+ Axlsx::Line3DChart
@@ -1113,17 +1113,17 @@
- #grouping
+ #grouping
- Axlsx::Line3DChart
+ Axlsx::Bar3DChart
- #grouping
+ #grouping
- Axlsx::Bar3DChart
+ Axlsx::Line3DChart
@@ -1161,17 +1161,17 @@
- #hidden
+ #hidden
- Axlsx::CellProtection
+ Axlsx::CellStyle
- #hidden
+ #hidden
- Axlsx::CellStyle
+ Axlsx::CellProtection
@@ -1209,89 +1209,89 @@
- #images
+ #images
- Axlsx::Workbook
+ Axlsx::Drawing
- #images
+ #images
- Axlsx::Drawing
+ Axlsx::Workbook
- #indent
+ included
- Axlsx::CellAlignment
+ Axlsx::Ar
- #index
+ #indent
- Axlsx::Series
+ Axlsx::CellAlignment
- #index
+ #index
- Axlsx::Cell
+ Axlsx::Drawing
- #index
+ #index
- Axlsx::OneCellAnchor
+ Axlsx::Cell
- #index
+ #index
- Axlsx::TwoCellAnchor
+ Axlsx::Chart
- #index
+ #index
- Axlsx::Drawing
+ Axlsx::TwoCellAnchor
- #index
+ #index
- Axlsx::Pic
+ Axlsx::Series
- #index
+ #index
- Axlsx::Chart
+ Axlsx::Row
- #index
+ #index
- Axlsx::Row
+ Axlsx::OneCellAnchor
@@ -1305,25 +1305,25 @@
- #initalize
+ #index
- Axlsx::App
+ Axlsx::Pic
- #initialize
+ #initalize
- Axlsx::PatternFill
+ Axlsx::App
- #initialize
+ #initialize
- Axlsx::CatAxisData
+ Axlsx::GraphicFrame
@@ -1337,33 +1337,33 @@
- #initialize
+ #initialize
- Axlsx::Pic
+ Axlsx::Pie3DChart
- #initialize
+ #initialize
- Axlsx::Row
+ Axlsx::CatAxis
- #initialize
+ #initialize
- Axlsx::Xf
+ Axlsx::Core
- #initialize
+ #initialize
- Axlsx::ContentType
+ Axlsx::TableStyleElement
@@ -1377,49 +1377,49 @@
- #initialize
+ #initialize
- Axlsx::Border
+ Axlsx::ContentType
- #initialize
+ #initialize
- Axlsx::Relationship
+ Axlsx::Xf
- #initialize
+ #initialize
- Axlsx::Series
+ Axlsx::Axis
- #initialize
+ #initialize
- Axlsx::Package
+ Axlsx::Chart
- #initialize
+ #initialize
- Axlsx::Drawing
+ Axlsx::TableStyles
- #initialize
+ #initialize
- Axlsx::Relationships
+ Axlsx::Row
@@ -1433,9 +1433,9 @@
- #initialize
+ #initialize
- Axlsx::Override
+ Axlsx::Border
@@ -1449,105 +1449,105 @@
- #initialize
+ #initialize
- Axlsx::Chart
+ Axlsx::CellStyle
- #initialize
+ #initialize
- Axlsx::CellStyle
+ Axlsx::PieSeries
- #initialize
+ #initialize
- Axlsx::Pie3DChart
+ Axlsx::Relationship
- #initialize
+ #initialize
- Axlsx::Title
+ Axlsx::Bar3DChart
- #initialize
+ #initialize
- Axlsx::Workbook
+ Axlsx::Pic
- #initialize
+ #initialize
- Axlsx::TwoCellAnchor
+ Axlsx::Title
- #initialize
+ #initialize
- Axlsx::BarSeries
+ Axlsx::Cell
- #initialize
+ #initialize
- Axlsx::TableStyleElement
+ Axlsx::Drawing
- #initialize
+ #initialize
- Axlsx::Marker
+ Axlsx::Font
- #initialize
+ #initialize
- Axlsx::Fill
+ Axlsx::Package
- #initialize
+ #initialize
- Axlsx::NumFmt
+ Axlsx::BorderPr
- #initialize
+ #initialize
- Axlsx::BorderPr
+ Axlsx::Marker
- #initialize
+ #initialize
- Axlsx::Axis
+ Axlsx::Fill
@@ -1561,41 +1561,41 @@
- #initialize
+ #initialize
- Axlsx::ValAxis
+ Axlsx::Styles
- #initialize
+ #initialize
- Axlsx::Styles
+ Axlsx::Series
- #initialize
+ #initialize
- Axlsx::TableStyles
+ Axlsx::Line3DChart
- #initialize
+ #initialize
- Axlsx::Line3DChart
+ Axlsx::Scaling
- #initialize
+ #initialize
- Axlsx::Scaling
+ Axlsx::CellAlignment
@@ -1609,110 +1609,118 @@
- #initialize
+ #initialize
- Axlsx::CatAxis
+ Axlsx::OneCellAnchor
- #initialize
+ #initialize
- Axlsx::OneCellAnchor
+ Axlsx::BarSeries
- #initialize
+ #initialize
- Axlsx::Font
+ Axlsx::Workbook
- #initialize
+ #initialize
- Axlsx::Bar3DChart
+ Axlsx::TwoCellAnchor
- #initialize
+ #initialize
- Axlsx::GraphicFrame
+ Axlsx::GradientStop
- #initialize
+ #initialize
- Axlsx::GradientStop
+ Axlsx::LineSeries
- #initialize
+ #initialize
- Axlsx::CellAlignment
+ Axlsx::NumFmt
- #initialize
+ #initialize
- Axlsx::LineSeries
+ Axlsx::PatternFill
- #initialize
+ #initialize
- Axlsx::Core
+ Axlsx::Worksheet
- #initialize
+ #initialize
- Axlsx::View3D
+ Axlsx::Relationships
- #initialize
+ #initialize
- Axlsx::Worksheet
+ Axlsx::ValAxis
- #initialize
+ #initialize
- Axlsx::PieSeries
+ Axlsx::Override
- #initialize
+ #initialize
- Axlsx::Cell
+ Axlsx::View3D
+ #initialize
+
+ Axlsx::CatAxisData
+
+
+
+
+
#justifyLastLine
Axlsx::CellAlignment
@@ -1720,6 +1728,14 @@
+
+ #labels
+
+ Axlsx::BarSeries
+
+
+
+
#labels
@@ -1737,15 +1753,15 @@
- #labels
+ #lblAlgn
- Axlsx::BarSeries
+ Axlsx::CatAxis
- #lblAlgn
+ #lblOffset
Axlsx::CatAxis
@@ -1753,31 +1769,31 @@
- #lblOffset
+ #left
- Axlsx::CatAxis
+ Axlsx::GradientFill
- #left
+ #locked
- Axlsx::GradientFill
+ Axlsx::CellProtection
- #locked
+ #logBase
- Axlsx::CellProtection
+ Axlsx::Scaling
- #logBase
+ #max
Axlsx::Scaling
@@ -1785,7 +1801,7 @@
- #max
+ #min
Axlsx::Scaling
@@ -1793,25 +1809,25 @@
- #min
+ #name
- Axlsx::Scaling
+ Axlsx::TableStyle
- #name
+ #name
- Axlsx::CellStyle
+ Axlsx::Pic
- #name
+ #name
- Axlsx::Pic
+ Axlsx::Font
@@ -1833,41 +1849,41 @@
- #name
+ #name
- Axlsx::Font
+ Axlsx::CellStyle
- #name
+ #numFmtId
- Axlsx::TableStyle
+ Axlsx::NumFmt
- #numFmtId
+ #numFmtId
- Axlsx::NumFmt
+ Axlsx::Xf
- #numFmtId
+ #numFmts
- Axlsx::Xf
+ Axlsx::Styles
- #numFmts
+ #object
- Axlsx::Styles
+ Axlsx::TwoCellAnchor
@@ -1881,15 +1897,15 @@
- #object
+ #order
- Axlsx::TwoCellAnchor
+ Axlsx::Series
- #order
+ #order=
Axlsx::Series
@@ -1897,17 +1913,17 @@
- #order=
+ #orientation
- Axlsx::Series
+ Axlsx::Scaling
- #orientation
+ #outline
- Axlsx::Scaling
+ Axlsx::Border
@@ -1921,14 +1937,6 @@
- #outline
-
- Axlsx::Border
-
-
-
-
-
#patternType
Axlsx::PatternFill
@@ -1936,7 +1944,7 @@
-
+
#perspective
Axlsx::View3D
@@ -1944,7 +1952,7 @@
-
+
#pivot
Axlsx::TableStyle
@@ -1952,7 +1960,7 @@
-
+
#pivotButton
Axlsx::Xf
@@ -1960,15 +1968,15 @@
-
- #pn
+
+ #pn
- Axlsx::Chart
+ Axlsx::Drawing
-
+
#pn
Axlsx::Pic
@@ -1976,23 +1984,23 @@
-
- #pn
+
+ #pn
- Axlsx::Worksheet
+ Axlsx::Chart
-
- #pn
+
+ #pn
- Axlsx::Drawing
+ Axlsx::Worksheet
-
+
#position
Axlsx::GradientStop
@@ -2000,7 +2008,7 @@
-
+
#protection
Axlsx::Xf
@@ -2008,7 +2016,7 @@
-
+
#prs
Axlsx::Border
@@ -2016,7 +2024,7 @@
-
+
#quotePrefix
Axlsx::Xf
@@ -2024,7 +2032,7 @@
-
+
#r
Axlsx::Cell
@@ -2032,7 +2040,7 @@
-
+
#rAngAx
Axlsx::View3D
@@ -2040,7 +2048,7 @@
-
+
#rId
Axlsx::Worksheet
@@ -2048,14 +2056,6 @@
-
- #rId
-
- Axlsx::Drawing
-
-
-
-
#rId
@@ -2065,25 +2065,25 @@
- #r_abs
+ #rId
- Axlsx::Cell
+ Axlsx::Drawing
- #readingOrder
+ #r_abs
- Axlsx::CellAlignment
+ Axlsx::Cell
- #relationships
+ #readingOrder
- Axlsx::Drawing
+ Axlsx::CellAlignment
@@ -2105,6 +2105,14 @@
+ #relationships
+
+ Axlsx::Drawing
+
+
+
+
+
#relativeIndent
Axlsx::CellAlignment
@@ -2112,7 +2120,7 @@
-
+
#rels_pn
Axlsx::Worksheet
@@ -2120,7 +2128,7 @@
-
+
#rels_pn
Axlsx::Drawing
@@ -2128,7 +2136,7 @@
-
+
#rgb
Axlsx::Color
@@ -2136,7 +2144,7 @@
-
+
#right
Axlsx::GradientFill
@@ -2144,7 +2152,7 @@
-
+
#rotX
Axlsx::View3D
@@ -2152,7 +2160,7 @@
-
+
#rotY
Axlsx::View3D
@@ -2160,7 +2168,7 @@
-
+
#row
Axlsx::Cell
@@ -2168,7 +2176,7 @@
-
+
#row
Axlsx::Marker
@@ -2176,7 +2184,7 @@
-
+
#rowOff
Axlsx::Marker
@@ -2184,7 +2192,7 @@
-
+
#row_style
Axlsx::Worksheet
@@ -2192,7 +2200,7 @@
-
+
#rows
Axlsx::Worksheet
@@ -2200,7 +2208,7 @@
-
+
#ruport_table
Axlsx::Package
@@ -2208,7 +2216,7 @@
-
+
#scaling
Axlsx::Axis
@@ -2216,7 +2224,7 @@
-
+
#serAxis
Axlsx::Line3DChart
@@ -2224,7 +2232,7 @@
-
+
#serialize
Axlsx::Package
@@ -2232,7 +2240,7 @@
-
+
#series
Axlsx::Chart
@@ -2240,7 +2248,7 @@
-
+
#series_type
Axlsx::Chart
@@ -2248,7 +2256,7 @@
-
+
#shadow
Axlsx::Font
@@ -2256,7 +2264,7 @@
-
+
#shape
Axlsx::Bar3DChart
@@ -2264,7 +2272,7 @@
-
+
#shape
Axlsx::BarSeries
@@ -2272,7 +2280,7 @@
-
+
#show_legend
Axlsx::Chart
@@ -2280,7 +2288,7 @@
-
+
#shrinkToFit
Axlsx::CellAlignment
@@ -2288,7 +2296,7 @@
-
+
#size
Axlsx::TableStyleElement
@@ -2296,7 +2304,7 @@
-
+
#start_at
Axlsx::Chart
@@ -2304,7 +2312,7 @@
-
+
#start_at
Axlsx::Pic
@@ -2312,7 +2320,7 @@
-
+
#stop
Axlsx::GradientFill
@@ -2320,7 +2328,7 @@
-
+
#strike
Axlsx::Font
@@ -2328,23 +2336,23 @@
-
- #style
+
+ #style
- Axlsx::BorderPr
+ Axlsx::Chart
-
- #style
+
+ #style
- Axlsx::Chart
+ Axlsx::BorderPr
-
+
#style
Axlsx::Cell
@@ -2352,7 +2360,7 @@
-
+
#style=
Axlsx::Row
@@ -2360,7 +2368,7 @@
-
+
#styles
Axlsx::Workbook
@@ -2368,7 +2376,7 @@
-
+
#sz
Axlsx::Font
@@ -2376,7 +2384,7 @@
-
+
#table
Axlsx::TableStyle
@@ -2384,7 +2392,7 @@
-
+
#tableStyles
Axlsx::Styles
@@ -2392,7 +2400,7 @@
-
+
#text
Axlsx::Title
@@ -2400,7 +2408,7 @@
-
+
#textRotation
Axlsx::CellAlignment
@@ -2408,7 +2416,7 @@
-
+
#tickLblPos
Axlsx::Axis
@@ -2416,7 +2424,7 @@
-
+
#tickLblSkip
Axlsx::SerAxis
@@ -2424,7 +2432,7 @@
-
+
#tickMarkSkip
Axlsx::SerAxis
@@ -2432,7 +2440,7 @@
-
+
#tint
Axlsx::Color
@@ -2440,7 +2448,7 @@
-
+
#title
Axlsx::Chart
@@ -2448,7 +2456,7 @@
-
+
#title
Axlsx::Series
@@ -2456,7 +2464,7 @@
-
+
#to
Axlsx::Chart
@@ -2464,7 +2472,7 @@
-
+
#to
Axlsx::TwoCellAnchor
@@ -2472,7 +2480,7 @@
-
+
#to_ary
Axlsx::Row
@@ -2480,7 +2488,7 @@
-
+
#to_xlsx
Axlsx::Ar::SingletonMethods
@@ -2488,194 +2496,186 @@
-
- #to_xml
-
- Axlsx::TableStyle
-
-
-
-
- #to_xml
+ #to_xml
- Axlsx::CatAxis
+ Axlsx::SerAxis
- #to_xml
+ #to_xml
- Axlsx::LineSeries
+ Axlsx::NumFmt
- #to_xml
+ #to_xml
- Axlsx::Title
+ Axlsx::LineSeries
- #to_xml
+ #to_xml
- Axlsx::Bar3DChart
+ Axlsx::GradientFill
- #to_xml
+ #to_xml
- Axlsx::ValAxisData
+ Axlsx::PieSeries
- #to_xml
+ #to_xml
- Axlsx::Marker
+ Axlsx::GradientStop
- #to_xml
+ #to_xml
- Axlsx::TwoCellAnchor
+ Axlsx::Styles
- #to_xml
+ #to_xml
- Axlsx::Override
+ Axlsx::TwoCellAnchor
- #to_xml
+ #to_xml
- Axlsx::CatAxisData
+ Axlsx::Override
- #to_xml
+ #to_xml
- Axlsx::Relationship
+ Axlsx::TableStyles
- #to_xml
+ #to_xml
- Axlsx::View3D
+ Axlsx::Axis
- #to_xml
+ #to_xml
- Axlsx::Worksheet
+ Axlsx::Pic
- #to_xml
+ #to_xml
- Axlsx::Xf
+ Axlsx::CellAlignment
- #to_xml
+ #to_xml
- Axlsx::Line3DChart
+ Axlsx::View3D
- #to_xml
+ #to_xml
- Axlsx::ContentType
+ Axlsx::TableStyle
- #to_xml
+ #to_xml
- Axlsx::NumFmt
+ Axlsx::BarSeries
- #to_xml
+ #to_xml
- Axlsx::Series
+ Axlsx::Chart
- #to_xml
+ #to_xml
- Axlsx::Scaling
+ Axlsx::Series
- #to_xml
+ #to_xml
- Axlsx::Color
+ Axlsx::PatternFill
- #to_xml
+ #to_xml
- Axlsx::OneCellAnchor
+ Axlsx::BorderPr
- #to_xml
+ #to_xml
- Axlsx::SerAxis
+ Axlsx::OneCellAnchor
- #to_xml
+ #to_xml
- Axlsx::Workbook
+ Axlsx::Bar3DChart
- #to_xml
+ #to_xml
- Axlsx::BorderPr
+ Axlsx::Workbook
@@ -2689,185 +2689,185 @@
- #to_xml
+ #to_xml
- Axlsx::Relationships
+ Axlsx::Core
- #to_xml
+ #to_xml
- Axlsx::TableStyleElement
+ Axlsx::Marker
- #to_xml
+ #to_xml
- Axlsx::Core
+ Axlsx::Worksheet
- #to_xml
+ #to_xml
- Axlsx::ValAxis
+ Axlsx::Relationship
- #to_xml
+ #to_xml
- Axlsx::GradientFill
+ Axlsx::CatAxisData
- #to_xml
+ #to_xml
- Axlsx::PieSeries
+ Axlsx::Relationships
- #to_xml
+ #to_xml
- Axlsx::SeriesTitle
+ Axlsx::Cell
- #to_xml
+ #to_xml
- Axlsx::GradientStop
+ Axlsx::Color
- #to_xml
+ #to_xml
- Axlsx::PatternFill
+ Axlsx::Drawing
- #to_xml
+ #to_xml
- Axlsx::Chart
+ Axlsx::Pie3DChart
- #to_xml
+ #to_xml
- Axlsx::Fill
+ Axlsx::Font
- #to_xml
+ #to_xml
- Axlsx::Pie3DChart
+ Axlsx::Fill
- #to_xml
+ #to_xml
- Axlsx::Styles
+ Axlsx::Line3DChart
- #to_xml
+ #to_xml
- Axlsx::BarSeries
+ Axlsx::ContentType
- #to_xml
+ #to_xml
- Axlsx::App
+ Axlsx::CellProtection
- #to_xml
+ #to_xml
- Axlsx::Default
+ Axlsx::CatAxis
- #to_xml
+ #to_xml
- Axlsx::Pic
+ Axlsx::TableStyleElement
- #to_xml
+ #to_xml
- Axlsx::Border
+ Axlsx::GraphicFrame
- #to_xml
+ #to_xml
- Axlsx::Font
+ Axlsx::Default
- #to_xml
+ #to_xml
- Axlsx::GraphicFrame
+ Axlsx::App
- #to_xml
+ #to_xml
- Axlsx::Cell
+ Axlsx::Border
- #to_xml
+ #to_xml
- Axlsx::TableStyles
+ Axlsx::SeriesTitle
- #to_xml
+ #to_xml
- Axlsx::Drawing
+ Axlsx::ValAxis
@@ -2881,41 +2881,41 @@
- #to_xml
+ #to_xml
- Axlsx::CellProtection
+ Axlsx::Title
- #to_xml
+ #to_xml
- Axlsx::Axis
+ Axlsx::Scaling
- #to_xml
+ #to_xml
- Axlsx::CellAlignment
+ Axlsx::ValAxisData
- #top
+ #to_xml
- Axlsx::GradientFill
+ Axlsx::Xf
- #type
+ #top
- Axlsx::Cell
+ Axlsx::GradientFill
@@ -2937,41 +2937,41 @@
- #update_auto_fit_data
+ #type
- Axlsx::Worksheet
+ Axlsx::Cell
- #valAxis
+ #update_auto_fit_data
- Axlsx::Line3DChart
+ Axlsx::Worksheet
- #valAxis
+ #valAxis
- Axlsx::Bar3DChart
+ Axlsx::Line3DChart
- #validate
+ #valAxis
- Axlsx::Package
+ Axlsx::Bar3DChart
- validate
+ validate
- Axlsx::RestrictionValidator
+ Axlsx::RegexValidator
@@ -2985,23 +2985,23 @@
- validate
+ validate
- Axlsx::RegexValidator
+ Axlsx::RestrictionValidator
- validate_boolean
+ #validate
- Axlsx
+ Axlsx::Package
- validate_content_type
+ validate_boolean
Axlsx
@@ -3009,7 +3009,7 @@
- validate_float
+ validate_content_type
Axlsx
@@ -3017,7 +3017,7 @@
- validate_gradient_type
+ validate_float
Axlsx
@@ -3025,7 +3025,7 @@
- validate_horizontal_alignment
+ validate_gradient_type
Axlsx
@@ -3033,7 +3033,7 @@
- validate_int
+ validate_horizontal_alignment
Axlsx
@@ -3041,7 +3041,7 @@
- validate_pattern_type
+ validate_int
Axlsx
@@ -3049,7 +3049,7 @@
- validate_relationship_type
+ validate_pattern_type
Axlsx
@@ -3057,7 +3057,7 @@
- validate_string
+ validate_relationship_type
Axlsx
@@ -3065,7 +3065,7 @@
- validate_table_element_type
+ validate_string
Axlsx
@@ -3073,7 +3073,7 @@
- validate_unsigned_int
+ validate_table_element_type
Axlsx
@@ -3081,7 +3081,7 @@
- validate_vertical_alignment
+ validate_unsigned_int
Axlsx
@@ -3089,33 +3089,33 @@
- #value
+ validate_vertical_alignment
- Axlsx::Cell
+ Axlsx
- #vertical
+ #value
- Axlsx::CellAlignment
+ Axlsx::Cell
- #view3D
+ #vertical
- Axlsx::Chart
+ Axlsx::CellAlignment
- #width
+ #view3D
- Axlsx::OneCellAnchor
+ Axlsx::Chart
@@ -3129,6 +3129,14 @@
+ #width
+
+ Axlsx::OneCellAnchor
+
+
+
+
+
#width=
Axlsx::Pic
@@ -3136,7 +3144,7 @@
-
+
#workbook
Axlsx::Worksheet
@@ -3144,7 +3152,7 @@
-
+
#workbook
Axlsx::Package
@@ -3152,7 +3160,7 @@
-
+
#workbook=
Axlsx::Package
@@ -3160,7 +3168,7 @@
-
+
#worksheet
Axlsx::Row
@@ -3168,7 +3176,7 @@
-
+
#worksheet
Axlsx::Drawing
@@ -3176,7 +3184,7 @@
-
+
#worksheets
Axlsx::Workbook
@@ -3184,7 +3192,7 @@
-
+
#wrapText
Axlsx::CellAlignment
@@ -3192,18 +3200,18 @@
-
- #xfId
+
+ #xfId
- Axlsx::CellStyle
+ Axlsx::Xf
-
- #xfId
+
+ #xfId
- Axlsx::Xf
+ Axlsx::CellStyle
diff --git a/doc/top-level-namespace.html b/doc/top-level-namespace.html
index ce83030a..d18fb6e5 100644
--- a/doc/top-level-namespace.html
+++ b/doc/top-level-namespace.html
@@ -94,7 +94,7 @@
diff --git a/lib/axlsx/ar.rb b/lib/axlsx/ar.rb
index 2864c95a..83fc7041 100644
--- a/lib/axlsx/ar.rb
+++ b/lib/axlsx/ar.rb
@@ -1,24 +1,33 @@
# ActsAsAxlsx
require 'axlsx'
module Axlsx
-
+ # Mixing module for adding acts_as_axlsx to active record base
module Ar
+ # Extents active record with this ojbects class method acts_as_axlsx
def self.included(base)
base.send :extend, ClassMethods
end
+ # Class methods for the mixin
module ClassMethods
- # we should do what ruport did and use only, exclude and methods hashes
+ # adds in the instance and singleton methods
def acts_as_axlsx(options={})
include Axlsx::Ar::InstanceMethods
extend Axlsx::Ar::SingletonMethods
end
end
+ # Singleton methods for the mixin
module SingletonMethods
+ # Maps the AR class to an Axlsx package
+ # options are passed into AR find
+ # @option options [Integer] header_style to apply to the first row of field names
+ # @option options [Array, Symbol] an array of Axlsx types for each cell in data rows or a single type that will be applied to all types.
+ # @option options [Integer, Array] style The style to pass to Worksheet#add_row
+ # @see Worksheet#add_row
def to_xlsx(number = :all, options = {})
row_style = options.delete(:style)
header_style = options.delete(:header_style) || row_style
@@ -43,6 +52,8 @@ module Axlsx
end
+ # Empty module - I really like ruports way of allowing :include, :only, :exclude
+ # and am looking to add something like that in later
module InstanceMethods
end
@@ -51,6 +62,7 @@ module Axlsx
end
begin
+
require 'active_record'
ActiveRecord::Base.send :include, Axlsx::Ar
rescue Exception=>e
diff --git a/lib/axlsx/workbook/worksheet/row.rb b/lib/axlsx/workbook/worksheet/row.rb
index 0e5333b9..7958124f 100644
--- a/lib/axlsx/workbook/worksheet/row.rb
+++ b/lib/axlsx/workbook/worksheet/row.rb
@@ -62,6 +62,9 @@ module Axlsx
end
end
+ # returns the cells in this row as an array
+ # This lets us transpose the rows into columns
+ # @return [Array]
def to_ary
@cells.to_ary
end
--
cgit v1.2.3
| | |