csv_decision 0.3.1 → 0.3.2

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.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -1
  3. data/csv_decision.gemspec +1 -1
  4. data/doc/CSVDecision/CellValidationError.html +1 -1
  5. data/doc/CSVDecision/Columns/Dictionary.html +1 -1
  6. data/doc/CSVDecision/Columns.html +1 -1
  7. data/doc/CSVDecision/Data.html +1 -1
  8. data/doc/CSVDecision/Decision.html +51 -147
  9. data/doc/CSVDecision/Defaults.html +1 -1
  10. data/doc/CSVDecision/Dictionary/Entry.html +1 -1
  11. data/doc/CSVDecision/Dictionary.html +1 -1
  12. data/doc/CSVDecision/Error.html +1 -1
  13. data/doc/CSVDecision/FileError.html +1 -1
  14. data/doc/CSVDecision/Header.html +1 -1
  15. data/doc/CSVDecision/Index.html +1 -1
  16. data/doc/CSVDecision/Input.html +2 -2
  17. data/doc/CSVDecision/Load.html +16 -11
  18. data/doc/CSVDecision/Matchers/Constant.html +1 -1
  19. data/doc/CSVDecision/Matchers/Function.html +3 -3
  20. data/doc/CSVDecision/Matchers/Guard.html +1 -1
  21. data/doc/CSVDecision/Matchers/Matcher.html +1 -1
  22. data/doc/CSVDecision/Matchers/Numeric.html +1 -1
  23. data/doc/CSVDecision/Matchers/Pattern.html +1 -1
  24. data/doc/CSVDecision/Matchers/Proc.html +1 -1
  25. data/doc/CSVDecision/Matchers/Range.html +1 -1
  26. data/doc/CSVDecision/Matchers/Symbol.html +1 -1
  27. data/doc/CSVDecision/Matchers.html +3 -3
  28. data/doc/CSVDecision/Options.html +1 -1
  29. data/doc/CSVDecision/Parse.html +3 -3
  30. data/doc/CSVDecision/Result.html +9 -22
  31. data/doc/CSVDecision/ScanRow.html +4 -6
  32. data/doc/CSVDecision/Table.html +10 -2
  33. data/doc/CSVDecision/TableValidationError.html +1 -1
  34. data/doc/CSVDecision/Validate.html +1 -1
  35. data/doc/CSVDecision.html +18 -13
  36. data/doc/_index.html +1 -1
  37. data/doc/file.README.html +1 -1
  38. data/doc/index.html +1 -1
  39. data/doc/method_list.html +63 -63
  40. data/doc/top-level-namespace.html +1 -1
  41. data/lib/csv_decision/decision.rb +47 -45
  42. data/lib/csv_decision/load.rb +5 -4
  43. data/lib/csv_decision/parse.rb +1 -1
  44. data/lib/csv_decision/result.rb +3 -3
  45. data/lib/csv_decision/scan_row.rb +4 -5
  46. data/lib/csv_decision/table.rb +4 -0
  47. data/spec/csv_decision/table_spec.rb +1 -0
  48. data/spec/data/valid/index_example.csv +1 -0
  49. metadata +2 -2
@@ -116,7 +116,7 @@
116
116
  <li class="public ">
117
117
  <span class="summary_signature">
118
118
 
119
- <a href="#path-class_method" title="path (class method)">.<strong>path</strong>(path:, options:) &#x21d2; Hash&lt;CSVDecision::Table&gt; </a>
119
+ <a href="#path-class_method" title="path (class method)">.<strong>path</strong>(path:, options:) &#x21d2; Hash{Symbol=&gt;&lt;CSVDecision::Table&gt;} </a>
120
120
 
121
121
 
122
122
 
@@ -149,7 +149,7 @@
149
149
  <div class="method_details first">
150
150
  <h3 class="signature first" id="path-class_method">
151
151
 
