axlsx 1.0.9 → 1.0.10a

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. data/Gemfile +3 -0
  2. data/Gemfile.lock +24 -0
  3. data/README.md +86 -1
  4. data/axlsx.gemspec +6 -10
  5. data/doc/Axlsx.html +557 -360
  6. data/doc/Axlsx/App.html +347 -244
  7. data/doc/Axlsx/Ar.html +200 -0
  8. data/doc/Axlsx/Ar/ClassMethods.html +192 -0
  9. data/doc/Axlsx/Ar/InstanceMethods.html +109 -0
  10. data/doc/Axlsx/Ar/SingletonMethods.html +304 -0
  11. data/doc/Axlsx/Axis.html +131 -98
  12. data/doc/Axlsx/Bar3DChart.html +138 -106
  13. data/doc/Axlsx/BarSeries.html +73 -54
  14. data/doc/Axlsx/Border.html +114 -87
  15. data/doc/Axlsx/BorderPr.html +107 -82
  16. data/doc/Axlsx/CatAxis.html +93 -68
  17. data/doc/Axlsx/CatAxisData.html +47 -38
  18. data/doc/Axlsx/Cell.html +642 -148
  19. data/doc/Axlsx/CellAlignment.html +152 -111
  20. data/doc/Axlsx/CellProtection.html +63 -45
  21. data/doc/Axlsx/CellStyle.html +101 -73
  22. data/doc/Axlsx/Chart.html +238 -179
  23. data/doc/Axlsx/Color.html +75 -53
  24. data/doc/Axlsx/ContentType.html +34 -26
  25. data/doc/Axlsx/Core.html +54 -42
  26. data/doc/Axlsx/DataTypeValidator.html +39 -30
  27. data/doc/Axlsx/Default.html +59 -43
  28. data/doc/Axlsx/Drawing.html +176 -128
  29. data/doc/Axlsx/Fill.html +46 -33
  30. data/doc/Axlsx/Font.html +197 -147
  31. data/doc/Axlsx/GradientFill.html +114 -82
  32. data/doc/Axlsx/GradientStop.html +47 -33
  33. data/doc/Axlsx/GraphicFrame.html +78 -60
  34. data/doc/Axlsx/Line3DChart.html +125 -97
  35. data/doc/Axlsx/LineSeries.html +60 -44
  36. data/doc/Axlsx/Marker.html +98 -71
  37. data/doc/Axlsx/NumFmt.html +99 -80
  38. data/doc/Axlsx/OneCellAnchor.html +126 -94
  39. data/doc/Axlsx/Override.html +59 -43
  40. data/doc/Axlsx/Package.html +269 -134
  41. data/doc/Axlsx/PatternFill.html +93 -72
  42. data/doc/Axlsx/Pic.html +202 -152
  43. data/doc/Axlsx/Pie3DChart.html +39 -30
  44. data/doc/Axlsx/PieSeries.html +72 -53
  45. data/doc/Axlsx/RegexValidator.html +19 -14
  46. data/doc/Axlsx/Relationship.html +60 -43
  47. data/doc/Axlsx/Relationships.html +34 -26
  48. data/doc/Axlsx/RestrictionValidator.html +31 -22
  49. data/doc/Axlsx/Row.html +241 -67
  50. data/doc/Axlsx/Scaling.html +80 -59
  51. data/doc/Axlsx/SerAxis.html +71 -51
  52. data/doc/Axlsx/Series.html +179 -51
  53. data/doc/Axlsx/SeriesTitle.html +29 -24
  54. data/doc/Axlsx/Styles.html +354 -285
  55. data/doc/Axlsx/TableStyle.html +74 -54
  56. data/doc/Axlsx/TableStyleElement.html +99 -79
  57. data/doc/Axlsx/TableStyles.html +65 -47
  58. data/doc/Axlsx/Title.html +66 -51
  59. data/doc/Axlsx/TwoCellAnchor.html +129 -96
  60. data/doc/Axlsx/ValAxis.html +52 -38
  61. data/doc/Axlsx/ValAxisData.html +32 -27
  62. data/doc/Axlsx/View3D.html +111 -80
  63. data/doc/Axlsx/Workbook.html +333 -272
  64. data/doc/Axlsx/Worksheet.html +1018 -266
  65. data/doc/Axlsx/Xf.html +188 -134
  66. data/doc/_index.html +44 -8
  67. data/doc/class_list.html +1 -1
  68. data/doc/file.LICENSE.html +28 -23
  69. data/doc/file.README.html +180 -91
  70. data/doc/index.html +180 -91
  71. data/doc/method_list.html +541 -421
  72. data/doc/top-level-namespace.html +2 -2
  73. data/examples/example.rb +70 -13
  74. data/lib/axlsx.rb +1 -0
  75. data/lib/axlsx/ar.rb +72 -0
  76. data/lib/axlsx/package.rb +8 -1
  77. data/lib/axlsx/util/simple_typed_list.rb +5 -0
  78. data/lib/axlsx/version.rb +1 -1
  79. data/lib/axlsx/workbook/workbook.rb +4 -2
  80. data/lib/axlsx/workbook/worksheet/row.rb +15 -0
  81. data/lib/axlsx/workbook/worksheet/worksheet.rb +44 -1
  82. data/test/workbook/worksheet/tc_row.rb +6 -0
  83. data/test/workbook/worksheet/tc_worksheet.rb +36 -0
  84. metadata +103 -59
