axlsx 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. data/CHANGELOG.md +14 -0
  2. data/README.md +22 -21
  3. data/Rakefile +1 -1
  4. data/axlsx.gemspec +36 -0
  5. data/doc/Axlsx.html +373 -559
  6. data/doc/Axlsx/App.html +257 -360
  7. data/doc/Axlsx/Axis.html +113 -144
  8. data/doc/Axlsx/Bar3DChart.html +122 -152
  9. data/doc/Axlsx/BarSeries.html +67 -81
  10. data/doc/Axlsx/Border.html +96 -119
  11. data/doc/Axlsx/BorderPr.html +89 -114
  12. data/doc/Axlsx/CatAxis.html +79 -104
  13. data/doc/Axlsx/CatAxisData.html +40 -54
  14. data/doc/Axlsx/Cell.html +193 -679
  15. data/doc/Axlsx/CellAlignment.html +116 -157
  16. data/doc/Axlsx/CellProtection.html +50 -68
  17. data/doc/Axlsx/CellStyle.html +78 -106
  18. data/doc/Axlsx/Chart.html +361 -432
  19. data/doc/Axlsx/Color.html +56 -78
  20. data/doc/Axlsx/ContentType.html +28 -41
  21. data/doc/Axlsx/Core.html +43 -55
  22. data/doc/Axlsx/DataTypeValidator.html +34 -43
  23. data/doc/Axlsx/Default.html +55 -81
  24. data/doc/Axlsx/Drawing.html +322 -412
  25. data/doc/Axlsx/Fill.html +34 -47
  26. data/doc/Axlsx/Font.html +157 -207
  27. data/doc/Axlsx/GradientFill.html +90 -122
  28. data/doc/Axlsx/GradientStop.html +36 -50
  29. data/doc/Axlsx/GraphicFrame.html +106 -130
  30. data/doc/Axlsx/Line3DChart.html +108 -134
  31. data/doc/Axlsx/LineSeries.html +58 -67
  32. data/doc/Axlsx/Marker.html +84 -111
  33. data/doc/Axlsx/NumFmt.html +83 -102
  34. data/doc/Axlsx/OneCellAnchor.html +158 -196
  35. data/doc/Axlsx/Override.html +60 -92
  36. data/doc/Axlsx/Package.html +190 -759
  37. data/doc/Axlsx/PatternFill.html +78 -99
  38. data/doc/Axlsx/Pic.html +451 -405
  39. data/doc/Axlsx/Pie3DChart.html +33 -42
  40. data/doc/Axlsx/PieSeries.html +68 -80
  41. data/doc/Axlsx/RegexValidator.html +15 -20
  42. data/doc/Axlsx/Relationship.html +49 -66
  43. data/doc/Axlsx/Relationships.html +28 -41
  44. data/doc/Axlsx/RestrictionValidator.html +23 -32
  45. data/doc/Axlsx/Row.html +132 -161
  46. data/doc/Axlsx/Scaling.html +71 -90
  47. data/doc/Axlsx/SerAxis.html +61 -79
  48. data/doc/Axlsx/Series.html +125 -201
  49. data/doc/Axlsx/SeriesTitle.html +26 -31
  50. data/doc/Axlsx/Styles.html +286 -355
  51. data/doc/Axlsx/TableStyle.html +62 -87
  52. data/doc/Axlsx/TableStyleElement.html +84 -104
  53. data/doc/Axlsx/TableStyles.html +59 -82
  54. data/doc/Axlsx/Title.html +58 -155
  55. data/doc/Axlsx/TwoCellAnchor.html +165 -204
  56. data/doc/Axlsx/ValAxis.html +39 -53
  57. data/doc/Axlsx/ValAxisData.html +29 -39
  58. data/doc/Axlsx/View3D.html +93 -122
  59. data/doc/Axlsx/Workbook.html +359 -362
  60. data/doc/Axlsx/Worksheet.html +471 -816
  61. data/doc/Axlsx/Xf.html +341 -296
  62. data/doc/_index.html +7 -11
  63. data/doc/class_list.html +1 -1
  64. data/doc/file.LICENSE.html +86 -0
  65. data/doc/file.README.html +105 -107
  66. data/doc/file_list.html +3 -0
  67. data/doc/frames.html +1 -1
  68. data/doc/index.html +105 -107
  69. data/doc/method_list.html +426 -602
  70. data/doc/top-level-namespace.html +3 -3
  71. data/examples/example.rb +20 -1
  72. data/lib/axlsx.rb +20 -15
  73. data/lib/axlsx/content_type/default.rb +8 -3
  74. data/lib/axlsx/content_type/override.rb +11 -4
  75. data/lib/axlsx/doc_props/app.rb +53 -23
  76. data/lib/axlsx/drawing/axis.rb +16 -5
  77. data/lib/axlsx/drawing/bar_3D_chart.rb +15 -7
  78. data/lib/axlsx/drawing/bar_series.rb +7 -5
  79. data/lib/axlsx/drawing/cat_axis.rb +10 -3
  80. data/lib/axlsx/drawing/chart.rb +21 -15
  81. data/lib/axlsx/drawing/drawing.rb +16 -30
  82. data/lib/axlsx/drawing/graphic_frame.rb +2 -4
  83. data/lib/axlsx/drawing/line_3D_chart.rb +5 -2
  84. data/lib/axlsx/drawing/line_series.rb +6 -5
  85. data/lib/axlsx/drawing/marker.rb +9 -5
  86. data/lib/axlsx/drawing/one_cell_anchor.rb +7 -7
  87. data/lib/axlsx/drawing/pic.rb +29 -37
  88. data/lib/axlsx/drawing/pie_series.rb +7 -5
  89. data/lib/axlsx/drawing/scaling.rb +11 -5
  90. data/lib/axlsx/drawing/ser_axis.rb +6 -2
  91. data/lib/axlsx/drawing/series.rb +11 -11
  92. data/lib/axlsx/drawing/series_title.rb +1 -1
  93. data/lib/axlsx/drawing/title.rb +5 -12
  94. data/lib/axlsx/drawing/two_cell_anchor.rb +2 -3
  95. data/lib/axlsx/drawing/val_axis.rb +2 -2
  96. data/lib/axlsx/drawing/view_3D.rb +16 -9
  97. data/lib/axlsx/package.rb +25 -27
  98. data/lib/axlsx/rels/relationship.rb +4 -2
  99. data/lib/axlsx/stylesheet/border.rb +9 -4
  100. data/lib/axlsx/stylesheet/border_pr.rb +7 -4
  101. data/lib/axlsx/stylesheet/cell_alignment.rb +18 -9
  102. data/lib/axlsx/stylesheet/cell_protection.rb +5 -2
  103. data/lib/axlsx/stylesheet/cell_style.rb +12 -7
  104. data/lib/axlsx/stylesheet/color.rb +8 -6
  105. data/lib/axlsx/stylesheet/fill.rb +2 -1
  106. data/lib/axlsx/stylesheet/font.rb +24 -13
  107. data/lib/axlsx/stylesheet/gradient_fill.rb +16 -10
  108. data/lib/axlsx/stylesheet/gradient_stop.rb +5 -3
  109. data/lib/axlsx/stylesheet/num_fmt.rb +4 -2
  110. data/lib/axlsx/stylesheet/pattern_fill.rb +6 -4
  111. data/lib/axlsx/stylesheet/styles.rb +12 -12
  112. data/lib/axlsx/stylesheet/table_style.rb +6 -3
  113. data/lib/axlsx/stylesheet/table_style_element.rb +9 -4
  114. data/lib/axlsx/stylesheet/table_styles.rb +4 -4
  115. data/lib/axlsx/stylesheet/xf.rb +52 -31
  116. data/lib/axlsx/util/validators.rb +3 -3
  117. data/lib/axlsx/version.rb +1 -1
  118. data/lib/axlsx/workbook/workbook.rb +8 -9
  119. data/lib/axlsx/workbook/worksheet/cell.rb +25 -16
  120. data/lib/axlsx/workbook/worksheet/row.rb +2 -4
  121. data/lib/axlsx/workbook/worksheet/worksheet.rb +23 -32
  122. data/test/drawing/tc_one_cell_anchor.rb +1 -1
  123. metadata +135 -165
  124. data/doc/Axlsx/SimpleTypedList.html +0 -1686
  125. data/lib/schema/dc.xsd~ +0 -118
  126. data/lib/schema/dcterms.xsd~ +0 -331
  127. data/lib/schema/opc-coreProperties.xsd~ +0 -50
  128. data/test/drawing/tc_line_series.tc~ +0 -34
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Axlsx::RegexValidator
8
8
 