152
- .<strong>path</strong>(path:, options:) &#x21d2; <tt>Hash&lt;<span class='object_link'><a href="Table.html" title="CSVDecision::Table (class)">CSVDecision::Table</a></span>&gt;</tt>
152
+ .<strong>path</strong>(path:, options:) &#x21d2; <tt>Hash{Symbol=&gt;&lt;<span class='object_link'><a href="Table.html" title="CSVDecision::Table (class)">CSVDecision::Table</a></span>&gt;}</tt>
153
153
 
154
154
 
155
155
 
@@ -182,7 +182,7 @@
182
182
 
183
183
  &mdash;
184
184
  <div class='inline'>
185
- <p>Directory containing CSV files.</p>
185
+ <p>Directory containing CSV decision table files.</p>
186
186
  </div>
187
187
 
188
188
  </li>
@@ -192,13 +192,13 @@
192
192
  <span class='name'>options</span>
193
193
 
194
194
 
195
- <span class='type'>(<tt>Hash</tt>)</span>
195
+ <span class='type'>(<tt>Hash{Symbol=&gt;Object}</tt>)</span>
196
196
 
197
197
 
198
198
 
199
199
  &mdash;
200
200
  <div class='inline'>
201
- <p>Options hash used for table creation.</p>
201
+ <p>Options hash controlling how the table is parsed and interpreted.</p>
202
202
  </div>
203
203
 
204
204
  </li>
@@ -211,10 +211,15 @@
211
211
  <li>
212
212
 
213
213
 
214
- <span class='type'>(<tt>Hash&lt;<span class='object_link'><a href="Table.html" title="CSVDecision::Table (class)">CSVDecision::Table</a></span>&gt;</tt>)</span>
214
+ <span class='type'>(<tt>Hash{Symbol=&gt;&lt;<span class='object_link'><a href="Table.html" title="CSVDecision::Table (class)">CSVDecision::Table</a></span>&gt;}</tt>)</span>
215
215
 
216
216
 
217
217
 
218
+ &mdash;
219
+ <div class='inline'>
220
+ <p>Hash of decision tables keyed by the CSV file&#39;s symbolized base name.</p>
221
+ </div>
222
+
218
223
  </li>
219
224
 
220
225
  </ul>
@@ -230,7 +235,7 @@
230
235
 
231
236
  &mdash;
232
237
  <div class='inline'>
233
- <p>Invalid folder.</p>
238
+ <p>Invalid path name or folder.</p>
234
239
  </div>
235
240
 
236
241
  </li>
@@ -243,7 +248,6 @@
243
248
  <pre class="lines">
244
249
 
245
250
 
246
- 22
247
251
  23
248
252
  24
249
253
  25
@@ -254,10 +258,11 @@
254
258
  30
255
259
  31
256
260
  32
257
- 33</pre>
261
+ 33
262
+ 34</pre>
258
263
  </td>
259
264
  <td>
260
- <pre class="code"><span class="info file"># File 'lib/csv_decision/load.rb', line 22</span>
265
+ <pre class="code"><span class="info file"># File 'lib/csv_decision/load.rb', line 23</span>
261
266
 
262
267
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_path'>path</span><span class='lparen'>(</span><span class='label'>path:</span><span class='comma'>,</span> <span class='label'>options:</span><span class='rparen'>)</span>
263
268
  <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>path argument must be a Pathname</span><span class='tstring_end'>&#39;</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_path'>path</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Pathname</span><span class='rparen'>)</span>
@@ -281,7 +286,7 @@
281
286
  </div>
282
287
 
283
288
  <div id="footer">
284
- Generated on Sun Jan 21 08:56:46 2018 by
289
+ Generated on Sun Jan 28 11:58:38 2018 by
285
290
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
286
291
  0.9.12 (ruby-2.4.0).
287
292
  </div>
@@ -474,7 +474,7 @@ some type of function.</p>
474
474
  </div>
475
475
 
476
476
  <div id="footer">