@@ -97,13 +97,15 @@
97
97
 
98
98
  <div class="note notetag">
99
99
  <strong>Note:</strong>
100
- <div class='inline'>
101
- <p>The recommended way to manage rows and cells is to use Worksheet#add_row</p>
100
+ <div class='inline'><p>
101
+ The recommended way to manage rows and cells is to use Worksheet#add_row
102
+ </p>
102
103
  </div>
103
104
  </div>
104
105
 
105
-
106
- <p>A Row is a single row in a worksheet.</p>
106
+ <p>
107
+ A Row is a single row in a worksheet.
108
+ </p>
107
109
 
108
110
 
109
111
  </div>
@@ -142,8 +144,9 @@
142
144
 
143
145
 
144
146
 
145
- <span class="summary_desc"><div class='inline'>
146
- <p>The cells this row holds.</p>
147
+ <span class="summary_desc"><div class='inline'><p>
148
+ The cells this row holds.
149
+ </p>
147
150
  </div></span>
148
151
 
149
152
  </li>
@@ -168,8 +171,9 @@
168
171
 
169
172
 
170
173
 
171
- <span class="summary_desc"><div class='inline'>
172
- <p>The worksheet this row belongs to.</p>
174
+ <span class="summary_desc"><div class='inline'><p>
175
+ The worksheet this row belongs to.
176
+ </p>
173
177
  </div></span>
174
178
 
175
179
  </li>
@@ -204,9 +208,10 @@
204
208
 
205
209
 
206
210
 
207
- <span class="summary_desc"><div class='inline'>
208
- <p>Adds a singel sell to the row based on the data provided and updates the
209
- worksheet's autofit data.</p>
211
+ <span class="summary_desc"><div class='inline'><p>
212
+ Adds a singel sell to the row based on the data provided and updates the
213
+ worksheet&#8217;s autofit data.
214
+ </p>
210
215
  </div></span>
211
216
 
212
217
  </li>
@@ -228,8 +233,9 @@ worksheet's autofit data.</p>
228
233
 
229
234
 
230
235
 
231
- <span class="summary_desc"><div class='inline'>
232
- <p>The index of this row in the worksheet.</p>
236
+ <span class="summary_desc"><div class='inline'><p>
237
+ The index of this row in the worksheet.
238
+ </p>
233
239
  </div></span>
234
240
 
235
241
  </li>
@@ -253,8 +259,58 @@ worksheet's autofit data.</p>
253
259
 
254
260
 
255
261
 
