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
@@ -94,8 +94,9 @@
94
94
 
95
95
  <h2>Overview</h2><div class="docstring">
96
96
  <div class="discussion">
97
-
98
- <p>The color class represents a color used for borders, fills an fonts</p>
97
+ <p>
98
+ The color class represents a color used for borders, fills an fonts
99
+ </p>
99
100
 
100
101
 
101
102
  </div>
@@ -127,8 +128,9 @@
127
128
 
128
129
 
129
130
 
130
- <span class="summary_desc"><div class='inline'>
131
- <p>Determines if the color is system color dependant.</p>
131
+ <span class="summary_desc"><div class='inline'><p>
132
+ Determines if the color is system color dependant.
133
+ </p>
132
134
  </div></span>
133
135
 
134
136
  </li>
@@ -153,8 +155,9 @@
153
155
 
154
156
 
155
157
 
156
- <span class="summary_desc"><div class='inline'>
157
- <p>The color as defined in rgb terms.</p>
158
+ <span class="summary_desc"><div class='inline'><p>
159
+ The color as defined in rgb terms.
160
+ </p>
158
161
  </div></span>
159
162
 
160
163
  </li>
@@ -179,8 +182,9 @@
179
182
 
180
183
 
181
184
 
182
- <span class="summary_desc"><div class='inline'>
183
- <p>The tint value.</p>
185
+ <span class="summary_desc"><div class='inline'><p>
186
+ The tint value.
187
+ </p>
184
188
  </div></span>
185
189
 
186
190
  </li>
@@ -217,8 +221,9 @@
217
221
 
218
222
 
219
223
 
220
- <span class="summary_desc"><div class='inline'>
221
- <p>Creates a new Color object.</p>
224
+ <span class="summary_desc"><div class='inline'><p>
225
+ Creates a new Color object.
226
+ </p>
222
227
  </div></span>
223
228
 
224
229
  </li>
@@ -240,8 +245,9 @@
240
245
 
241
246
 
242
247
 
243
- <span class="summary_desc"><div class='inline'>
244
- <p>Serializes the color.</p>
248
+ <span class="summary_desc"><div class='inline'><p>
249
+ Serializes the color.
250
+ </p>
245
251
  </div></span>
246
252
 
247
253
  </li>
@@ -262,8 +268,9 @@
262
268
 
263
269
  </p><div class="docstring">
264
270
  <div class="discussion">
265
-
266
- <p>Creates a new Color object</p>
271
+ <p>
272
+ Creates a new Color object
273
+ </p>
267
274
 
268
275
 
269
276
  </div>
@@ -284,8 +291,9 @@
284
291
 
285
292
 
286
293
  &mdash;
287
- <div class='inline'>
288
- <p>a customizable set of options</p>
294
+ <div class='inline'><p>
295
+ a customizable set of options
296
+ </p>
289
297
  </div>
290
298
 
291
299
  </li>
@@ -345,12 +353,13 @@
345
353
  <td>
346
354
  <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/color.rb', line 34</span>
347
355
 
348
- <span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
349
- <span class='ivar'>@rgb</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>FF000000</span><span class='tstring_end'>&quot;</span></span>
350
- <span class='id options'>options</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id o'>o</span><span class='op'>|</span>
351
- <span class='kw'>self</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id o'>o</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='tstring_content'>=</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id o'>o</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id respond_to?'>respond_to?</span> <span class='id o'>o</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
352
- <span class='kw'>end</span>
353
- <span class='kw'>end</span></pre>
356
+ <span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen 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>
357
+ <span class='@rgb ivar id'>@rgb</span> <span class='assign token'>=</span> <span class='string val'>&quot;FF000000&quot;</span>
358
+ <span class='options identifier id'>options</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='o identifier id'>o</span><span class='bitor op'>|</span>
359
+ <span class='self self kw'>self</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='dstring node'>&quot;#{o[0]}=&quot;</span><span class='comma token'>,</span> <span class='o identifier id'>o</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='if if_mod kw'>if</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='respond_to? fid id'>respond_to?</span> <span class='o identifier id'>o</span><span class='lbrack token'>[</span><span class='integer val'>0</span><span class='rbrack token'>]</span>
360
+ <span class='end end kw'>end</span>
361
+ <span class='end end kw'>end</span>
362
+ </pre>
354
363
  </td>
