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>Packages automatcially manage relationships.</p>
100
+ <div class='inline'><p>
101
+ Packages automatcially manage relationships.
102
+ </p>
102
103
  </div>
103
104
  </div>
104
105
 
105
-
106
- <p>A relationship defines a reference between package parts.</p>
106
+ <p>
107
+ A relationship defines a reference between package parts.
108
+ </p>
107
109
 
108
110
 
109
111
  </div>
@@ -135,8 +137,9 @@
135
137
 
136
138
 
137
139
 
138
- <span class="summary_desc"><div class='inline'>
139
- <p>The location of the relationship target.</p>
140
+ <span class="summary_desc"><div class='inline'><p>
141
+ The location of the relationship target.
142
+ </p>
140
143
  </div></span>
141
144
 
142
145
  </li>
@@ -161,8 +164,9 @@
161
164
 
162
165
 
163
166
 
164
- <span class="summary_desc"><div class='inline'>
165
- <p>The type of relationship.</p>
167
+ <span class="summary_desc"><div class='inline'><p>
168
+ The type of relationship.
169
+ </p>
166
170
  </div></span>
167
171
 
168
172
  </li>
@@ -199,8 +203,9 @@
199
203
 
200
204
 
201
205
 
202
- <span class="summary_desc"><div class='inline'>
203
- <p>A new instance of Relationship.</p>
206
+ <span class="summary_desc"><div class='inline'><p>
207
+ A new instance of Relationship.
208
+ </p>
204
209
  </div></span>
205
210
 
206
211
  </li>
@@ -222,8 +227,9 @@
222
227
 
223
228
 
224
229
 
225
- <span class="summary_desc"><div class='inline'>
226
- <p>Serializes the relationship.</p>
230
+ <span class="summary_desc"><div class='inline'><p>
231
+ Serializes the relationship.
232
+ </p>
227
233
  </div></span>
228
234
 
229
235
  </li>
@@ -244,8 +250,9 @@
244
250
 
245
251
  </p><div class="docstring">
246
252
  <div class="discussion">
247
-
248
- <p>A new instance of Relationship</p>
253
+ <p>
254
+ A new instance of Relationship
255
+ </p>
249
256
 
250
257
 
251
258
  </div>
@@ -267,10 +274,11 @@
267
274
  <td>
268
275
  <pre class="code"><span class="info file"># File 'lib/axlsx/rels/relationship.rb', line 24</span>
269
276
 
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>
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>
274
282
  </td>
275
283
  </tr>
276
284
  </table>
@@ -293,8 +301,9 @@
293
301
 
294
302
  </p><div class="docstring">
295
303
  <div class="discussion">
296
-
297
- <p>The location of the relationship target</p>
304
+ <p>
305
+ The location of the relationship target
306
+ </p>
298
307
 
299
308
 
300
309
  </div>
@@ -328,9 +337,10 @@
328
337
  <td>
329
338
  <pre class="code"><span class="info file"># File 'lib/axlsx/rels/relationship.rb', line 8</span>
330
339
 
331
- <span class='kw'>def</span> <span class='const'>Target</span>
332
- <span class='ivar'>@Target</span>
333
- <span class='kw'>end</span></pre>
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>
334
344
  </td>
335
345
  </tr>
336
346
  </table>
@@ -351,13 +361,15 @@
351
361
 
352
362
  <div class="note notetag">
353
363
  <strong>Note:</strong>
354
- <div class='inline'>
355
- <p>Supported types are defined as constants in Axlsx:</p>
364
+ <div class='inline'><p>
365
+ Supported types are defined as constants in Axlsx:
366
+ </p>
356
367
  </div>
357
368
  </div>
358
369
 
359
-
360
- <p>The type of relationship</p>
370
+ <p>
371
+ The type of relationship
372
+ </p>
361
373
 
362
374
 
363
375
  </div>
@@ -416,9 +428,10 @@
416
428
  <td>
417
429
  <pre class="code"><span class="info file"># File 'lib/axlsx/rels/relationship.rb', line 23</span>
418
430
 
419
- <span class='kw'>def</span> <span class='const'>Type</span>
420
- <span class='ivar'>@Type</span>
421
- <span class='kw'>end</span></pre>
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>
422
435
  </td>
423
436
  </tr>
424
437
  </table>
@@ -440,8 +453,9 @@
440
453
 
441
454
  </p><div class="docstring">
442
455
  <div class="discussion">
443
-
444
- <p>Serializes the relationship</p>
456
+ <p>
457
+ Serializes the relationship
458
+ </p>
445
459
 
446
460
 
447
461
  </div>
@@ -460,8 +474,9 @@
460
474
 
461
475
 
462
476
  &mdash;
463
- <div class='inline'>
464
- <p>The document builder instance this objects xml will be added to.</p>
477
+ <div class='inline'><p>
478
+ The document builder instance this objects xml will be added to.
479
+ </p>
465
480
  </div>
466
481
 
467
482
  </li>