477
- Generated on Sun Jan 21 08:56:47 2018 by
477
+ Generated on Sun Jan 28 11:58:39 2018 by
478
478
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
479
479
  0.9.12 (ruby-2.4.0).
480
480
  </div>
@@ -291,7 +291,7 @@ some type of function.</p>
291
291
  <span class='name'>options</span>
292
292
 
293
293
 
294
- <span class='type'>(<tt>Hash</tt>)</span>
294
+ <span class='type'>(<tt>Hash{<span class='object_link'><a href="Symbol.html" title="CSVDecision::Matchers::Symbol (class)">Symbol</a></span>=&gt;Object}</tt>)</span>
295
295
 
296
296
 
297
297
  <em class="default">(defaults to: <tt>{}</tt>)</em>
@@ -299,7 +299,7 @@ some type of function.</p>
299
299
 
300
300
  &mdash;
301
301
  <div class='inline'>
302
- <p>Options hash supplied by the user.</p>
302
+ <p>Options hash controlling how the table is parsed and interpreted.</p>
303
303
  </div>
304
304
 
305
305
  </li>
@@ -501,7 +501,7 @@ some type of function.</p>
501
501
  </div>
502
502
 
503
503
  <div id="footer">
504
- Generated on Sun Jan 21 08:56:47 2018 by
504
+ Generated on Sun Jan 28 11:58:39 2018 by
505
505
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
506
506
  0.9.12 (ruby-2.4.0).
507
507
  </div>
@@ -493,7 +493,7 @@ some type of function.</p>
493
493
  </div>
494
494
 
495
495
  <div id="footer">
496
- Generated on Sun Jan 21 08:56:47 2018 by
496
+ Generated on Sun Jan 28 11:58:39 2018 by
497
497
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
498
498
  0.9.12 (ruby-2.4.0).
499
499
  </div>
@@ -497,7 +497,7 @@ some type of function.</p>
497
497
  </div>
498
498
 
499
499
  <div id="footer">
500
- Generated on Sun Jan 21 08:56:47 2018 by
500
+ Generated on Sun Jan 28 11:58:39 2018 by
501
501
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
502
502
  0.9.12 (ruby-2.4.0).
503
503
  </div>
@@ -411,7 +411,7 @@ some type of function.</p>
411
411
  </div>
412
412
 
413
413
  <div id="footer">
414
- Generated on Sun Jan 21 08:56:47 2018 by
414
+ Generated on Sun Jan 28 11:58:39 2018 by
415
415
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
416
416
  0.9.12 (ruby-2.4.0).
417
417
  </div>
@@ -481,7 +481,7 @@ some type of function.</p>
481
481
  </div>
482
482
 
483
483
  <div id="footer">
484
- Generated on Sun Jan 21 08:56:47 2018 by
484
+ Generated on Sun Jan 28 11:58:39 2018 by
485
485
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
486
486
  0.9.12 (ruby-2.4.0).
487
487
  </div>
@@ -694,7 +694,7 @@ hash keys (which are always symbolized).</p>
694
694
  </div>
695
695
 
696
696
  <div id="footer">
697
- Generated on Sun Jan 21 08:56:47 2018 by
697
+ Generated on Sun Jan 28 11:58:39 2018 by
698
698
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
699
699
  0.9.12 (ruby-2.4.0).
700
700
  </div>
@@ -369,7 +369,7 @@ some type of function.</p>
369
369
  </div>
370
370
 
371
371
  <div id="footer">
372
- Generated on Sun Jan 21 08:56:47 2018 by
372
+ Generated on Sun Jan 28 11:58:39 2018 by
373
373
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
374
374
  0.9.12 (ruby-2.4.0).
375
375
  </div>
@@ -415,7 +415,7 @@ some type of function.</p>
415
415
  </div>
416
416
 
417
417
  <div id="footer">
418
- Generated on Sun Jan 21 08:56:47 2018 by
418
+ Generated on Sun Jan 28 11:58:39 2018 by
419
419
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
420
420
  0.9.12 (ruby-2.4.0).