256
- <span class="summary_desc"><div class='inline'>
257
- <p>Creates a new row.</p>
262
+ <span class="summary_desc"><div class='inline'><p>
263
+ Creates a new row.
264
+ </p>
265
+ </div></span>
266
+
267
+ </li>
268
+
269
+
270
+ <li class="public ">
271
+ <span class="summary_signature">
272
+
273
+ <a href="#style%3D-instance_method" title="#style= (instance method)">- (Object) <strong>style=</strong>(style) </a>
274
+
275
+
276
+
277
+ </span>
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+ <span class="summary_desc"><div class='inline'><p>
287
+ sets the style for every cell in this row.
288
+ </p>
289
+ </div></span>
290
+
291
+ </li>
292
+
293
+
294
+ <li class="public ">
295
+ <span class="summary_signature">
296
+
297
+ <a href="#to_ary-instance_method" title="#to_ary (instance method)">- (Array) <strong>to_ary</strong> </a>
298
+
299
+
300
+
301
+ </span>
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+ <span class="summary_desc"><div class='inline'><p>
311
+ returns the cells in this row as an array This lets us transpose the rows
312
+ into columns.
313
+ </p>
258
314
  </div></span>
259
315
 
260
316
  </li>
@@ -276,8 +332,9 @@ worksheet's autofit data.</p>
276
332
 
277
333
 
278
334
 
279
- <span class="summary_desc"><div class='inline'>
280
- <p>Serializes the row.</p>
335
+ <span class="summary_desc"><div class='inline'><p>
336
+ Serializes the row.
337
+ </p>
281
338
  </div></span>
282
339
 
283
340
  </li>
@@ -298,17 +355,19 @@ worksheet's autofit data.</p>
298
355
 
299
356
  </p><div class="docstring">
300
357
  <div class="discussion">
301
-
302
- <p>Creates a new row. New Cell objects are created based on the values, types
358
+ <p>
359
+ Creates a new row. New Cell objects are created based on the values, types
303
360
  and style options. A new cell is created for each item in the values array.
304
- style and types options are applied as follows:</p>
305
-
306
- <pre class="code">If the types option is defined and is a symbol it is applied to all the cells created.
307
- If the types option is an array, cell types are applied by index for each cell
308
- If the types option is not set, the cell will automatically determine its type.
309
- If the style option is defined and is an Integer, it is applied to all cells created.
310
- If the style option is an array, style is applied by index for each cell.
311
- If the style option is not defined, the default style (0) is applied to each cell.</pre>
361
+ style and types options are applied as follows:
362
+ </p>
363
+ <pre class="code">
364
+ <span class='If constant id'>If</span> <span class='the identifier id'>the</span> <span class='types identifier id'>types</span> <span class='option identifier id'>option</span> <span class='is identifier id'>is</span> <span class='defined identifier id'>defined</span> <span class='and and kw'>and</span> <span class='is identifier id'>is</span> <span class='a identifier id'>a</span> <span class='symbol identifier id'>symbol</span> <span class='it identifier id'>it</span> <span class='is identifier id'>is</span> <span class='applied identifier id'>applied</span> <span class='to identifier id'>to</span> <span class='all identifier id'>all</span> <span class='the identifier id'>the</span> <span class='cells identifier id'>cells</span> <span class='created identifier id'>created</span><span class='dot token'>.</span>
365
+ <span class='If constant id'>If</span> <span class='the identifier id'>the</span> <span class='types identifier id'>types</span> <span class='option identifier id'>option</span> <span class='is identifier id'>is</span> <span class='an identifier id'>an</span> <span class='array identifier id'>array</span><span class='comma token'>,</span> <span class='cell identifier id'>cell</span> <span class='types identifier id'>types</span> <span class='are identifier id'>are</span> <span class='applied identifier id'>applied</span> <span class='by identifier id'>by</span> <span class='index identifier id'>index</span> <span class='for for kw'>for</span> <span class='each identifier id'>each</span> <span class='cell identifier id'>cell</span>
366
+ <span class='If constant id'>If</span> <span class='the identifier id'>the</span> <span class='types identifier id'>types</span> <span class='option identifier id'>option</span> <span class='is identifier id'>is</span> <span class='not not kw'>not</span> <span class='set identifier id'>set</span><span class='comma token'>,</span> <span class='the identifier id'>the</span> <span class='cell identifier id'>cell</span> <span class='will identifier id'>will</span> <span class='automatically identifier id'>automatically</span> <span class='determine identifier id'>determine</span> <span class='its identifier id'>its</span> <span class='type identifier id'>type</span><span class='dot token'>.</span>
367
+ <span class='If constant id'>If</span> <span class='the identifier id'>the</span> <span class='style identifier id'>style</span> <span class='option identifier id'>option</span> <span class='is identifier id'>is</span> <span class='defined identifier id'>defined</span> <span class='and and kw'>and</span> <span class='is identifier id'>is</span> <span class='an identifier id'>an</span> <span class='Integer constant id'>Integer</span><span class='comma token'>,</span> <span class='it identifier id'>it</span> <span class='is identifier id'>is</span> <span class='applied identifier id'>applied</span> <span class='to identifier id'>to</span> <span class='all identifier id'>all</span> <span class='cells identifier id'>cells</span> <span class='created identifier id'>created</span><span class='dot token'>.</span>
368
+ <span class='If constant id'>If</span> <span class='the identifier id'>the</span> <span class='style identifier id'>style</span> <span class='option identifier id'>option</span> <span class='is identifier id'>is</span> <span class='an identifier id'>an</span> <span class='array identifier id'>array</span><span class='comma token'>,</span> <span class='style identifier id'>style</span> <span class='is identifier id'>is</span> <span class='applied identifier id'>applied</span> <span class='by identifier id'>by</span> <span class='index identifier id'>index</span> <span class='for for kw'>for</span> <span class='each identifier id'>each</span> <span class='cell identifier id'>cell</span><span class='dot token'>.</span>
369
+ <span class='If constant id'>If</span> <span class='the identifier id'>the</span> <span class='style identifier id'>style</span> <span class='option identifier id'>option</span> <span class='is identifier id'>is</span> <span class='not not kw'>not</span> <span class='defined identifier id'>defined</span><span class='comma token'>,</span> <span class='the identifier id'>the</span> <span class='default identifier id'>default</span> <span class='style identifier id'>style</span> <span class='lparen token'>(</span><span class='integer val'>0</span><span class='rparen token'>)</span> <span class='is identifier id'>is</span> <span class='applied identifier id'>applied</span> <span class='to identifier id'>to</span> <span class='each identifier id'>each</span> <span class='cell identifier id'>cell</span><span class='dot token'>.</span>
370
+ </pre>
312
371
 