355
364
  </tr>
356
365
  </table>
@@ -373,8 +382,9 @@
373
382
 
374
383
  </p><div class="docstring">
375
384
  <div class="discussion">
376
-
377
- <p>Determines if the color is system color dependant</p>
385
+ <p>
386
+ Determines if the color is system color dependant
387
+ </p>
378
388
 
379
389
 
380
390
  </div>
@@ -408,9 +418,10 @@
408
418
  <td>
409
419
  <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/color.rb', line 6</span>
410
420
 
411
- <span class='kw'>def</span> <span class='id auto'>auto</span>
412
- <span class='ivar'>@auto</span>
413
- <span class='kw'>end</span></pre>
421
+ <span class='def def kw'>def</span> <span class='auto identifier id'>auto</span>
422
+ <span class='@auto ivar id'>@auto</span>
423
+ <span class='end end kw'>end</span>
424
+ </pre>
414
425
  </td>
415
426
  </tr>
416
427
  </table>
@@ -431,14 +442,16 @@
431
442
 
432
443
  <div class="note notetag">
433
444
  <strong>Note:</strong>
434
- <div class='inline'>
435
- <p>rgb colors need to conform to ST_UnsignedIntHex. That basically means put
436
- 'FF' before you color</p>
445
+ <div class='inline'><p>
446
+ rgb colors need to conform to ST_UnsignedIntHex. That basically means put
447
+ &#8216;FF&#8217; before you color
448
+ </p>
437
449
  </div>
438
450
  </div>
439
451
 
440
-
441
- <p>The color as defined in rgb terms.</p>
452
+ <p>
453
+ The color as defined in rgb terms.
454
+ </p>
442
455
 
443
456
 
444
457
  </div>
@@ -448,11 +461,13 @@
448
461
  <div class="examples">
449
462
  <h3>Examples:</h3>
450
463
 
451
- <h4><div class='inline'>
452
- <p>rgb colors</p>
464
+ <h4><div class='inline'><p>
465
+ rgb colors
466
+ </p>
453
467
  </div></h4>
454
- <pre class="example code">&quot;FF000000&quot; is black
455
- &quot;FFFFFFFF&quot; is white</pre>
468
+ <pre class="example code"><span class='string val'>&quot;FF000000&quot;</span> <span class='is identifier id'>is</span> <span class='black identifier id'>black</span>
469
+ <span class='string val'>&quot;FFFFFFFF&quot;</span> <span class='is identifier id'>is</span> <span class='white identifier id'>white</span>
470
+ </pre>
456
471
 
457
472
  </div>
458
473
 
@@ -483,9 +498,10 @@
483
498
  <td>
484
499
  <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/color.rb', line 19</span>
485
500
 
486
- <span class='kw'>def</span> <span class='id rgb'>rgb</span>
487
- <span class='ivar'>@rgb</span>
488
- <span class='kw'>end</span></pre>
501
+ <span class='def def kw'>def</span> <span class='rgb identifier id'>rgb</span>
502
+ <span class='@rgb ivar id'>@rgb</span>
503
+ <span class='end end kw'>end</span>
504
+ </pre>
489
505
  </td>
490
506
  </tr>
491
507
  </table>
@@ -506,13 +522,15 @@
506
522
 
507
523
  <div class="note notetag">
508
524
  <strong>Note:</strong>
509
- <div class='inline'>
510
- <p>valid values are between -1.0 and 1.0</p>
525
+ <div class='inline'><p>
526
+ valid values are between -1.0 and 1.0
527
+ </p>
511
528
  </div>