421
421
  </div>
@@ -514,13 +514,13 @@ nil.</p>
514
514
  <span class='name'>options</span>
515
515
 
516
516
 
517
- <span class='type'>(<tt>Hash</tt>)</span>
517
+ <span class='type'>(<tt>Hash{<span class='object_link'><a href="Matchers/Symbol.html" title="CSVDecision::Matchers::Symbol (class)">Symbol</a></span>=&gt;Object}</tt>)</span>
518
518
 
519
519
 
520
520
 
521
521
  &mdash;
522
522
  <div class='inline'>
523
- <p>Options hash supplied by the user.</p>
523
+ <p>Options hash controlling how the table is parsed and interpreted.</p>
524
524
  </div>
525
525
 
526
526
  </li>
@@ -1350,7 +1350,7 @@ nil.</p>
1350
1350
  </div>
1351
1351
 
1352
1352
  <div id="footer">
1353
- Generated on Sun Jan 21 08:56:46 2018 by
1353
+ Generated on Sun Jan 28 11:58:38 2018 by
1354
1354
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1355
1355
  0.9.12 (ruby-2.4.0).
1356
1356
  </div>
@@ -433,7 +433,7 @@ set.</p>
433
433
  </div>
434
434
 
435
435
  <div id="footer">
436
- Generated on Sun Jan 21 08:56:46 2018 by
436
+ Generated on Sun Jan 28 11:58:38 2018 by
437
437
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
438
438
  0.9.12 (ruby-2.4.0).
439
439
  </div>
@@ -192,13 +192,13 @@
192
192
  <span class='name'>options</span>
193
193
 
194
194
 
195
- <span class='type'>(<tt>Hash</tt>)</span>
195
+ <span class='type'>(<tt>Hash{Symbol=&gt;Object}</tt>)</span>
196
196
 
197
197
 
198
198
 
199
199
  &mdash;
200
200
  <div class='inline'>
201
- <p>Options hash supplied by the user.</p>
201
+ <p>Options hash controlling how the table is parsed and interpreted.</p>
202
202
  </div>
203
203
 
204
204
  </li>
@@ -272,7 +272,7 @@
272
272
  </div>
273
273
 
274
274
  <div id="footer">
275
- Generated on Sun Jan 21 08:56:46 2018 by
275
+ Generated on Sun Jan 28 11:58:38 2018 by
276
276
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
277
277
  0.9.12 (ruby-2.4.0).
278
278
  </div>
@@ -327,7 +327,7 @@ values to the final result hash.</p>
327
327
  <li class="public ">
328
328
  <span class="summary_signature">
329
329
 
330
- <a href="#eval_outs-instance_method" title="#eval_outs (instance method)">#<strong>eval_outs</strong>(row) &#x21d2; {Symbol=&gt;Object} </a>
330
+ <a href="#eval_outs-instance_method" title="#eval_outs (instance method)">#<strong>eval_outs</strong>(row) &#x21d2; Object </a>
331
331
 
332
332
 
333
333
 
@@ -352,7 +352,7 @@ result, along with the partial result required to evaluate functions.</p>
352
352
  <li class="public ">
353
353
  <span class="summary_signature">
354
354
 
355
- <a href="#final-instance_method" title="#final (instance method)">#<strong>final</strong> &#x21d2; {Symbol=&gt;Object} </a>
355
+ <a href="#final_result-instance_method" title="#final_result (instance method)">#<strong>final_result</strong> &#x21d2; Hash{Symbol=&gt;Object} </a>
356
356
 
357
357
 
358
358
 
@@ -982,7 +982,7 @@ values to the final result hash.</p>
982
982
  <div class="method_details ">
983
983
  <h3 class="signature " id="eval_outs-instance_method">
984
984
 