313
372
 
314
373
  </div>
@@ -340,8 +399,9 @@ If the style option is not defined, the default style (0) is applied to each cel
340
399
 
341
400
 
342
401
  &mdash;
343
- <div class='inline'>
344
- <p>a customizable set of options</p>
402
+ <div class='inline'><p>
403
+ a customizable set of options
404
+ </p>
345
405
  </div>
346
406
 
347
407
  </li>
@@ -414,12 +474,13 @@ If the style option is not defined, the default style (0) is applied to each cel
414
474
  <td>
415
475
  <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/row.rb', line 29</span>
416
476
 
417
- <span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id worksheet'>worksheet</span><span class='comma'>,</span> <span class='id values'>values</span><span class='op'>=</span><span class='lbracket'>[</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
418
- <span class='kw'>self</span><span class='period'>.</span><span class='id worksheet'>worksheet</span> <span class='op'>=</span> <span class='id worksheet'>worksheet</span>
419
- <span class='ivar'>@cells</span> <span class='op'>=</span> <span class='const'>SimpleTypedList</span><span class='period'>.</span><span class='id new'>new</span> <span class='const'>Cell</span>
420
- <span class='ivar'>@worksheet</span><span class='period'>.</span><span class='id rows'>rows</span> <span class='op'>&lt;&lt;</span> <span class='kw'>self</span>
421
- <span class='id array_to_cells'>array_to_cells</span><span class='lparen'>(</span><span class='id values'>values</span><span class='comma'>,</span> <span class='id options'>options</span><span class='rparen'>)</span>
422
- <span class='kw'>end</span></pre>
477
+ <span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='worksheet identifier id'>worksheet</span><span class='comma token'>,</span> <span class='values identifier id'>values</span><span class='assign token'>=</span><span class='lbrack token'>[</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='assign token'>=</span><span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
478
+ <span class='self self kw'>self</span><span class='dot token'>.</span><span class='worksheet identifier id'>worksheet</span> <span class='assign token'>=</span> <span class='worksheet identifier id'>worksheet</span>
479
+ <span class='@cells ivar id'>@cells</span> <span class='assign token'>=</span> <span class='SimpleTypedList constant id'>SimpleTypedList</span><span class='dot token'>.</span><span class='new identifier id'>new</span> <span class='Cell constant id'>Cell</span>
480
+ <span class='@worksheet ivar id'>@worksheet</span><span class='dot token'>.</span><span class='rows identifier id'>rows</span> <span class='lshft op'>&lt;&lt;</span> <span class='self self kw'>self</span>
481
+ <span class='array_to_cells identifier id'>array_to_cells</span><span class='lparen token'>(</span><span class='values identifier id'>values</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='rparen token'>)</span>
482
+ <span class='end end kw'>end</span>
483
+ </pre>
423
484
  </td>
424
485
  </tr>
425
486
  </table>
@@ -442,8 +503,9 @@ If the style option is not defined, the default style (0) is applied to each cel
442
503
 
443
504
  </p><div class="docstring">
444
505
  <div class="discussion">
445
-
446
- <p>The cells this row holds</p>
506
+ <p>
507
+ The cells this row holds
508
+ </p>
447
509
 
448
510
 
449
511
  </div>
@@ -477,9 +539,10 @@ If the style option is not defined, the default style (0) is applied to each cel
477
539
  <td>
478
540
  <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/row.rb', line 13</span>
479
541
 
480
- <span class='kw'>def</span> <span class='id cells'>cells</span>
481
- <span class='ivar'>@cells</span>
482
- <span class='kw'>end</span></pre>
542
+ <span class='def def kw'>def</span> <span class='cells identifier id'>cells</span>
543
+ <span class='@cells ivar id'>@cells</span>
544
+ <span class='end end kw'>end</span>
545
+ </pre>
483
546
  </td>
484
547
  </tr>
485
548
  </table>
@@ -497,8 +560,9 @@ If the style option is not defined, the default style (0) is applied to each cel
497
560
 
498
561
  </p><div class="docstring">
499
562
  <div class="discussion">
500
-
501
- <p>The worksheet this row belongs to</p>
563
+ <p>
564
+ The worksheet this row belongs to
565
+ </p>
502
566
 
503
567
 
504
568
  </div>
@@ -532,9 +596,10 @@ If the style option is not defined, the default style (0) is applied to each cel
532
596
  <td>
533
597
  <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/row.rb', line 9</span>
534
598
 
535
- <span class='kw'>def</span> <span class='id worksheet'>worksheet</span>
536
- <span class='ivar'>@worksheet</span>
537
- <span class='kw'>end</span></pre>
599
+ <span class='def def kw'>def</span> <span class='worksheet identifier id'>worksheet</span>
600
+ <span class='@worksheet ivar id'>@worksheet</span>
601
+ <span class='end end kw'>end</span>
602
+ </pre>
538
603
  </td>
539
604
  </tr>
540
605
  </table>
@@ -556,9 +621,10 @@ If the style option is not defined, the default style (0) is applied to each cel
556
621
 
557
622
  </p><div class="docstring">
558
623
  <div class="discussion">
559
-
560
- <p>Adds a singel sell to the row based on the data provided and updates the
561
- worksheet's autofit data.</p>
624
+ <p>
625
+ Adds a singel sell to the row based on the data provided and updates the
626
+ worksheet&#8217;s autofit data.
627
+ </p>
562
628
 
563
629
 
564
630
  </div>
@@ -594,11 +660,12 @@ worksheet's autofit data.</p>
594
660
  <td>
595
661
  <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/row.rb', line 51</span>
596
662
 
597
- <span class='kw'>def</span> <span class='id add_cell'>add_cell</span><span class='lparen'>(</span><span class='id value'>value</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
598
- <span class='id c'>c</span> <span class='op'>=</span> <span class='const'>Cell</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='id value'>value</span><span class='comma'>,</span> <span class='id options'>options</span><span class='rparen'>)</span>
599
- <span class='id update_auto_fit_data'>update_auto_fit_data</span>
600
- <span class='id c'>c</span>
601
- <span class='kw'>end</span></pre>
663
+ <span class='def def kw'>def</span> <span class='add_cell identifier id'>add_cell</span><span class='lparen token'>(</span><span class='value identifier id'>value</span><span class='assign token'>=</span><span class='string val'>&quot;&quot;</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='assign token'>=</span><span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
664
+ <span class='c identifier id'>c</span> <span class='assign token'>=</span> <span class='Cell constant id'>Cell</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='comma token'>,</span> <span class='value identifier id'>value</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='rparen token'>)</span>
665
+ <span class='update_auto_fit_data identifier id'>update_auto_fit_data</span>
666
+ <span class='c identifier id'>c</span>
667
+ <span class='end end kw'>end</span>
668
+ </pre>
602
669
  </td>
603
670
  </tr>
604
671
  </table>
@@ -613,8 +680,9 @@ worksheet's autofit data.</p>
613
680
 
614
681
  </p><div class="docstring">
615
682
  <div class="discussion">
616
-
617
- <p>The index of this row in the worksheet</p>
683
+ <p>
684
+ The index of this row in the worksheet
685
+ </p>
618
686
 
619
687
 
620
688
  </div>
@@ -648,9 +716,112 @@ worksheet's autofit data.</p>
648
716
  <td>
649
717
  <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/row.rb', line 38</span>
650
718
 
651
- <span class='kw'>def</span> <span class='id index'>index</span>
652
- <span class='id worksheet'>worksheet</span><span class='period'>.</span><span class='id rows'>rows</span><span class='period'>.</span><span class='id index'>index</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span>
653
- <span class='kw'>end</span></pre>
719
+ <span class='def def kw'>def</span> <span class='index identifier id'>index</span>
720
+ <span class='worksheet identifier id'>worksheet</span><span class='dot token'>.</span><span class='rows identifier id'>rows</span><span class='dot token'>.</span><span class='index identifier id'>index</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='rparen token'>)</span>
721
+ <span class='end end kw'>end</span>
722
+ </pre>
723
+ </td>
724
+ </tr>
725
+ </table>
726
+ </div>
727
+
728
+ <div class="method_details ">
729
+ <p class="signature " id="style=-instance_method">
730
+
731
+ - (<tt>Object</tt>) <strong>style=</strong>(style)
732
+
733
+
734
+
735
+ </p><div class="docstring">
736
+ <div class="discussion">
737
+ <p>
738
+ sets the style for every cell in this row
739
+ </p>
740
+
741
+
742
+ </div>
743
+ </div>
744
+ <div class="tags">
745
+
746
+
747
+ </div><table class="source_code">
748
+ <tr>
749
+ <td>
750
+ <pre class="lines">
751
+
752
+
753
+ 58
754
+ 59
755
+ 60
756
+ 61
757
+ 62
758
+ 63</pre>
759
+ </td>
760
+ <td>
761
+ <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/row.rb', line 58</span>
762
+
763
+ <span class='def def kw'>def</span> <span class='style= identifier id'>style=</span><span class='lparen token'>(</span><span class='style identifier id'>style</span><span class='rparen token'>)</span>
764
+ <span class='cells identifier id'>cells</span><span class='dot token'>.</span><span class='each_with_index identifier id'>each_with_index</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span> <span class='cell identifier id'>cell</span><span class='comma token'>,</span> <span class='index identifier id'>index</span> <span class='bitor op'>|</span>
765
+ <span class='s identifier id'>s</span> <span class='assign token'>=</span> <span class='style identifier id'>style</span><span class='dot token'>.</span><span class='is_a? fid id'>is_a?</span><span class='lparen token'>(</span><span class='Array constant id'>Array</span><span class='rparen token'>)</span> <span class='question op'>?</span> <span class='style identifier id'>style</span><span class='lbrack token'>[</span><span class='index identifier id'>index</span><span class='rbrack token'>]</span> <span class='colon op'>:</span> <span class='style identifier id'>style</span>
766
+ <span class='cell identifier id'>cell</span><span class='dot token'>.</span><span class='style identifier id'>style</span> <span class='assign token'>=</span> <span class='s identifier id'>s</span>
767
+ <span class='end end kw'>end</span>
768
+ <span class='end end kw'>end</span>
769
+ </pre>
770
+ </td>
771
+ </tr>
772
+ </table>
773
+ </div>
774
+
775
+ <div class="method_details ">
776
+ <p class="signature " id="to_ary-instance_method">
777
+
778
+ - (<tt>Array</tt>) <strong>to_ary</strong>
779
+
780
+
781
+
782
+ </p><div class="docstring">
783
+ <div class="discussion">
784
+ <p>
785
+ returns the cells in this row as an array This lets us transpose the rows
786
+ into columns
787
+ </p>
788
+
789
+
790
+ </div>
791
+ </div>
792
+ <div class="tags">
793
+
794
+ <h3>Returns:</h3>
795
+ <ul class="return">
796
+
797
+ <li>
798
+
799
+
800
+ <span class='type'>(<tt>Array</tt>)</span>
801
+
802
+
803
+
804
+ </li>
805
+
806
+ </ul>
807
+
808
+ </div><table class="source_code">
809
+ <tr>
810
+ <td>
811
+ <pre class="lines">
812
+
813
+
814
+ 68
815
+ 69
816
+ 70</pre>
817
+ </td>
818
+ <td>
819
+ <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/row.rb', line 68</span>
820
+
821
+ <span class='def def kw'>def</span> <span class='to_ary identifier id'>to_ary</span>
822
+ <span class='@cells ivar id'>@cells</span><span class='dot token'>.</span><span class='to_ary identifier id'>to_ary</span>
823
+ <span class='end end kw'>end</span>
824
+ </pre>
654
825
  </td>