9
- &mdash; Documentation by YARD 0.7.3
9
+ &mdash; AXLSX
10
10
 
11
11
  </title>
12
12
 
@@ -94,9 +94,8 @@
94
94
 
95
95
  <h2>Overview</h2><div class="docstring">
96
96
  <div class="discussion">
97
- <p>
98
- Validates the value against the regular expression provided.
99
- </p>
97
+
98
+ <p>Validates the value against the regular expression provided.</p>
100
99
 
101
100
 
102
101
  </div>
@@ -174,10 +173,9 @@ Validates the value against the regular expression provided.
174
173
 
175
174
 
176
175
  &mdash;
177
- <div class='inline'><p>
178
- The name of what is being validated. This is included in the output when
179
- the value is invalid
180
- </p>
176
+ <div class='inline'>
177
+ <p>The name of what is being validated. This is included in the output when
178
+ the value is invalid</p>
181
179
  </div>
182
180
 
183
181
  </li>
@@ -192,9 +190,8 @@ the value is invalid
192
190
 
193
191
 
194
192
  &mdash;
195
- <div class='inline'><p>
196
- The regular expression to evaluate
197
- </p>
193
+ <div class='inline'>
194
+ <p>The regular expression to evaluate</p>
198
195
  </div>
199
196
 
200
197
  </li>