985
- #<strong>eval_outs</strong>(row) &#x21d2; <tt>{Symbol=&gt;Object}</tt>
985
+ #<strong>eval_outs</strong>(row) &#x21d2; <tt>Object</tt>
986
986
 
987
987
 
988
988
 
@@ -1018,19 +1018,6 @@ result, along with the partial result required to evaluate functions.</p>
1018
1018
 
1019
1019
  </ul>
1020
1020
 
1021
- <p class="tag_title">Returns:</p>
1022
- <ul class="return">
1023
-
1024
- <li>
1025
-
1026
-
1027
- <span class='type'>(<tt>{Symbol=&gt;Object}</tt>)</span>
1028
-
1029
-
1030
-
1031
- </li>
1032
-
1033
- </ul>
1034
1021
 
1035
1022
  </div><table class="source_code">
1036
1023
  <tr>
@@ -1058,7 +1045,7 @@ result, along with the partial result required to evaluate functions.</p>
1058
1045
  <span class='comment'># Then evaluate the procs, left to right
1059
1046
  </span> <span class='id identifier rubyid_eval_outs_procs'>eval_outs_procs</span><span class='lparen'>(</span><span class='label'>row:</span> <span class='id identifier rubyid_row'>row</span><span class='rparen'>)</span>
1060
1047
 
1061
- <span class='id identifier rubyid_final'>final</span>
1048
+ <span class='id identifier rubyid_final_result'>final_result</span>
1062
1049
  <span class='kw'>end</span></pre>
1063
1050
  </td>
1064
1051
  </tr>
@@ -1066,9 +1053,9 @@ result, along with the partial result required to evaluate functions.</p>
1066
1053
  </div>
1067
1054
 
1068
1055
  <div class="method_details ">
1069
- <h3 class="signature " id="final-instance_method">
1056
+ <h3 class="signature " id="final_result-instance_method">
1070
1057
 
1071
- #<strong>final</strong> &#x21d2; <tt>{Symbol=&gt;Object}</tt>
1058
+ #<strong>final_result</strong> &#x21d2; <tt>Hash{Symbol=&gt;Object}</tt>
1072
1059
 
1073
1060
 
1074
1061
 
@@ -1094,7 +1081,7 @@ result, along with the partial result required to evaluate functions.</p>
1094
1081
  <li>
1095
1082
 
1096
1083
 
1097
- <span class='type'>(<tt>{Symbol=&gt;Object}</tt>)</span>
1084
+ <span class='type'>(<tt>Hash{Symbol=&gt;Object}</tt>)</span>
1098
1085
 
1099
1086
 
1100
1087
 
@@ -1118,7 +1105,7 @@ result, along with the partial result required to evaluate functions.</p>
1118
1105
  <td>
1119
1106
  <pre class="code"><span class="info file"># File 'lib/csv_decision/result.rb', line 58</span>
1120
1107
 
1121
- <span class='kw'>def</span> <span class='id identifier rubyid_final'>final</span>
1108
+ <span class='kw'>def</span> <span class='id identifier rubyid_final_result'>final_result</span>
1122
1109
  <span class='comment'># If there are no if: columns, then nothing needs to be filtered out of this result hash.
1123
1110
  </span> <span class='kw'>return</span> <span class='ivar'>@attributes</span> <span class='kw'>if</span> <span class='ivar'>@if_columns</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
1124
1111
 
@@ -1134,7 +1121,7 @@ result, along with the partial result required to evaluate functions.</p>
1134
1121
  </div>
1135
1122
 
1136
1123
  <div id="footer">
1137
- Generated on Sun Jan 21 08:56:46 2018 by
1124
+ Generated on Sun Jan 28 11:58:38 2018 by
1138
1125
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1139
1126
  0.9.12 (ruby-2.4.0).
1140
1127
  </div>
@@ -686,8 +686,7 @@
686
686
  112
687
687
  113
688
688
  114
689
- 115
690
- 116</pre>
689
+ 115</pre>
691
690
  </td>
692
691
  <td>
