csv_decision 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/CHANGELOG.md +4 -0
- data/README.md +62 -28
- data/csv_decision.gemspec +1 -1
- data/doc/CSVDecision/CellValidationError.html +2 -2
- data/doc/CSVDecision/Columns/Dictionary.html +114 -20
- data/doc/CSVDecision/Columns/Entry.html +2 -2
- data/doc/CSVDecision/Columns.html +109 -27
- data/doc/CSVDecision/Data.html +2 -2
- data/doc/CSVDecision/Decide.html +2 -2
- data/doc/CSVDecision/Decision.html +21 -21
- data/doc/CSVDecision/Dictionary/Entry.html +508 -0
- data/doc/CSVDecision/Dictionary.html +265 -0
- data/doc/CSVDecision/Error.html +2 -2
- data/doc/CSVDecision/FileError.html +3 -3
- data/doc/CSVDecision/Header.html +37 -136
- data/doc/CSVDecision/Input.html +2 -2
- data/doc/CSVDecision/Load.html +2 -2
- data/doc/CSVDecision/Matchers/Constant.html +2 -2
- data/doc/CSVDecision/Matchers/Function.html +2 -2
- data/doc/CSVDecision/Matchers/Guard.html +92 -25
- data/doc/CSVDecision/Matchers/Matcher.html +14 -18
- data/doc/CSVDecision/Matchers/Numeric.html +2 -2
- data/doc/CSVDecision/Matchers/Pattern.html +2 -2
- data/doc/CSVDecision/Matchers/Range.html +2 -2
- data/doc/CSVDecision/Matchers/Symbol.html +2 -2
- data/doc/CSVDecision/Matchers.html +5 -5
- data/doc/CSVDecision/Options.html +2 -2
- data/doc/CSVDecision/Parse.html +6 -4
- data/doc/CSVDecision/Result.html +944 -0
- data/doc/CSVDecision/ScanRow.html +70 -80
- data/doc/CSVDecision/Table.html +134 -54
- data/doc/CSVDecision.html +5 -5
- data/doc/_index.html +18 -4
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +132 -62
- data/doc/index.html +132 -62
- data/doc/method_list.html +156 -60
- data/doc/top-level-namespace.html +2 -2
- data/lib/csv_decision/columns.rb +1 -8
- data/lib/csv_decision/decision.rb +45 -96
- data/lib/csv_decision/dictionary.rb +149 -0
- data/lib/csv_decision/header.rb +6 -133
- data/lib/csv_decision/matchers.rb +1 -2
- data/lib/csv_decision/parse.rb +18 -7
- data/lib/csv_decision/result.rb +180 -0
- data/lib/csv_decision/scan_row.rb +13 -7
- data/lib/csv_decision/table.rb +6 -5
- data/lib/csv_decision.rb +3 -1
- data/spec/csv_decision/columns_spec.rb +25 -4
- data/spec/csv_decision/examples_spec.rb +25 -0
- data/spec/csv_decision/matchers/guard_spec.rb +26 -9
- data/spec/csv_decision/table_spec.rb +48 -2
- metadata +7 -2
@@ -159,7 +159,29 @@
|
|
159
159
|
<li class="public ">
|
160
160
|
<span class="summary_signature">
|
161
161
|
|
162
|
-
<a href="#
|
162
|
+
<a href="#regexp_match-class_method" title="regexp_match (class method)">.<strong>regexp_match</strong>(symbol, value, hash) ⇒ Object </a>
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
</span>
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
<span class="private note title">private</span>
|
174
|
+
|
175
|
+
|
176
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
177
|
+
|
178
|
+
</li>
|
179
|
+
|
180
|
+
|
181
|
+
<li class="public ">
|
182
|
+
<span class="summary_signature">
|
183
|
+
|
184
|
+
<a href="#symbol_function-class_method" title="symbol_function (class method)">.<strong>symbol_function</strong>(symbol, method, hash) ⇒ Object </a>
|
163
185
|
|
164
186
|
|
165
187
|
|
@@ -333,15 +355,15 @@ some type of function.</p>
|
|
333
355
|
<pre class="lines">
|
334
356
|
|
335
357
|
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
358
|
+
132
|
359
|
+
133
|
360
|
+
134
|
361
|
+
135
|
362
|
+
136
|
363
|
+
137</pre>
|
342
364
|
</td>
|
343
365
|
<td>
|
344
|
-
<pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/guard.rb', line
|
366
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/guard.rb', line 132</span>
|
345
367
|
|
346
368
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_matches?'>matches?</span><span class='lparen'>(</span><span class='id identifier rubyid_cell'>cell</span><span class='rparen'>)</span>
|
347
369
|
<span class='id identifier rubyid_proc'>proc</span> <span class='op'>=</span> <span class='id identifier rubyid_symbol_proc'>symbol_proc</span><span class='lparen'>(</span><span class='id identifier rubyid_cell'>cell</span><span class='rparen'>)</span>
|
@@ -352,12 +374,57 @@ some type of function.</p>
|
|
352
374
|
</td>
|
353
375
|
</tr>
|
354
376
|
</table>
|
377
|
+
</div>
|
378
|
+
|
379
|
+
<div class="method_details ">
|
380
|
+
<h3 class="signature " id="regexp_match-class_method">
|
381
|
+
|
382
|
+
.<strong>regexp_match</strong>(symbol, value, hash) ⇒ <tt>Object</tt>
|
383
|
+
|
384
|
+
|
385
|
+
|
386
|
+
|
387
|
+
|
388
|
+
</h3><div class="docstring">
|
389
|
+
<div class="discussion">
|
390
|
+
<p class="note private">
|
391
|
+
<strong>This method is part of a private API.</strong>
|
392
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
393
|
+
</p>
|
394
|
+
|
395
|
+
|
396
|
+
</div>
|
397
|
+
</div>
|
398
|
+
<div class="tags">
|
399
|
+
|
400
|
+
|
401
|
+
</div><table class="source_code">
|
402
|
+
<tr>
|
403
|
+
<td>
|
404
|
+
<pre class="lines">
|
405
|
+
|
406
|
+
|
407
|
+
54
|
408
|
+
55
|
409
|
+
56
|
410
|
+
57</pre>
|
411
|
+
</td>
|
412
|
+
<td>
|
413
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/guard.rb', line 54</span>
|
414
|
+
|
415
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_regexp_match'>regexp_match</span><span class='lparen'>(</span><span class='id identifier rubyid_symbol'>symbol</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='comma'>,</span> <span class='id identifier rubyid_hash'>hash</span><span class='rparen'>)</span>
|
416
|
+
<span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>String</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_symbol'>symbol</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>String</span><span class='rparen'>)</span> <span class='op'>&&</span>
|
417
|
+
<span class='const'><span class='object_link'><a href="../Matchers.html" title="CSVDecision::Matchers (class)">Matchers</a></span></span><span class='period'>.</span><span class='id identifier rubyid_regexp'><span class='object_link'><a href="../Matchers.html#regexp-class_method" title="CSVDecision::Matchers.regexp (method)">regexp</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_symbol'>symbol</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
418
|
+
<span class='kw'>end</span></pre>
|
419
|
+
</td>
|
420
|
+
</tr>
|
421
|
+
</table>
|
355
422
|
</div>
|
356
423
|
|
357
424
|
<div class="method_details ">
|
358
425
|
<h3 class="signature " id="symbol_function-class_method">
|
359
426
|
|
360
|
-
.<strong>symbol_function</strong>(symbol,
|
427
|
+
.<strong>symbol_function</strong>(symbol, method, hash) ⇒ <tt>Object</tt>
|
361
428
|
|
362
429
|
|
363
430
|
|
@@ -382,15 +449,15 @@ some type of function.</p>
|
|
382
449
|
<pre class="lines">
|
383
450
|
|
384
451
|
|
385
|
-
49
|
386
452
|
50
|
387
|
-
51
|
453
|
+
51
|
454
|
+
52</pre>
|
388
455
|
</td>
|
389
456
|
<td>
|
390
|
-
<pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/guard.rb', line
|
457
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/guard.rb', line 50</span>
|
391
458
|
|
392
|
-
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_symbol_function'>symbol_function</span><span class='lparen'>(</span><span class='id identifier rubyid_symbol'>symbol</span><span class='comma'>,</span> <span class='id identifier
|
393
|
-
<span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_symbol'>symbol</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='id identifier
|
459
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_symbol_function'>symbol_function</span><span class='lparen'>(</span><span class='id identifier rubyid_symbol'>symbol</span><span class='comma'>,</span> <span class='id identifier rubyid_method'>method</span><span class='comma'>,</span> <span class='id identifier rubyid_hash'>hash</span><span class='rparen'>)</span>
|
460
|
+
<span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_symbol'>symbol</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_respond_to?'>respond_to?</span><span class='lparen'>(</span><span class='id identifier rubyid_method'>method</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_symbol'>symbol</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_method'>method</span><span class='rparen'>)</span>
|
394
461
|
<span class='kw'>end</span></pre>
|
395
462
|
</td>
|
396
463
|
</tr>
|
@@ -475,15 +542,15 @@ some type of function.</p>
|
|
475
542
|
<pre class="lines">
|
476
543
|
|
477
544
|
|
478
|
-
|
479
|
-
|
480
|
-
|
545
|
+
141
|
546
|
+
142
|
547
|
+
143</pre>
|
481
548
|
</td>
|
482
549
|
<td>
|
483
|
-
<pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/guard.rb', line
|
550
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/guard.rb', line 141</span>
|
484
551
|
|
485
552
|
<span class='kw'>def</span> <span class='id identifier rubyid_matches?'>matches?</span><span class='lparen'>(</span><span class='id identifier rubyid_cell'>cell</span><span class='rparen'>)</span>
|
486
|
-
<span class='const'><span class='object_link'><a href="
|
553
|
+
<span class='const'><span class='object_link'><a href="" title="CSVDecision::Matchers::Guard (class)">Guard</a></span></span><span class='period'>.</span><span class='id identifier rubyid_matches?'><span class='object_link'><a href="#matches%3F-class_method" title="CSVDecision::Matchers::Guard.matches? (method)">matches?</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_cell'>cell</span><span class='rparen'>)</span>
|
487
554
|
<span class='kw'>end</span></pre>
|
488
555
|
</td>
|
489
556
|
</tr>
|
@@ -538,12 +605,12 @@ some type of function.</p>
|
|
538
605
|
<pre class="lines">
|
539
606
|
|
540
607
|
|
541
|
-
|
542
|
-
|
543
|
-
|
608
|
+
146
|
609
|
+
147
|
610
|
+
148</pre>
|
544
611
|
</td>
|
545
612
|
<td>
|
546
|
-
<pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/guard.rb', line
|
613
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/guard.rb', line 146</span>
|
547
614
|
|
548
615
|
<span class='kw'>def</span> <span class='id identifier rubyid_outs?'>outs?</span>
|
549
616
|
<span class='kw'>true</span>
|
@@ -558,9 +625,9 @@ some type of function.</p>
|
|
558
625
|
</div>
|
559
626
|
|
560
627
|
<div id="footer">
|
561
|
-
Generated on
|
628
|
+
Generated on Fri Jan 5 21:44:01 2018 by
|
562
629
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
563
|
-
0.9.12 (ruby-2.
|
630
|
+
0.9.12 (ruby-2.4.0).
|
564
631
|
</div>
|
565
632
|
|
566
633
|
</div>
|
@@ -60,7 +60,7 @@
|
|
60
60
|
</div>
|
61
61
|
|
62
62
|
<div id="content"><h1>Class: CSVDecision::Matchers::Matcher
|
63
|
-
|
63
|
+
|
64
64
|
|
65
65
|
<span class="private note title">Private</span>
|
66
66
|
</h1>
|
@@ -105,12 +105,8 @@
|
|
105
105
|
<strong>This class is part of a private API.</strong>
|
106
106
|
You should avoid using this class if possible, as it may be removed or be changed in the future.
|
107
107
|
</p>
|
108
|
-
|
109
|
-
<strong>This class is abstract.</strong>
|
110
|
-
<div class='inline'>
|
108
|
+
|
111
109
|
<p>Subclass and override <span class='object_link'><a href="#matches%3F-instance_method" title="CSVDecision::Matchers::Matcher#matches? (method)">#matches?</a></span> to implement a custom Matcher class.</p>
|
112
|
-
</div>
|
113
|
-
</div>
|
114
110
|
|
115
111
|
|
116
112
|
</div>
|
@@ -271,10 +267,10 @@
|
|
271
267
|
<pre class="lines">
|
272
268
|
|
273
269
|
|
274
|
-
|
270
|
+
129</pre>
|
275
271
|
</td>
|
276
272
|
<td>
|
277
|
-
<pre class="code"><span class="info file"># File 'lib/csv_decision/matchers.rb', line
|
273
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision/matchers.rb', line 129</span>
|
278
274
|
|
279
275
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid__options'>_options</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
280
276
|
</td>
|
@@ -337,12 +333,12 @@
|
|
337
333
|
<pre class="lines">
|
338
334
|
|
339
335
|
|
336
|
+
151
|
340
337
|
152
|
341
|
-
153
|
342
|
-
154</pre>
|
338
|
+
153</pre>
|
343
339
|
</td>
|
344
340
|
<td>
|
345
|
-
<pre class="code"><span class="info file"># File 'lib/csv_decision/matchers.rb', line
|
341
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision/matchers.rb', line 151</span>
|
346
342
|
|
347
343
|
<span class='kw'>def</span> <span class='id identifier rubyid_ins?'>ins?</span>
|
348
344
|
<span class='kw'>true</span>
|
@@ -422,10 +418,10 @@ some type of function.</p>
|
|
422
418
|
<pre class="lines">
|
423
419
|
|
424
420
|
|
425
|
-
|
421
|
+
137</pre>
|
426
422
|
</td>
|
427
423
|
<td>
|
428
|
-
<pre class="code"><span class="info file"># File 'lib/csv_decision/matchers.rb', line
|
424
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision/matchers.rb', line 137</span>
|
429
425
|
|
430
426
|
<span class='kw'>def</span> <span class='id identifier rubyid_matches?'>matches?</span><span class='lparen'>(</span><span class='id identifier rubyid_cell'>cell</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
431
427
|
</td>
|
@@ -481,12 +477,12 @@ some type of function.</p>
|
|
481
477
|
<pre class="lines">
|
482
478
|
|
483
479
|
|
480
|
+
143
|
484
481
|
144
|
485
|
-
145
|
486
|
-
146</pre>
|
482
|
+
145</pre>
|
487
483
|
</td>
|
488
484
|
<td>
|
489
|
-
<pre class="code"><span class="info file"># File 'lib/csv_decision/matchers.rb', line
|
485
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision/matchers.rb', line 143</span>
|
490
486
|
|
491
487
|
<span class='kw'>def</span> <span class='id identifier rubyid_outs?'>outs?</span>
|
492
488
|
<span class='kw'>false</span>
|
@@ -501,9 +497,9 @@ some type of function.</p>
|
|
501
497
|
</div>
|
502
498
|
|
503
499
|
<div id="footer">
|
504
|
-
Generated on
|
500
|
+
Generated on Fri Jan 5 21:44:00 2018 by
|
505
501
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
506
|
-
0.9.12 (ruby-2.
|
502
|
+
0.9.12 (ruby-2.4.0).
|
507
503
|
</div>
|
508
504
|
|
509
505
|
</div>
|
@@ -419,9 +419,9 @@ some type of function.</p>
|
|
419
419
|
</div>
|
420
420
|
|
421
421
|
<div id="footer">
|
422
|
-
Generated on
|
422
|
+
Generated on Fri Jan 5 21:44:01 2018 by
|
423
423
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
424
|
-
0.9.12 (ruby-2.
|
424
|
+
0.9.12 (ruby-2.4.0).
|
425
425
|
</div>
|
426
426
|
|
427
427
|
</div>
|
@@ -483,9 +483,9 @@ some type of function.</p>
|
|
483
483
|
</div>
|
484
484
|
|
485
485
|
<div id="footer">
|
486
|
-
Generated on
|
486
|
+
Generated on Fri Jan 5 21:44:01 2018 by
|
487
487
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
488
|
-
0.9.12 (ruby-2.
|
488
|
+
0.9.12 (ruby-2.4.0).
|
489
489
|
</div>
|
490
490
|
|
491
491
|
</div>
|
@@ -414,9 +414,9 @@ some type of function.</p>
|
|
414
414
|
</div>
|
415
415
|
|
416
416
|
<div id="footer">
|
417
|
-
Generated on
|
417
|
+
Generated on Fri Jan 5 21:44:01 2018 by
|
418
418
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
419
|
-
0.9.12 (ruby-2.
|
419
|
+
0.9.12 (ruby-2.4.0).
|
420
420
|
</div>
|
421
421
|
|
422
422
|
</div>
|
@@ -415,9 +415,9 @@ some type of function.</p>
|
|
415
415
|
</div>
|
416
416
|
|
417
417
|
<div id="footer">
|
418
|
-
Generated on
|
418
|
+
Generated on Fri Jan 5 21:44:01 2018 by
|
419
419
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
420
|
-
0.9.12 (ruby-2.
|
420
|
+
0.9.12 (ruby-2.4.0).
|
421
421
|
</div>
|
422
422
|
|
423
423
|
</div>
|
@@ -1006,7 +1006,7 @@ matchers.</p>
|
|
1006
1006
|
<span class='name'>columns</span>
|
1007
1007
|
|
1008
1008
|
|
1009
|
-
<span class='type'>(<tt>Hash{Integer=>
|
1009
|
+
<span class='type'>(<tt>Hash{Integer=>Columns::Entry}</tt>)</span>
|
1010
1010
|
|
1011
1011
|
|
1012
1012
|
|
@@ -1304,7 +1304,7 @@ nil.</p>
|
|
1304
1304
|
<span class='name'>columns</span>
|
1305
1305
|
|
1306
1306
|
|
1307
|
-
<span class='type'>(<tt>Hash{Integer=>
|
1307
|
+
<span class='type'>(<tt>Hash{Integer=>Columns::Entry}</tt>)</span>
|
1308
1308
|
|
1309
1309
|
|
1310
1310
|
|
@@ -1403,7 +1403,7 @@ nil.</p>
|
|
1403
1403
|
<span class='name'>columns</span>
|
1404
1404
|
|
1405
1405
|
|
1406
|
-
<span class='type'>(<tt>Hash{Integer=>
|
1406
|
+
<span class='type'>(<tt>Hash{Integer=>Columns::Entry}</tt>)</span>
|
1407
1407
|
|
1408
1408
|
|
1409
1409
|
|
@@ -1477,9 +1477,9 @@ nil.</p>
|
|
1477
1477
|
</div>
|
1478
1478
|
|
1479
1479
|
<div id="footer">
|
1480
|
-
Generated on
|
1480
|
+
Generated on Fri Jan 5 21:44:00 2018 by
|
1481
1481
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1482
|
-
0.9.12 (ruby-2.
|
1482
|
+
0.9.12 (ruby-2.4.0).
|
1483
1483
|
</div>
|
1484
1484
|
|
1485
1485
|
</div>
|
@@ -433,9 +433,9 @@ set.</p>
|
|
433
433
|
</div>
|
434
434
|
|
435
435
|
<div id="footer">
|
436
|
-
Generated on
|
436
|
+
Generated on Fri Jan 5 21:44:00 2018 by
|
437
437
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
438
|
-
0.9.12 (ruby-2.
|
438
|
+
0.9.12 (ruby-2.4.0).
|
439
439
|
</div>
|
440
440
|
|
441
441
|
</div>
|
data/doc/CSVDecision/Parse.html
CHANGED
@@ -242,7 +242,8 @@
|
|
242
242
|
66
|
243
243
|
67
|
244
244
|
68
|
245
|
-
69
|
245
|
+
69
|
246
|
+
70</pre>
|
246
247
|
</td>
|
247
248
|
<td>
|
248
249
|
<pre class="code"><span class="info file"># File 'lib/csv_decision/parse.rb', line 57</span>
|
@@ -255,7 +256,8 @@
|
|
255
256
|
|
256
257
|
<span class='id identifier rubyid_parse_table'>parse_table</span><span class='lparen'>(</span><span class='label'>table:</span> <span class='id identifier rubyid_table'>table</span><span class='comma'>,</span> <span class='label'>input:</span> <span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='label'>options:</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
257
258
|
|
258
|
-
<span class='
|
259
|
+
<span class='comment'># The table object is now immutable.
|
260
|
+
</span> <span class='id identifier rubyid_table'>table</span><span class='period'>.</span><span class='id identifier rubyid_columns'>columns</span><span class='period'>.</span><span class='id identifier rubyid_deep_freeze'>deep_freeze</span>
|
259
261
|
<span class='id identifier rubyid_table'>table</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span>
|
260
262
|
<span class='kw'>rescue</span> <span class='const'><span class='object_link'><a href="../CSVDecision.html" title="CSVDecision (module)">CSVDecision</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Error.html" title="CSVDecision::Error (class)">Error</a></span></span> <span class='op'>=></span> <span class='id identifier rubyid_exp'>exp</span>
|
261
263
|
<span class='id identifier rubyid_raise_error'>raise_error</span><span class='lparen'>(</span><span class='label'>file:</span> <span class='id identifier rubyid_table'>table</span><span class='period'>.</span><span class='id identifier rubyid_file'>file</span><span class='comma'>,</span> <span class='label'>exception:</span> <span class='id identifier rubyid_exp'>exp</span><span class='rparen'>)</span>
|
@@ -270,9 +272,9 @@
|
|
270
272
|
</div>
|
271
273
|
|
272
274
|
<div id="footer">
|
273
|
-
Generated on
|
275
|
+
Generated on Fri Jan 5 21:44:00 2018 by
|
274
276
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
275
|
-
0.9.12 (ruby-2.
|
277
|
+
0.9.12 (ruby-2.4.0).
|
276
278
|
</div>
|
277
279
|
|
278
280
|
</div>
|