512
529
  </div>
513
530
 
514
-
515
- <p>The tint value.</p>
531
+ <p>
532
+ The tint value.
533
+ </p>
516
534
 
517
535
 
518
536
  </div>
@@ -546,9 +564,10 @@
546
564
  <td>
547
565
  <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/color.rb', line 28</span>
548
566
 
549
- <span class='kw'>def</span> <span class='id tint'>tint</span>
550
- <span class='ivar'>@tint</span>
551
- <span class='kw'>end</span></pre>
567
+ <span class='def def kw'>def</span> <span class='tint identifier id'>tint</span>
568
+ <span class='@tint ivar id'>@tint</span>
569
+ <span class='end end kw'>end</span>
570
+ </pre>
552
571
  </td>
553
572
  </tr>
554
573
  </table>
@@ -570,8 +589,9 @@
570
589
 
571
590
  </p><div class="docstring">
572
591
  <div class="discussion">
573
-
574
- <p>Serializes the color</p>
592
+ <p>
593
+ Serializes the color
594
+ </p>
575
595
 
576
596
 
577
597
  </div>
@@ -590,8 +610,9 @@
590
610
 
591
611
 
592
612
  &mdash;
593
- <div class='inline'>
594
- <p>The document builder instance this objects xml will be added to.</p>
613
+ <div class='inline'><p>
614
+ The document builder instance this objects xml will be added to.
615
+ </p>
595
616
  </div>
596
617
 
597
618
  </li>
@@ -623,7 +644,8 @@
623
644
  <td>
624
645
  <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/color.rb', line 57</span>
625
646
 
626
- <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> <span class='id xml'>xml</span><span class='period'>.</span><span class='id color'>color</span><span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id instance_values'>instance_values</span><span class='rparen'>)</span> <span class='kw'>end</span></pre>
647
+ <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> <span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='color identifier id'>color</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='dot token'>.</span><span class='instance_values identifier id'>instance_values</span><span class='rparen token'>)</span> <span class='end end kw'>end</span>
648
+ </pre>
627
649
  </td>
628
650
  </tr>
629
651
  </table>
@@ -634,9 +656,9 @@
634
656
  </div>
635
657
 
636
658
  <div id="footer">
637
- Generated on Sat Nov 26 13:16:37 2011 by
659
+ Generated on Sun Nov 27 21:54:14 2011 by
638
660
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
639
- 0.7.3 (ruby-1.9.3).
661
+ 0.7.3 (ruby-1.8.7).
640
662
  </div>
641
663
 
642
664
  </body>
@@ -96,9 +96,10 @@
96
96
 
97
97
  <h2>Overview</h2><div class="docstring">
98
98
  <div class="discussion">
99
-
100
- <p>ContentTypes used in the package. This is automatcially managed by the
101
- package package.</p>
99
+ <p>
100
+ ContentTypes used in the package. This is automatcially managed by the
101
+ package package.
102
+ </p>
102
103
 
103
104
 
104
105
  </div>
@@ -149,8 +150,9 @@ package package.</p>
149
150
 
150
151
 
151
152
 
152
- <span class="summary_desc"><div class='inline'>
153
- <p>A new instance of ContentType.</p>
153
+ <span class="summary_desc"><div class='inline'><p>
154
+ A new instance of ContentType.
155
+ </p>
154
156
  </div></span>
155
157
 
156
158
  </li>
@@ -172,8 +174,9 @@ package package.</p>
172
174
 
173
175
 
174
176
 
175
- <span class="summary_desc"><div class='inline'>
176
- <p>Generates the xml document for [Content_Types].xml.</p>
177
+ <span class="summary_desc"><div class='inline'><p>
178
+ Generates the xml document for [Content_Types].xml.
179
+ </p>
177
180
  </div></span>
178
181
 
179
182
  </li>
@@ -199,8 +202,9 @@ package package.</p>
199
202
 