655
826
  </tr>
656
827
  </table>
@@ -665,8 +836,9 @@ worksheet's autofit data.</p>
665
836
 
666
837
  </p><div class="docstring">
667
838
  <div class="discussion">
668
-
669
- <p>Serializes the row</p>
839
+ <p>
840
+ Serializes the row
841
+ </p>
670
842
 
671
843
 
672
844
  </div>
@@ -685,8 +857,9 @@ worksheet's autofit data.</p>
685
857
 
686
858
 
687
859
  &mdash;
688
- <div class='inline'>
689
- <p>The document builder instance this objects xml will be added to.</p>
860
+ <div class='inline'><p>
861
+ The document builder instance this objects xml will be added to.
862
+ </p>
690
863
  </div>
691
864
 
692
865
  </li>
@@ -720,9 +893,10 @@ worksheet's autofit data.</p>
720
893
  <td>
721
894
  <pre class="code"><span class="info file"># File 'lib/axlsx/workbook/worksheet/row.rb', line 45</span>
722
895
 
723
- <span class='kw'>def</span> <span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span>
724
- <span class='id xml'>xml</span><span class='period'>.</span><span class='id row'>row</span><span class='lparen'>(</span><span class='symbol'>:r</span> <span class='op'>=&gt;</span> <span class='id index'>index</span><span class='op'>+</span><span class='int'>1</span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='ivar'>@cells</span><span class='period'>.</span><span class='id each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id cell'>cell</span><span class='op'>|</span> <span class='id cell'>cell</span><span class='period'>.</span><span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span> <span class='rbrace'>}</span> <span class='rbrace'>}</span>
725
- <span class='kw'>end</span></pre>
896
+ <span class='def def kw'>def</span> <span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span>
897
+ <span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='row identifier id'>row</span><span class='lparen token'>(</span><span class='symbol val'>:r</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='index identifier id'>index</span><span class='plus op'>+</span><span class='integer val'>1</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span> <span class='@cells ivar id'>@cells</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='cell identifier id'>cell</span><span class='bitor op'>|</span> <span class='cell identifier id'>cell</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span> <span class='rbrace token'>}</span> <span class='rbrace token'>}</span>
898
+ <span class='end end kw'>end</span>
899
+ </pre>
726
900
  </td>
727
901
  </tr>
728
902
  </table>
@@ -733,9 +907,9 @@ worksheet's autofit data.</p>
733
907
  </div>
734
908
 
735
909
  <div id="footer">
736
- Generated on Sat Nov 26 13:16:39 2011 by
910
+ Generated on Sun Nov 27 21:54:13 2011 by
737
911
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
738
- 0.7.3 (ruby-1.9.3).
912
+ 0.7.3 (ruby-1.8.7).
739
913
  </div>
740
914
 
741
915
  </body>