@@ -209,9 +206,8 @@ The regular expression to evaluate
209
206
 
210
207
 
211
208
  &mdash;
212
- <div class='inline'><p>
213
- The value to validate.
214
- </p>
209
+ <div class='inline'>
210
+ <p>The value to validate.</p>
215
211
  </div>
216
212
 
217
213
  </li>
@@ -245,10 +241,9 @@ The value to validate.
245
241
  <td>
246
242
  <pre class="code"><span class="info file"># File 'lib/axlsx/util/validators.rb', line 21</span>
247
243
 
248
- <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='validate identifier id'>validate</span><span class='lparen token'>(</span><span class='name identifier id'>name</span><span class='comma token'>,</span> <span class='regex identifier id'>regex</span><span class='comma token'>,</span> <span class='v identifier id'>v</span><span class='rparen token'>)</span>
249
- <span class='raise identifier id'>raise</span> <span class='ArgumentError constant id'>ArgumentError</span><span class='comma token'>,</span> <span class='lparen token'>(</span><span class='ERR_REGEX constant id'>ERR_REGEX</span> <span class='mod op'>%</span> <span class='lbrack token'>[</span><span class='v identifier id'>v</span><span class='dot token'>.</span><span class='inspect identifier id'>inspect</span><span class='comma token'>,</span> <span class='regex identifier id'>regex</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='lparen token'>(</span><span class='v identifier id'>v</span><span class='dot token'>.</span><span class='respond_to? fid id'>respond_to?</span><span class='lparen token'>(</span><span class='symbol val'>:=~</span><span class='rparen token'>)</span> <span class='andop op'>&amp;&amp;</span> <span class='v identifier id'>v</span> <span class='match op'>=~</span> <span class='regex identifier id'>regex</span><span class='rparen token'>)</span>
250
- <span class='end end kw'>end</span>
251
- </pre>
244
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id validate'>validate</span><span class='lparen'>(</span><span class='id name'>name</span><span class='comma'>,</span> <span class='id regex'>regex</span><span class='comma'>,</span> <span class='id v'>v</span><span class='rparen'>)</span>
245
+ <span class='id raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='lparen'>(</span><span class='const'>ERR_REGEX</span> <span class='op'>%</span> <span class='lbracket'>[</span><span class='id v'>v</span><span class='period'>.</span><span class='id inspect'>inspect</span><span class='comma'>,</span> <span class='id regex'>regex</span><span class='period'>.</span><span class='id to_s'>to_s</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='lparen'>(</span><span class='id v'>v</span><span class='period'>.</span><span class='id respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='symbol'>:=~</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='id v'>v</span> <span class='op'>=~</span> <span class='id regex'>regex</span><span class='rparen'>)</span>
246
+ <span class='kw'>end</span></pre>
252
247
  </td>
253
248
  </tr>
254
249
  </table>
@@ -259,9 +254,9 @@ The value to validate.
259
254
  </div>
260
255
 
261
256
  <div id="footer">
262
- Generated on Wed Nov 23 21:47:54 2011 by
257
+ Generated on Sat Nov 26 13:16:37 2011 by
263
258
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
264
- 0.7.3 (ruby-1.8.7).
259
+ 0.7.3 (ruby-1.9.3).
265
260
  </div>
266
261
 
267
262
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Axlsx::Relationship
8
8
 
9
- &mdash; Documentation by YARD 0.7.3
9
+ &mdash; AXLSX
10
10
 
11
11
  </title>
12
12
 
@@ -97,15 +97,13 @@
97
97
 
98
98
  <div class="note notetag">
99
99
  <strong>Note:</strong>
100
- <div class='inline'><p>
101
- Packages automatcially manage relationships.
102
- </p>
100
+ <div class='inline'>
101
+ <p>Packages automatcially manage relationships.</p>
103
102
  </div>
104
103
  </div>
105
104
 
106
- <p>
107
- A relationship defines a reference between package parts.
108
- </p>
105
+
106
+ <p>A relationship defines a reference between package parts.</p>
109
107
 
110
108
 
111
109
  </div>
@@ -137,9 +135,8 @@ A relationship defines a reference between package parts.
137
135
 
138
136
 
139
137
 
140
- <span class="summary_desc"><div class='inline'><p>
141
- The location of the relationship target.
142
- </p>
138
+ <span class="summary_desc"><div class='inline'>
139
+ <p>The location of the relationship target.</p>
143
140
  </div></span>
144
141
 
145
142
  </li>
@@ -164,9 +161,8 @@ The location of the relationship target.
164
161
 
165
162
 
166
163
 
167
- <span class="summary_desc"><div class='inline'><p>
168
- The type of relationship.
169
- </p>
164
+ <span class="summary_desc"><div class='inline'>
165
+ <p>The type of relationship.</p>
170
166
  </div></span>
171
167
 
172
168
  </li>
@@ -203,9 +199,8 @@ The type of relationship.
203
199
 
204
200
 
205
201
 
206
- <span class="summary_desc"><div class='inline'><p>
207
- A new instance of Relationship.
208
- </p>
202
+ <span class="summary_desc"><div class='inline'>
203
+ <p>A new instance of Relationship.</p>
209
204
  </div></span>
210
205
 
211
206
  </li>
@@ -227,9 +222,8 @@ A new instance of Relationship.
227
222
 
228
223
 
229
224
 
230
- <span class="summary_desc"><div class='inline'><p>
231
- Serializes the relationship.
232
- </p>
225
+ <span class="summary_desc"><div class='inline'>
226
+ <p>Serializes the relationship.</p>
233
227
  </div></span>
234
228
 
235
229
  </li>
@@ -250,9 +244,8 @@ Serializes the relationship.
250
244
 
251
245
  </p><div class="docstring">
252
246
  <div class="discussion">
253
- <p>
254
- A new instance of Relationship
255
- </p>
247
+
248
+ <p>A new instance of Relationship</p>
256
249
 
257
250
 
258
251
  </div>
@@ -274,11 +267,10 @@ A new instance of Relationship
274
267
  <td>
275
268
  <pre class="code"><span class="info file"># File 'lib/axlsx/rels/relationship.rb', line 24</span>
276
269
 
277
- <span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='type identifier id'>type</span><span class='comma token'>,</span> <span class='target identifier id'>target</span><span class='rparen token'>)</span>
278
- <span class='self self kw'>self</span><span class='dot token'>.</span><span class='Target constant id'>Target</span><span class='assign token'>=</span><span class='target identifier id'>target</span>
279
- <span class='self self kw'>self</span><span class='dot token'>.</span><span class='Type constant id'>Type</span><span class='assign token'>=</span><span class='type identifier id'>type</span>
280
- <span class='end end kw'>end</span>
281
- </pre>
270
+ <span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id type'>type</span><span class='comma'>,</span> <span class='id target'>target</span><span class='rparen'>)</span>
271
+ <span class='kw'>self</span><span class='period'>.</span><span class='const'>Target</span><span class='op'>=</span><span class='id target'>target</span>
272
+ <span class='kw'>self</span><span class='period'>.</span><span class='const'>Type</span><span class='op'>=</span><span class='id type'>type</span>
273
+ <span class='kw'>end</span></pre>
282
274
  </td>