693
692
  <pre class="code"><span class="info file"># File 'lib/csv_decision/scan_row.rb', line 108</span>
@@ -696,9 +695,8 @@
696
695
  <span class='comment'># Check any table row cell constants first, and maybe fail fast...
697
696
  </span> <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>if</span> <span class='ivar'>@constants</span><span class='period'>.</span><span class='id identifier rubyid_any?'>any?</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_col'>col</span><span class='op'>|</span> <span class='id identifier rubyid_row'>row</span><span class='lbracket'>[</span><span class='id identifier rubyid_col'>col</span><span class='rbracket'>]</span> <span class='op'>!=</span> <span class='id identifier rubyid_scan_cols'>scan_cols</span><span class='lbracket'>[</span><span class='id identifier rubyid_col'>col</span><span class='rbracket'>]</span> <span class='rbrace'>}</span>
698
697
 
699
- <span class='kw'>return</span> <span class='kw'>true</span> <span class='kw'>if</span> <span class='ivar'>@procs</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
700
-
701
- <span class='comment'># These table row cells are Proc objects which need evaluating
698
+ <span class='comment'># These table row cells are Proc objects which need evaluating and
699
+ </span> <span class='comment'># must all return a truthy value.
702
700
  </span> <span class='ivar'>@procs</span><span class='period'>.</span><span class='id identifier rubyid_all?'>all?</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_col'>col</span><span class='op'>|</span> <span class='id identifier rubyid_row'>row</span><span class='lbracket'>[</span><span class='id identifier rubyid_col'>col</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='label'>value:</span> <span class='id identifier rubyid_scan_cols'>scan_cols</span><span class='lbracket'>[</span><span class='id identifier rubyid_col'>col</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>hash:</span> <span class='id identifier rubyid_hash'>hash</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
703
701
  <span class='kw'>end</span></pre>
704
702
  </td>
@@ -858,7 +856,7 @@ non-string constant.</p>
858
856
  </div>
859
857
 
860
858
  <div id="footer">
861
- Generated on Sun Jan 21 08:56:47 2018 by
859
+ Generated on Sun Jan 28 11:58:39 2018 by
862
860
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
863
861
  0.9.12 (ruby-2.4.0).
864
862
  </div>
@@ -514,12 +514,20 @@ and last row index given.</p>
514
514
  81
515
515
  82
516
516
  83
517
- 84</pre>
517
+ 84
518
+ 85
519
+ 86
520
+ 87
521
+ 88</pre>
518
522
  </td>
519
523
  <td>
520
524
  <pre class="code"><span class="info file"># File 'lib/csv_decision/table.rb', line 79</span>
521
525
 
522
526
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
527
+ <span class='ivar'>@file</span> <span class='op'>=</span> <span class='kw'>nil</span>
528
+ <span class='ivar'>@index</span> <span class='op'>=</span> <span class='kw'>nil</span>
529
+ <span class='ivar'>@options</span> <span class='op'>=</span> <span class='kw'>nil</span>
530
+ <span class='ivar'>@outs_functions</span> <span class='op'>=</span> <span class='kw'>nil</span>
523
531
  <span class='ivar'>@outs_rows</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
524
532
  <span class='ivar'>@if_rows</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
525
533
  <span class='ivar'>@rows</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
@@ -1370,7 +1378,7 @@ and last row index given.</p>
1370
1378
  </div>
1371
1379
 
1372
1380
  <div id="footer">
1373
- Generated on Sun Jan 21 08:56:46 2018 by
1381
+ Generated on Sun Jan 28 11:58:38 2018 by
1374
1382
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1375
1383
  0.9.12 (ruby-2.4.0).
1376
1384
  </div>
@@ -133,7 +133,7 @@
133
133
  </div>
134
134
 
135
135
  <div id="footer">
136
- Generated on Sun Jan 21 08:56:46 2018 by
136
+ Generated on Sun Jan 28 11:58:38 2018 by
137
137
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
138
138
  0.9.12 (ruby-2.4.0).