200
203
  </p><div class="docstring">
201
204
  <div class="discussion">
202
-
203
- <p>A new instance of ContentType</p>
205
+ <p>
206
+ A new instance of ContentType
207
+ </p>
204
208
 
205
209
 
206
210
  </div>
@@ -221,9 +225,10 @@ package package.</p>
221
225
  <td>
222
226
  <pre class="code"><span class="info file"># File 'lib/axlsx/content_type/content_type.rb', line 8</span>
223
227
 
224
- <span class='kw'>def</span> <span class='id initialize'>initialize</span>
225
- <span class='kw'>super</span> <span class='lbracket'>[</span><span class='const'>Override</span><span class='comma'>,</span> <span class='const'>Default</span><span class='rbracket'>]</span>
226
- <span class='kw'>end</span></pre>
228
+ <span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span>
229
+ <span class='super super kw'>super</span> <span class='lbrack token'>[</span><span class='Override constant id'>Override</span><span class='comma token'>,</span> <span class='Default constant id'>Default</span><span class='rbrack token'>]</span>
230
+ <span class='end end kw'>end</span>
231
+ </pre>
227
232
  </td>
228
233
  </tr>
229
234
  </table>
@@ -255,8 +260,9 @@ package package.</p>
255
260
 
256
261
  </p><div class="docstring">
257
262
  <div class="discussion">
258
-
259
- <p>Generates the xml document for [Content_Types].xml</p>
263
+ <p>
264
+ Generates the xml document for [Content_Types].xml
265
+ </p>
260
266
 
261
267
 
262
268
  </div>
@@ -274,8 +280,9 @@ package package.</p>
274
280
 
275
281
 
276
282
  &mdash;
277
- <div class='inline'>
278
- <p>The document as a string.</p>
283
+ <div class='inline'><p>
284
+ The document as a string.
285
+ </p>
279
286
  </div>
280
287
 
281
288
  </li>
@@ -300,14 +307,15 @@ package package.</p>
300
307
  <td>
301
308
  <pre class="code"><span class="info file"># File 'lib/axlsx/content_type/content_type.rb', line 14</span>
302
309
 
303
- <span class='kw'>def</span> <span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='rparen'>)</span>
304
- <span class='id builder'>builder</span> <span class='op'>=</span> <span class='const'>Nokogiri</span><span class='op'>::</span><span class='const'>XML</span><span class='op'>::</span><span class='const'>Builder</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='symbol'>:encoding</span> <span class='op'>=&gt;</span> <span class='const'>ENCODING</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id xml'>xml</span><span class='op'>|</span>
305
- <span class='id xml'>xml</span><span class='period'>.</span><span class='const'>Types</span><span class='lparen'>(</span><span class='symbol'>:xmlns</span> <span class='op'>=&gt;</span> <span class='const'>Axlsx</span><span class='op'>::</span><span class='const'>XML_NS_T</span><span class='rparen'>)</span> <span class='lbrace'>{</span>
306
- <span class='id each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id type'>type</span><span class='op'>|</span> <span class='id type'>type</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>
307
- <span class='rbrace'>}</span>
308
- <span class='kw'>end</span>
309
- <span class='id builder'>builder</span><span class='period'>.</span><span class='id to_xml'>to_xml</span>
310
- <span class='kw'>end</span></pre>
310
+ <span class='def def kw'>def</span> <span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='rparen token'>)</span>
311
+ <span class='builder identifier id'>builder</span> <span class='assign token'>=</span> <span class='Nokogiri constant id'>Nokogiri</span><span class='colon2 op'>::</span><span class='XML constant id'>XML</span><span class='colon2 op'>::</span><span class='Builder constant id'>Builder</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='symbol val'>:encoding</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='ENCODING constant id'>ENCODING</span><span class='rparen token'>)</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='xml identifier id'>xml</span><span class='bitor op'>|</span>
312
+ <span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='Types constant id'>Types</span><span class='lparen token'>(</span><span class='symbol val'>:xmlns</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='Axlsx constant id'>Axlsx</span><span class='colon2 op'>::</span><span class='XML_NS_T constant id'>XML_NS_T</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
313
+ <span class='each identifier id'>each</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='type identifier id'>type</span><span class='bitor op'>|</span> <span class='type identifier id'>type</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>
314
+ <span class='rbrace token'>}</span>
315
+ <span class='end end kw'>end</span>
316
+ <span class='builder identifier id'>builder</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span>
317
+ <span class='end end kw'>end</span>
318
+ </pre>
311
319
  </td>