283
275
  </tr>
284
276
  </table>
@@ -301,9 +293,8 @@ A new instance of Relationship
301
293
 
302
294
  </p><div class="docstring">
303
295
  <div class="discussion">
304
- <p>
305
- The location of the relationship target
306
- </p>
296
+
297
+ <p>The location of the relationship target</p>
307
298
 
308
299
 
309
300
  </div>
@@ -337,10 +328,9 @@ The location of the relationship target
337
328
  <td>
338
329
  <pre class="code"><span class="info file"># File 'lib/axlsx/rels/relationship.rb', line 8</span>
339
330
 
340
- <span class='def def kw'>def</span> <span class='Target constant id'>Target</span>
341
- <span class='@Target ivar id'>@Target</span>
342
- <span class='end end kw'>end</span>
343
- </pre>
331
+ <span class='kw'>def</span> <span class='const'>Target</span>
332
+ <span class='ivar'>@Target</span>
333
+ <span class='kw'>end</span></pre>
344
334
  </td>
345
335
  </tr>
346
336
  </table>
@@ -361,15 +351,13 @@ The location of the relationship target
361
351
 
362
352
  <div class="note notetag">
363
353
  <strong>Note:</strong>
364
- <div class='inline'><p>
365
- Supported types are defined as constants in Axlsx:
366
- </p>
354
+ <div class='inline'>
355
+ <p>Supported types are defined as constants in Axlsx:</p>
367
356
  </div>