139
139
  </div>
@@ -412,7 +412,7 @@ only required at table load time.</p>
412
412
  </div>
413
413
 
414
414
  <div id="footer">
415
- Generated on Sun Jan 21 08:56:46 2018 by
415
+ Generated on Sun Jan 28 11:58:38 2018 by
416
416
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
417
417
  0.9.12 (ruby-2.4.0).
418
418
  </div>
data/doc/CSVDecision.html CHANGED
@@ -143,7 +143,7 @@ LICENSE and README.md for details.</p>
143
143
  <li class="public ">
144
144
  <span class="summary_signature">
145
145
 
146
- <a href="#load-class_method" title="load (class method)">.<strong>load</strong>(path, options = {}) &#x21d2; Hash&lt;CSVDecision::Table&gt; </a>
146
+ <a href="#load-class_method" title="load (class method)">.<strong>load</strong>(path, options = {}) &#x21d2; Hash{Symbol=&gt;&lt;CSVDecision::Table&gt;} </a>
147
147
 
148
148
 
149
149
 
@@ -225,7 +225,7 @@ CSV string or an array of arrays.</p>
225
225
  <div class="method_details first">
226
226
  <h3 class="signature first" id="load-class_method">
227
227
 
228
- .<strong>load</strong>(path, options = {}) &#x21d2; <tt>Hash&lt;<span class='object_link'><a href="CSVDecision/Table.html" title="CSVDecision::Table (class)">CSVDecision::Table</a></span>&gt;</tt>
228
+ .<strong>load</strong>(path, options = {}) &#x21d2; <tt>Hash{Symbol=&gt;&lt;<span class='object_link'><a href="CSVDecision/Table.html" title="CSVDecision::Table (class)">CSVDecision::Table</a></span>&gt;}</tt>
229
229
 
230
230
 
231
231
 
@@ -254,7 +254,7 @@ CSV string or an array of arrays.</p>
254
254
 
255
255
  &mdash;
256
256
  <div class='inline'>
257
- <p>Directory containing CSV files.</p>
257
+ <p>Directory containing CSV decision table files.</p>
258
258
  </div>
259
259
 
260
260
  </li>
@@ -264,7 +264,7 @@ CSV string or an array of arrays.</p>
264
264
  <span class='name'>options</span>
265
265
 
266
266
 
267
- <span class='type'>(<tt>Hash</tt>)</span>
267
+ <span class='type'>(<tt>Hash{Symbol=&gt;Object}</tt>)</span>
268
268
 
269
269
 
270
270
  <em class="default">(defaults to: <tt>{}</tt>)</em>
@@ -272,7 +272,7 @@ CSV string or an array of arrays.</p>
272
272
 
273
273
  &mdash;
274
274
  <div class='inline'>
275
- <p>Options hash used for table creation.</p>
275
+ <p>Options hash controlling how the table is parsed and interpreted.</p>
276
276
  </div>
277
277
 
278
278
  </li>
@@ -285,10 +285,15 @@ CSV string or an array of arrays.</p>
285
285
  <li>
286
286
 
287
287
 
288
- <span class='type'>(<tt>Hash&lt;<span class='object_link'><a href="CSVDecision/Table.html" title="CSVDecision::Table (class)">CSVDecision::Table</a></span>&gt;</tt>)</span>
288
+ <span class='type'>(<tt>Hash{Symbol=&gt;&lt;<span class='object_link'><a href="CSVDecision/Table.html" title="CSVDecision::Table (class)">CSVDecision::Table</a></span>&gt;}</tt>)</span>
289
289
 
290
290
 
291
291
 
292
+ &mdash;
293
+ <div class='inline'>
294
+ <p>Hash of decision tables keyed by the CSV file&#39;s symbolized base name.</p>
295
+ </div>
296
+
292
297
  </li>
293
298
 
294
299
  </ul>