312
320
  </tr>
313
321
  </table>
@@ -318,9 +326,9 @@ package package.</p>
318
326
  </div>
319
327
 
320
328
  <div id="footer">
321
- Generated on Sat Nov 26 13:16:40 2011 by
329
+ Generated on Sun Nov 27 21:54:18 2011 by
322
330
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
323
- 0.7.3 (ruby-1.9.3).
331
+ 0.7.3 (ruby-1.8.7).
324
332
  </div>
325
333
 
326
334
  </body>
@@ -97,13 +97,15 @@
97
97
 
98
98
  <div class="note notetag">
99
99
  <strong>Note:</strong>
100
- <div class='inline'>
101
- <p>Packages manage their own core object.</p>
100
+ <div class='inline'><p>
101
+ Packages manage their own core object.
102
+ </p>
102
103
  </div>
103
104
  </div>
104
105
 
105
-
106
- <p>The core object for the package.</p>
106
+ <p>
107
+ The core object for the package.
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 author of the document.</p>
147
+ <span class="summary_desc"><div class='inline'><p>
148
+ The author of the document.
149
+ </p>
147
150
  </div></span>
148
151
 
149
152
  </li>
@@ -180,8 +183,9 @@
180
183
 
181
184
 
182
185
 
183
- <span class="summary_desc"><div class='inline'>
184
- <p>Creates a new Core object.</p>
186
+ <span class="summary_desc"><div class='inline'><p>
187
+ Creates a new Core object.
188
+ </p>
185
189
  </div></span>
186
190
 
187
191
  </li>
@@ -203,8 +207,9 @@
203
207
 
204
208
 
205
209
 
206
- <span class="summary_desc"><div class='inline'>
207
- <p>Serializes the core object.</p>
210
+ <span class="summary_desc"><div class='inline'><p>
211
+ Serializes the core object.
212
+ </p>
208
213
  </div></span>
209
214
 
210
215
  </li>
@@ -225,8 +230,9 @@
225
230
 
226
231
  </p><div class="docstring">
227
232
  <div class="discussion">
228
-
229
- <p>Creates a new Core object.</p>
233
+ <p>
234
+ Creates a new Core object.
235
+ </p>
230
236
 
231
237
 
232
238
  </div>
@@ -247,8 +253,9 @@
247
253
 
248
254
 
249
255
  &mdash;
250
- <div class='inline'>
251
- <p>a customizable set of options</p>
256
+ <div class='inline'><p>
257
+ a customizable set of options
258
+ </p>
252
259
  </div>
253
260
 
254
261
  </li>
@@ -287,9 +294,10 @@
287
294
  <td>
288
295
  <pre class="code"><span class="info file"># File 'lib/axlsx/doc_props/core.rb', line 12</span>
289
296
 
290
- <span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
291
- <span class='ivar'>@creator</span> <span class='op'>=</span> <span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:creator</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>axlsx</span><span class='tstring_end'>'</span></span>
292
- <span class='kw'>end</span></pre>
297
+ <span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen 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>
298
+ <span class='@creator ivar id'>@creator</span> <span class='assign token'>=</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:creator</span><span class='rbrack token'>]</span> <span class='orop op'>||</span> <span class='string val'>'axlsx'</span>
299
+ <span class='end end kw'>end</span>
300
+ </pre>
293
301
  </td>
