axlsx 1.0.9 → 1.0.10a
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +3 -0
- data/Gemfile.lock +24 -0
- data/README.md +86 -1
- data/axlsx.gemspec +6 -10
- data/doc/Axlsx.html +557 -360
- data/doc/Axlsx/App.html +347 -244
- data/doc/Axlsx/Ar.html +200 -0
- data/doc/Axlsx/Ar/ClassMethods.html +192 -0
- data/doc/Axlsx/Ar/InstanceMethods.html +109 -0
- data/doc/Axlsx/Ar/SingletonMethods.html +304 -0
- data/doc/Axlsx/Axis.html +131 -98
- data/doc/Axlsx/Bar3DChart.html +138 -106
- data/doc/Axlsx/BarSeries.html +73 -54
- data/doc/Axlsx/Border.html +114 -87
- data/doc/Axlsx/BorderPr.html +107 -82
- data/doc/Axlsx/CatAxis.html +93 -68
- data/doc/Axlsx/CatAxisData.html +47 -38
- data/doc/Axlsx/Cell.html +642 -148
- data/doc/Axlsx/CellAlignment.html +152 -111
- data/doc/Axlsx/CellProtection.html +63 -45
- data/doc/Axlsx/CellStyle.html +101 -73
- data/doc/Axlsx/Chart.html +238 -179
- data/doc/Axlsx/Color.html +75 -53
- data/doc/Axlsx/ContentType.html +34 -26
- data/doc/Axlsx/Core.html +54 -42
- data/doc/Axlsx/DataTypeValidator.html +39 -30
- data/doc/Axlsx/Default.html +59 -43
- data/doc/Axlsx/Drawing.html +176 -128
- data/doc/Axlsx/Fill.html +46 -33
- data/doc/Axlsx/Font.html +197 -147
- data/doc/Axlsx/GradientFill.html +114 -82
- data/doc/Axlsx/GradientStop.html +47 -33
- data/doc/Axlsx/GraphicFrame.html +78 -60
- data/doc/Axlsx/Line3DChart.html +125 -97
- data/doc/Axlsx/LineSeries.html +60 -44
- data/doc/Axlsx/Marker.html +98 -71
- data/doc/Axlsx/NumFmt.html +99 -80
- data/doc/Axlsx/OneCellAnchor.html +126 -94
- data/doc/Axlsx/Override.html +59 -43
- data/doc/Axlsx/Package.html +269 -134
- data/doc/Axlsx/PatternFill.html +93 -72
- data/doc/Axlsx/Pic.html +202 -152
- data/doc/Axlsx/Pie3DChart.html +39 -30
- data/doc/Axlsx/PieSeries.html +72 -53
- data/doc/Axlsx/RegexValidator.html +19 -14
- data/doc/Axlsx/Relationship.html +60 -43
- data/doc/Axlsx/Relationships.html +34 -26
- data/doc/Axlsx/RestrictionValidator.html +31 -22
- data/doc/Axlsx/Row.html +241 -67
- data/doc/Axlsx/Scaling.html +80 -59
- data/doc/Axlsx/SerAxis.html +71 -51
- data/doc/Axlsx/Series.html +179 -51
- data/doc/Axlsx/SeriesTitle.html +29 -24
- data/doc/Axlsx/Styles.html +354 -285
- data/doc/Axlsx/TableStyle.html +74 -54
- data/doc/Axlsx/TableStyleElement.html +99 -79
- data/doc/Axlsx/TableStyles.html +65 -47
- data/doc/Axlsx/Title.html +66 -51
- data/doc/Axlsx/TwoCellAnchor.html +129 -96
- data/doc/Axlsx/ValAxis.html +52 -38
- data/doc/Axlsx/ValAxisData.html +32 -27
- data/doc/Axlsx/View3D.html +111 -80
- data/doc/Axlsx/Workbook.html +333 -272
- data/doc/Axlsx/Worksheet.html +1018 -266
- data/doc/Axlsx/Xf.html +188 -134
- data/doc/_index.html +44 -8
- data/doc/class_list.html +1 -1
- data/doc/file.LICENSE.html +28 -23
- data/doc/file.README.html +180 -91
- data/doc/index.html +180 -91
- data/doc/method_list.html +541 -421
- data/doc/top-level-namespace.html +2 -2
- data/examples/example.rb +70 -13
- data/lib/axlsx.rb +1 -0
- data/lib/axlsx/ar.rb +72 -0
- data/lib/axlsx/package.rb +8 -1
- data/lib/axlsx/util/simple_typed_list.rb +5 -0
- data/lib/axlsx/version.rb +1 -1
- data/lib/axlsx/workbook/workbook.rb +4 -2
- data/lib/axlsx/workbook/worksheet/row.rb +15 -0
- data/lib/axlsx/workbook/worksheet/worksheet.rb +44 -1
- data/test/workbook/worksheet/tc_row.rb +6 -0
- data/test/workbook/worksheet/tc_worksheet.rb +36 -0
- metadata +103 -59
data/doc/Axlsx/Relationship.html
CHANGED
@@ -97,13 +97,15 @@
|
|
97
97
|
|
98
98
|
<div class="note notetag">
|
99
99
|
<strong>Note:</strong>
|
100
|
-
<div class='inline'>
|
101
|
-
|
100
|
+
<div class='inline'><p>
|
101
|
+
Packages automatcially manage relationships.
|
102
|
+
</p>
|
102
103
|
</div>
|
103
104
|
</div>
|
104
105
|
|
105
|
-
|
106
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
271
|
-
<span class='kw'>self</span><span class='
|
272
|
-
<span class='kw'>self</span><span class='
|
273
|
-
<span class='kw'>end</span
|
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
|
-
|
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='
|
332
|
-
<span class='ivar'>@Target</span>
|
333
|
-
<span class='kw'>end</span
|
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
|
-
|
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
|
-
|
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='
|
420
|
-
<span class='ivar'>@Type</span>
|
421
|
-
<span class='kw'>end</span
|
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
|
-
|
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
|
—
|
463
|
-
<div class='inline'>
|
464
|
-
|
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
|
—
|
479
|
-
<div class='inline'>
|
480
|
-
|
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
|
517
|
-
<span class='id
|
518
|
-
<span class='id
|
519
|
-
<span class='id
|
520
|
-
<span class='kw'>end</span
|
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
|
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.
|
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
|
-
|
102
|
+
<div class='inline'><p>
|
103
|
+
The package automatically manages releationships.
|
104
|
+
</p>
|
104
105
|
</div>
|
105
106
|
</div>
|
106
107
|
|
107
|
-
|
108
|
-
|
109
|
-
are related
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
233
|
-
<span class='kw'>super</span> <span class='
|
234
|
-
<span class='kw'>end</span
|
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
|
-
|
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
|
307
|
-
<span class='id
|
308
|
-
<span class='id
|
309
|
-
<span class='id
|
310
|
-
<span class='rbrace'>}</span>
|
311
|
-
<span class='kw'>end</span>
|
312
|
-
<span class='id
|
313
|
-
<span class='kw'>end</span
|
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'>></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'>></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'>"rId#{index+1}"</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
|
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.
|
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
|
-
|
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
|
-
|
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
|
-
|
162
|
+
<p>
|
163
|
+
Perform validation
|
164
|
+
</p>
|
162
165
|
|
163
166
|
|
164
167
|
</div>
|
@@ -177,8 +180,9 @@
|
|
177
180
|
|
178
181
|
|
179
182
|
—
|
180
|
-
<div class='inline'>
|
181
|
-
|
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
|
—
|
196
|
-
<div class='inline'>
|
197
|
-
|
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
|
—
|
212
|
-
<div class='inline'>
|
213
|
-
|
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
|
—
|
231
|
-
<div class='inline'>
|
232
|
-
|
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
|
—
|
249
|
-
<div class='inline'>
|
250
|
-
|
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='
|
272
|
-
<span class='id
|
273
|
-
<span class='kw'>true</span>
|
274
|
-
<span class='kw'>end</span
|
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
|
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.
|
296
|
+
0.7.3 (ruby-1.8.7).
|
288
297
|
</div>
|
289
298
|
|
290
299
|
</body>
|