@@ -476,8 +491,9 @@
476
491
 
477
492
 
478
493
  &mdash;
479
- <div class='inline'>
480
- <p>the reference id of the object.</p>
494
+ <div class='inline'><p>
495
+ the reference id of the object.
496
+ </p>
481
497
  </div>
482
498
 
483
499
  </li>
@@ -513,11 +529,12 @@
513
529
  <td>
514
530
  <pre class="code"><span class="info file"># File 'lib/axlsx/rels/relationship.rb', line 38</span>
515
531
 
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>
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>
521
538
  </td>
522
539
  </tr>
523
540
  </table>
@@ -528,9 +545,9 @@
528
545
  </div>
529
546
 
530
547
  <div id="footer">
531
- Generated on Sat Nov 26 13:16:38 2011 by
548
+ Generated on Sun Nov 27 21:54:22 2011 by
532
549
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
533
- 0.7.3 (ruby-1.9.3).
550
+ 0.7.3 (ruby-1.8.7).
534
551
  </div>
535
552
 
536
553
  </body>
@@ -99,14 +99,16 @@
99
99
 
100
100
  <div class="note notetag">
101
101
  <strong>Note:</strong>
102
- <div class='inline'>
103
- <p>The package automatically manages releationships.</p>
102
+ <div class='inline'><p>
103
+ The package automatically manages releationships.
104
+ </p>
104
105
  </div>
105
106
  </div>
106
107
 
107
-
108
- <p>Relationships are a collection of Relations that define how package parts
109
- are related.</p>
108
+ <p>
109
+ Relationships are a collection of Relations that define how package parts
110
+ are related.
111
+ </p>
110
112
 
111
113
 
112
114
  </div>
@@ -157,8 +159,9 @@ are related.</p>
157
159
 
158
160
 
159
161
 
160
- <span class="summary_desc"><div class='inline'>
161
- <p>Creates a new Relationships collection based on SimpleTypedList.</p>
162
+ <span class="summary_desc"><div class='inline'><p>
163
+ Creates a new Relationships collection based on SimpleTypedList.
164
+ </p>
162
165
  </div></span>
163
166
 
164
167
  </li>
@@ -180,8 +183,9 @@ are related.</p>
180
183
 
181
184
 
182
185
 
183
- <span class="summary_desc"><div class='inline'>
184
- <p>Serializes the relationships document.</p>
186
+ <span class="summary_desc"><div class='inline'><p>
187
+ Serializes the relationships document.
188
+ </p>
185
189
  </div></span>
186
190
 
187
191
  </li>
@@ -207,8 +211,9 @@ are related.</p>
207
211
 
208
212
  </p><div class="docstring">
209
213
  <div class="discussion">
210
-
211
- <p>Creates a new Relationships collection based on SimpleTypedList</p>
214
+ <p>
215
+ Creates a new Relationships collection based on SimpleTypedList
216
+ </p>
212
217
 
213
218
 
214
219
  </div>
@@ -229,9 +234,10 @@ are related.</p>
229
234
  <td>
230
235
  <pre class="code"><span class="info file"># File 'lib/axlsx/rels/relationships.rb', line 9</span>
231
236
 
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>
237
+ <span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span>
238
+ <span class='super super kw'>super</span> <span class='Relationship constant id'>Relationship</span>
239
+ <span class='end end kw'>end</span>
240
+ </pre>
235
241
  </td>
236
242
  </tr>
237
243
  </table>
@@ -263,8 +269,9 @@ are related.</p>
263
269
 
264
270
  </p><div class="docstring">
265
271
  <div class="discussion">
266
-
267
- <p>Serializes the relationships document.</p>
272
+ <p>
273
+ Serializes the relationships document.
274
+ </p>
268
275
 
269
276
 
270
277
  </div>
@@ -303,14 +310,15 @@ are related.</p>
303
310
  <td>
304
311
  <pre class="code"><span class="info file"># File 'lib/axlsx/rels/relationships.rb', line 15</span>
305
312
 
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>
313
+ <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>
314
+ <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>
315
+ <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>
316
+ <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>
317
+ <span class='rbrace token'>}</span>
318
+ <span class='end end kw'>end</span>
319
+ <span class='builder identifier id'>builder</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span>
320
+ <span class='end end kw'>end</span>
321
+ </pre>
314
322
  </td>
315
323
  </tr>
316
324
  </table>
@@ -321,9 +329,9 @@ are related.</p>
321
329
  </div>
322
330
 
323
331
  <div id="footer">
324
- Generated on Sat Nov 26 13:16:38 2011 by
332
+ Generated on Sun Nov 27 21:54:28 2011 by
325
333
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
326
- 0.7.3 (ruby-1.9.3).
334
+ 0.7.3 (ruby-1.8.7).
327
335
  </div>
328
336
 
329
337
  </body>
@@ -94,8 +94,9 @@
94
94
 
95
95
  <h2>Overview</h2><div class="docstring">