368
357
  </div>
369
358
 
370
- <p>
371
- The type of relationship
372
- </p>
359
+
360
+ <p>The type of relationship</p>
373
361
 
374
362
 
375
363
  </div>
@@ -428,10 +416,9 @@ The type of relationship
428
416
  <td>
429
417
  <pre class="code"><span class="info file"># File 'lib/axlsx/rels/relationship.rb', line 23</span>
430
418
 
431
- <span class='def def kw'>def</span> <span class='Type constant id'>Type</span>
432
- <span class='@Type ivar id'>@Type</span>
433
- <span class='end end kw'>end</span>
434
- </pre>
419
+ <span class='kw'>def</span> <span class='const'>Type</span>
420
+ <span class='ivar'>@Type</span>
421
+ <span class='kw'>end</span></pre>
435
422
  </td>
436
423
  </tr>
437
424
  </table>
@@ -453,9 +440,8 @@ The type of relationship
453
440
 
454
441
  </p><div class="docstring">
455
442
  <div class="discussion">
456
- <p>
457
- Serializes the relationship
458
- </p>
443
+
444
+ <p>Serializes the relationship</p>
459
445
 
460
446
 
461
447
  </div>
@@ -474,9 +460,8 @@ Serializes the relationship
474
460
 
475
461
 
476
462
  &mdash;
477
- <div class='inline'><p>
478
- The document builder instance this objects xml will be added to.
479
- </p>
463
+ <div class='inline'>
464
+ <p>The document builder instance this objects xml will be added to.</p>
480
465
  </div>
481
466
 
482
467
  </li>
@@ -491,9 +476,8 @@ The document builder instance this objects xml will be added to.
491
476
 
492
477
 
493
478
  &mdash;
494
- <div class='inline'><p>
495
- the reference id of the object.
496
- </p>
479
+ <div class='inline'>
480
+ <p>the reference id of the object.</p>
497
481
  </div>
498
482
 
499
483
  </li>
@@ -520,21 +504,20 @@ the reference id of the object.
520
504
  <pre class="lines">
521
505
 
522
506
 
523
- 36
524
- 37
525
507
  38
526
508
  39
527
- 40</pre>
509
+ 40
510
+ 41
511
+ 42</pre>
528
512
  </td>
529
513
  <td>