294
302
  </tr>
295
303
  </table>
@@ -312,8 +320,9 @@
312
320
 
313
321
  </p><div class="docstring">
314
322
  <div class="discussion">
315
-
316
- <p>The author of the document. By default this is 'axlsx'</p>
323
+ <p>
324
+ The author of the document. By default this is &#8216;axlsx&#8217;
325
+ </p>
317
326
 
318
327
 
319
328
  </div>
@@ -347,9 +356,10 @@
347
356
  <td>
348
357
  <pre class="code"><span class="info file"># File 'lib/axlsx/doc_props/core.rb', line 8</span>
349
358
 
350
- <span class='kw'>def</span> <span class='id creator'>creator</span>
351
- <span class='ivar'>@creator</span>
352
- <span class='kw'>end</span></pre>
359
+ <span class='def def kw'>def</span> <span class='creator identifier id'>creator</span>
360
+ <span class='@creator ivar id'>@creator</span>
361
+ <span class='end end kw'>end</span>
362
+ </pre>
353
363
  </td>
354
364
  </tr>
355
365
  </table>
@@ -371,9 +381,10 @@
371
381
 
372
382
  </p><div class="docstring">
373
383
  <div class="discussion">
374
-
375
- <p>Serializes the core object. The created dcterms item is set to the current
376
- time when this method is called.</p>
384
+ <p>
385
+ Serializes the core object. The created dcterms item is set to the current
386
+ time when this method is called.
387
+ </p>
377
388
 
378
389
 
379
390
  </div>
@@ -419,21 +430,22 @@ time when this method is called.</p>
419
430
  <td>
420
431
  <pre class="code"><span class="info file"># File 'lib/axlsx/doc_props/core.rb', line 18</span>
421
432
 