96
96
  <div class="discussion">
97
-
98
- <p>Validate a value against a specific list of allowed values.</p>
97
+ <p>
98
+ Validate a value against a specific list of allowed values.
99
+ </p>
99
100
 
100
101
 
101
102
  </div>
@@ -132,8 +133,9 @@
132
133
 
133
134
 
134
135
 
135
- <span class="summary_desc"><div class='inline'>
136
- <p>Perform validation.</p>
136
+ <span class="summary_desc"><div class='inline'><p>
137
+ Perform validation.
138
+ </p>
137
139
  </div></span>
138
140
 
139
141
  </li>
@@ -157,8 +159,9 @@
157
159
 
158
160
  </p><div class="docstring">
159
161
  <div class="discussion">
160
-
161
- <p>Perform validation</p>
162
+ <p>
163
+ Perform validation
164
+ </p>
162
165
 
163
166
 
164
167
  </div>
@@ -177,8 +180,9 @@
177
180
 
178
181
 
179
182
  &mdash;
180
- <div class='inline'>
181
- <p>The name of what is being validatied. This is included in the error message</p>
183
+ <div class='inline'><p>
184
+ The name of what is being validatied. This is included in the error message
185
+ </p>
182
186
  </div>
183
187
 
184
188
  </li>
@@ -193,8 +197,9 @@
193
197
 
194
198
 
195
199
  &mdash;
196
- <div class='inline'>
197
- <p>The list of choices to validate against</p>
200
+ <div class='inline'><p>
201
+ The list of choices to validate against
202
+ </p>
198
203
  </div>
199
204
 
200
205
  </li>
@@ -209,8 +214,9 @@
209
214
 
210
215
 
211
216
  &mdash;
212
- <div class='inline'>
213
- <p>The value to be validated</p>
217
+ <div class='inline'><p>
218
+ The value to be validated
219
+ </p>
214
220
  </div>
215
221
 
216
222
  </li>
@@ -228,8 +234,9 @@
228
234
 
229
235
 
230
236
  &mdash;
231
- <div class='inline'>
232
- <p>true if validation succeeds.</p>
237
+ <div class='inline'><p>
238
+ true if validation succeeds.
239
+ </p>
233
240
  </div>
234
241
 
235
242
  </li>
@@ -246,8 +253,9 @@
246
253
 
247
254
 
248
255
  &mdash;
249
- <div class='inline'>
250
- <p>Raised if the value provided is not in the list of choices.</p>
256
+ <div class='inline'><p>
257
+ Raised if the value provided is not in the list of choices.
258
+ </p>
251
259
  </div>
252
260
 
253
261
  </li>
@@ -268,10 +276,11 @@
268
276
  <td>
269
277
  <pre class="code"><span class="info file"># File 'lib/axlsx/util/validators.rb', line 10</span>
270
278
 
271
- <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 choices'>choices</span><span class='comma'>,</span> <span class='id v'>v</span><span class='rparen'>)</span>
272
- <span class='id raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='lparen'>(</span><span class='const'>ERR_RESTRICTION</span> <span class='op'>%</span> <span class='lbracket'>[</span><span class='id v'>v</span><span class='period'>.</span><span class='id to_s'>to_s</span><span class='comma'>,</span> <span class='id name'>name</span><span class='comma'>,</span> <span class='id choices'>choices</span><span class='period'>.</span><span class='id inspect'>inspect</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='id choices'>choices</span><span class='period'>.</span><span class='id include?'>include?</span><span class='lparen'>(</span><span class='id v'>v</span><span class='rparen'>)</span>
273
- <span class='kw'>true</span>
274
- <span class='kw'>end</span></pre>
279
+ <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='choices identifier id'>choices</span><span class='comma token'>,</span> <span class='v identifier id'>v</span><span class='rparen token'>)</span>
280
+ <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_RESTRICTION constant id'>ERR_RESTRICTION</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='to_s identifier id'>to_s</span><span class='comma token'>,</span> <span class='name identifier id'>name</span><span class='comma token'>,</span> <span class='choices identifier id'>choices</span><span class='dot token'>.</span><span class='inspect identifier id'>inspect</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='choices identifier id'>choices</span><span class='dot token'>.</span><span class='include? fid id'>include?</span><span class='lparen token'>(</span><span class='v identifier id'>v</span><span class='rparen token'>)</span>
281
+ <span class='true true kw'>true</span>
282
+ <span class='end end kw'>end</span>
283
+ </pre>
275
284
  </td>
276
285
  </tr>
277
286
  </table>
@@ -282,9 +291,9 @@
282
291
  </div>
283
292
 
284
293
  <div id="footer">
285
- Generated on Sat Nov 26 13:16:37 2011 by
294
+ Generated on Sun Nov 27 21:54:19 2011 by
286
295
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
287
- 0.7.3 (ruby-1.9.3).
296
+ 0.7.3 (ruby-1.8.7).
288
297
  </div>
289
298
 
290
299
  </body>