530
- <pre class="code"><span class="info file"># File 'lib/axlsx/rels/relationship.rb', line 36</span>
531
-
532
- <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='comma token'>,</span> <span class='rId identifier id'>rId</span><span class='rparen token'>)</span>
533
- <span class='h identifier id'>h</span> <span class='assign token'>=</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='instance_values identifier id'>instance_values</span>
534
- <span class='h identifier id'>h</span><span class='lbrack token'>[</span><span class='symbol val'>:Id</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='rId identifier id'>rId</span>
535
- <span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='Relationship constant id'>Relationship</span><span class='lparen token'>(</span><span class='h identifier id'>h</span><span class='rparen token'>)</span>
536
- <span class='end end kw'>end</span>
537
- </pre>
514
+ <pre class="code"><span class="info file"># File 'lib/axlsx/rels/relationship.rb', line 38</span>
515
+
516
+ <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='comma'>,</span> <span class='id rId'>rId</span><span class='rparen'>)</span>
517
+ <span class='id h'>h</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id instance_values'>instance_values</span>
518
+ <span class='id h'>h</span><span class='lbracket'>[</span><span class='symbol'>:Id</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id rId'>rId</span>
519
+ <span class='id xml'>xml</span><span class='period'>.</span><span class='const'>Relationship</span><span class='lparen'>(</span><span class='id h'>h</span><span class='rparen'>)</span>
520
+ <span class='kw'>end</span></pre>
538
521
  </td>
539
522
  </tr>
540
523
  </table>
@@ -545,9 +528,9 @@ the reference id of the object.
545
528
  </div>
546
529
 
547
530
  <div id="footer">
548
- Generated on Wed Nov 23 21:48:06 2011 by
531
+ Generated on Sat Nov 26 13:16:38 2011 by
549
532
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
550
- 0.7.3 (ruby-1.8.7).
533
+ 0.7.3 (ruby-1.9.3).
551
534
  </div>
552
535
 
553
536
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Axlsx::Relationships
8
8
 
9
- &mdash; Documentation by YARD 0.7.3
9
+ &mdash; AXLSX
10
10
 
11
11
  </title>
12
12
 
@@ -99,16 +99,14 @@
99
99
 
100
100
  <div class="note notetag">
101
101
  <strong>Note:</strong>
102
- <div class='inline'><p>
103
- The package automatically manages releationships.
104
- </p>
102
+ <div class='inline'>
103
+ <p>The package automatically manages releationships.</p>
105
104
  </div>
106
105
  </div>
107
106
 
108
- <p>
109
- Relationships are a collection of Relations that define how package parts
110
- are related.
111
- </p>
107
+
108
+ <p>Relationships are a collection of Relations that define how package parts
109
+ are related.</p>
112
110
 
113
111
 
114
112
  </div>
@@ -159,9 +157,8 @@ are related.
159
157
 
160
158
 
161
159
 
162
- <span class="summary_desc"><div class='inline'><p>
163
- Creates a new Relationships collection based on SimpleTypedList.
164
- </p>
160
+ <span class="summary_desc"><div class='inline'>
161
+ <p>Creates a new Relationships collection based on SimpleTypedList.</p>
165
162
  </div></span>
166
163
 
167
164
  </li>
@@ -183,9 +180,8 @@ Creates a new Relationships collection based on SimpleTypedList.
183
180
 
184
181
 
185
182
 
186
- <span class="summary_desc"><div class='inline'><p>
187
- Serializes the relationships document.
188
- </p>
183
+ <span class="summary_desc"><div class='inline'>
184
+ <p>Serializes the relationships document.</p>
189
185
  </div></span>
190
186
 
191
187
  </li>
@@ -199,12 +195,7 @@ Serializes the relationships document.
199
195
 
200
196
 
201
197
 
202
-
203
-
204
-
205
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></h3>
206
- <p class="inherited"><span class='object_link'><a href="SimpleTypedList.html#%3C%3C-instance_method" title="Axlsx::SimpleTypedList#&lt;&lt; (method)">#<<</a></span>, <span class='object_link'><a href="SimpleTypedList.html#%3D%3D-instance_method" title="Axlsx::SimpleTypedList#== (method)">#==</a></span>, <span class='object_link'><a href="SimpleTypedList.html#%5B%5D%3D-instance_method" title="Axlsx::SimpleTypedList#[]= (method)">#[]=</a></span>, <span class='object_link'><a href="SimpleTypedList.html#delete-instance_method" title="Axlsx::SimpleTypedList#delete (method)">#delete</a></span>, <span class='object_link'><a href="SimpleTypedList.html#delete_at-instance_method" title="Axlsx::SimpleTypedList#delete_at (method)">#delete_at</a></span>, <span class='object_link'><a href="SimpleTypedList.html#lock-instance_method" title="Axlsx::SimpleTypedList#lock (method)">#lock</a></span>, <span class='object_link'><a href="SimpleTypedList.html#method_missing-instance_method" title="Axlsx::SimpleTypedList#method_missing (method)">#method_missing</a></span>, <span class='object_link'><a href="SimpleTypedList.html#protected%3F-instance_method" title="Axlsx::SimpleTypedList#protected? (method)">#protected?</a></span>, <span class='object_link'><a href="SimpleTypedList.html#push-instance_method" title="Axlsx::SimpleTypedList#push (method)">#push</a></span>, <span class='object_link'><a href="SimpleTypedList.html#unlock-instance_method" title="Axlsx::SimpleTypedList#unlock (method)">#unlock</a></span></p>
207
- <div id="constructor_details" class="method_details_list">
198
+ <div id="constructor_details" class="method_details_list">
208
199
  <h2>Constructor Details</h2>
209
200
 
210
201
  <div class="method_details first">
@@ -216,9 +207,8 @@ Serializes the relationships document.
216
207
 
217
208
  </p><div class="docstring">
218
209
  <div class="discussion">
219
- <p>
220
- Creates a new Relationships collection based on SimpleTypedList
221
- </p>
210
+
211
+ <p>Creates a new Relationships collection based on SimpleTypedList</p>
222
212
 
223
213
 
224
214
  </div>
@@ -239,10 +229,9 @@ Creates a new Relationships collection based on SimpleTypedList
239
229
  <td>
240
230
  <pre class="code"><span class="info file"># File 'lib/axlsx/rels/relationships.rb', line 9</span>
241
231
 
242
- <span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span>
243
- <span class='super super kw'>super</span> <span class='Relationship constant id'>Relationship</span>
244
- <span class='end end kw'>end</span>
245
- </pre>
232
+ <span class='kw'>def</span> <span class='id initialize'>initialize</span>
233
+ <span class='kw'>super</span> <span class='const'>Relationship</span>
234
+ <span class='kw'>end</span></pre>
246
235
  </td>
247
236
  </tr>
248
237
  </table>
@@ -274,9 +263,8 @@ Creates a new Relationships collection based on SimpleTypedList
274
263
 
275
264
  </p><div class="docstring">
276
265
  <div class="discussion">
277
- <p>
278
- Serializes the relationships document.
279
- </p>
266
+
267
+ <p>Serializes the relationships document.</p>
280
268
 
281
269
 
282
270
  </div>
@@ -315,15 +303,14 @@ Serializes the relationships document.
315
303
  <td>
316
304
  <pre class="code"><span class="info file"># File 'lib/axlsx/rels/relationships.rb', line 15</span>
317
305
 
318
- <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>
319
- <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>
320
- <span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='Relationships constant id'>Relationships</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='RELS_R constant id'>RELS_R</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
321
- <span class='each_with_index identifier id'>each_with_index</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='rel identifier id'>rel</span><span class='comma token'>,</span> <span class='index identifier id'>index</span><span class='bitor op'>|</span> <span class='rel identifier id'>rel</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='comma token'>,</span> <span class='dstring node'>&quot;rId#{index+1}&quot;</span><span class='rparen token'>)</span> <span class='rbrace token'>}</span>
322
- <span class='rbrace token'>}</span>
323
- <span class='end end kw'>end</span>
324
- <span class='builder identifier id'>builder</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span>
325
- <span class='end end kw'>end</span>
326
- </pre>
306
+ <span class='kw'>def</span> <span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='rparen'>)</span>
307
+ <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>
308
+ <span class='id xml'>xml</span><span class='period'>.</span><span class='const'>Relationships</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'>RELS_R</span><span class='rparen'>)</span> <span class='lbrace'>{</span>
309
+ <span class='id each_with_index'>each_with_index</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id rel'>rel</span><span class='comma'>,</span> <span class='id index'>index</span><span class='op'>|</span> <span class='id rel'>rel</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='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>rId</span><span class='embexpr_beg'>#{</span><span class='id index'>index</span><span class='op'>+</span><span class='int'>1</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='rbrace'>}</span>
310
+ <span class='rbrace'>}</span>
311
+ <span class='kw'>end</span>
312
+ <span class='id builder'>builder</span><span class='period'>.</span><span class='id to_xml'>to_xml</span>
313
+ <span class='kw'>end</span></pre>
327
314
  </td>
328
315
  </tr>
329
316
  </table>
@@ -334,9 +321,9 @@ Serializes the relationships document.
334
321
  </div>
335
322
 
336
323
  <div id="footer">
337
- Generated on Wed Nov 23 21:47:58 2011 by
324
+ Generated on Sat Nov 26 13:16:38 2011 by
338
325
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
339
- 0.7.3 (ruby-1.8.7).
326
+ 0.7.3 (ruby-1.9.3).
340
327
  </div>
341
328
 
342
329
  </body>