@@ -304,7 +309,7 @@ CSV string or an array of arrays.</p>
304
309
 
305
310
  &mdash;
306
311
  <div class='inline'>
307
- <p>Invalid folder.</p>
312
+ <p>Invalid path name or folder.</p>
308
313
  </div>
309
314
 
310
315
  </li>
@@ -317,12 +322,12 @@ CSV string or an array of arrays.</p>
317
322
  <pre class="lines">
318
323
 
319
324
 
320
- 14
321
325
  15
322
- 16</pre>
326
+ 16
327
+ 17</pre>
323
328
  </td>
324
329
  <td>
325
- <pre class="code"><span class="info file"># File 'lib/csv_decision/load.rb', line 14</span>
330
+ <pre class="code"><span class="info file"># File 'lib/csv_decision/load.rb', line 15</span>
326
331
 
327
332
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load'>load</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
328
333
  <span class='const'><span class='object_link'><a href="CSVDecision/Load.html" title="CSVDecision::Load (module)">Load</a></span></span><span class='period'>.</span><span class='id identifier rubyid_path'><span class='object_link'><a href="CSVDecision/Load.html#path-class_method" title="CSVDecision::Load.path (method)">path</a></span></span><span class='lparen'>(</span><span class='label'>path:</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='label'>options:</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
@@ -390,7 +395,7 @@ table.decide(topic: &#39;finance&#39;, region: &#39;Europe&#39;) #=&gt; team_mem
390
395
  <span class='name'>options</span>
391
396
 
392
397
 
393
- <span class='type'>(<tt>Hash</tt>)</span>
398
+ <span class='type'>(<tt>Hash{Symbol=&gt;Object}</tt>)</span>
394
399
 
395
400
 
396
401
  <em class="default">(defaults to: <tt>{}</tt>)</em>
@@ -398,7 +403,7 @@ table.decide(topic: &#39;finance&#39;, region: &#39;Europe&#39;) #=&gt; team_mem
398
403
 
399
404
  &mdash;
400
405
  <div class='inline'>
401
- <p>Options hash supplied by the user.</p>
406
+ <p>Options hash controlling how the table is parsed and interpreted.</p>
402
407
  </div>
403
408
 
404
409
  </li>
@@ -606,7 +611,7 @@ table.decide(topic: &#39;finance&#39;, region: &#39;Europe&#39;) #=&gt; team_mem
606
611
  </div>
607
612
 
608
613
  <div id="footer">
609
- Generated on Sun Jan 21 08:56:46 2018 by
614
+ Generated on Sun Jan 28 11:58:37 2018 by
610
615
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
611
616
  0.9.12 (ruby-2.4.0).
612
617
  </div>
data/doc/_index.html CHANGED
@@ -440,7 +440,7 @@
440
440
  </div>
441
441
 
442
442
  <div id="footer">
443
- Generated on Sun Jan 21 08:56:44 2018 by
443
+ Generated on Sun Jan 28 11:58:36 2018 by
444
444
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
445
445
  0.9.12 (ruby-2.4.0).
446
446
  </div>
data/doc/file.README.html CHANGED
@@ -385,7 +385,7 @@ href="./LICENSE">LICENSE</a> document for more information.</p>
385
385
  </div></div>
386
386
 
387
387
  <div id="footer">
388
- Generated on Sun Jan 21 08:56:46 2018 by
388
+ Generated on Sun Jan 28 11:58:37 2018 by
389
389
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
390
390
  0.9.12 (ruby-2.4.0).
391
391
  </div>
data/doc/index.html CHANGED
@@ -385,7 +385,7 @@ href="./LICENSE">LICENSE</a> document for more information.</p>
385
385
  </div></div>
386
386
 
387
387
  <div id="footer">
388
- Generated on Sun Jan 21 08:56:45 2018 by
388
+ Generated on Sun Jan 28 11:58:37 2018 by
389
389
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
390
390
  0.9.12 (ruby-2.4.0).
391
391
  </div>