422
- <span class='kw'>def</span> <span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='rparen'>)</span>
423
- <span class='id builder'>builder</span> <span class='op'>=</span> <span class='const'>Nokogiri</span><span class='op'>::</span><span class='const'>XML</span><span class='op'>::</span><span class='const'>Builder</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='symbol'>:encoding</span> <span class='op'>=&gt;</span> <span class='const'>ENCODING</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id xml'>xml</span><span class='op'>|</span>
424
- <span class='id xml'>xml</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp:coreProperties</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
425
- <span class='symbol'>:xmlns:cp</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='const'>CORE_NS</span><span class='comma'>,</span>
426
- <span class='symbol'>:xmlns:dc</span><span class='tstring_end'>'</span></span> <span class='op'>=&gt;</span> <span class='const'>CORE_NS_DC</span><span class='comma'>,</span>
427
- <span class='symbol'>:xmlns:dcmitype</span><span class='tstring_end'>'</span></span><span class='op'>=&gt;</span><span class='const'>CORE_NS_DCMIT</span><span class='comma'>,</span>
428
- <span class='symbol'>:xmlns:dcterms</span><span class='tstring_end'>'</span></span><span class='op'>=&gt;</span><span class='const'>CORE_NS_DCT</span><span class='comma'>,</span>
429
- <span class='symbol'>:xmlns:xsi</span><span class='tstring_end'>'</span></span><span class='op'>=&gt;</span><span class='const'>CORE_NS_XSI</span><span class='rparen'>)</span> <span class='lbrace'>{</span>
430
- <span class='id xml'>xml</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>dc</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id creator'>creator</span> <span class='kw'>self</span><span class='period'>.</span><span class='id creator'>creator</span>
431
- <span class='id xml'>xml</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>dcterms</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id created'>created</span> <span class='const'>Time</span><span class='period'>.</span><span class='id now'>now</span><span class='period'>.</span><span class='id strftime'>strftime</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>%Y-%m-%dT%H:%M:%S</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='comma'>,</span> <span class='symbol'>:xsi:type</span><span class='tstring_end'>'</span></span><span class='op'>=&gt;</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>dcterms:W3CDTF</span><span class='tstring_end'>&quot;</span></span>
432
- <span class='id xml'>xml</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id revision'>revision</span> <span class='int'>0</span>
433
- <span class='rbrace'>}</span>
434
- <span class='kw'>end</span>
435
- <span class='id builder'>builder</span><span class='period'>.</span><span class='id to_xml'>to_xml</span>
436
- <span class='kw'>end</span></pre>
433
+ <span class='def def kw'>def</span> <span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='rparen token'>)</span>
434
+ <span class='builder identifier id'>builder</span> <span class='assign token'>=</span> <span class='Nokogiri constant id'>Nokogiri</span><span class='colon2 op'>::</span><span class='XML constant id'>XML</span><span class='colon2 op'>::</span><span class='Builder constant id'>Builder</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='symbol val'>:encoding</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='ENCODING constant id'>ENCODING</span><span class='rparen token'>)</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='xml identifier id'>xml</span><span class='bitor op'>|</span>
435
+ <span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'cp:coreProperties'</span><span class='comma token'>,</span>
436
+ <span class='symbol val'>:&quot;xmlns:cp&quot;</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='CORE_NS constant id'>CORE_NS</span><span class='comma token'>,</span>
437
+ <span class='symbol val'>:'xmlns:dc'</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='CORE_NS_DC constant id'>CORE_NS_DC</span><span class='comma token'>,</span>
438
+ <span class='symbol val'>:'xmlns:dcmitype'</span><span class='assign token'>=</span><span class='gt op'>&gt;</span><span class='CORE_NS_DCMIT constant id'>CORE_NS_DCMIT</span><span class='comma token'>,</span>
439
+ <span class='symbol val'>:'xmlns:dcterms'</span><span class='assign token'>=</span><span class='gt op'>&gt;</span><span class='CORE_NS_DCT constant id'>CORE_NS_DCT</span><span class='comma token'>,</span>
440
+ <span class='symbol val'>:'xmlns:xsi'</span><span class='assign token'>=</span><span class='gt op'>&gt;</span><span class='CORE_NS_XSI constant id'>CORE_NS_XSI</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
441
+ <span class='xml identifier id'>xml</span><span class='lbrack token'>[</span><span class='string val'>'dc'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='creator identifier id'>creator</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='creator identifier id'>creator</span>
442
+ <span class='xml identifier id'>xml</span><span class='lbrack token'>[</span><span class='string val'>'dcterms'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='created identifier id'>created</span> <span class='Time constant id'>Time</span><span class='dot token'>.</span><span class='now identifier id'>now</span><span class='dot token'>.</span><span class='strftime identifier id'>strftime</span><span class='lparen token'>(</span><span class='string val'>'%Y-%m-%dT%H:%M:%S'</span><span class='rparen token'>)</span><span class='comma token'>,</span> <span class='symbol val'>:'xsi:type'</span><span class='assign token'>=</span><span class='gt op'>&gt;</span><span class='string val'>&quot;dcterms:W3CDTF&quot;</span>
443
+ <span class='xml identifier id'>xml</span><span class='lbrack token'>[</span><span class='string val'>'cp'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='revision identifier id'>revision</span> <span class='integer val'>0</span>
444
+ <span class='rbrace token'>}</span>
445
+ <span class='end end kw'>end</span>
446
+ <span class='builder identifier id'>builder</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span>
447
+ <span class='end end kw'>end</span>
448
+ </pre>
437
449
  </td>
438
450
  </tr>
439
451
  </table>
@@ -444,9 +456,9 @@ time when this method is called.</p>
444
456
  </div>
445
457
 
446
458
  <div id="footer">
447
- Generated on Sat Nov 26 13:16:37 2011 by
459
+ Generated on Sun Nov 27 21:54:29 2011 by
448
460
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
449
- 0.7.3 (ruby-1.9.3).
461
+ 0.7.3 (ruby-1.8.7).
450
462
  </div>
451
463
 
452
464
  </body>