csv_decision 0.0.9 → 0.1.0

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 (58) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/README.md +1 -1
  4. data/benchmarks/rufus_decision.rb +3 -5
  5. data/csv_decision.gemspec +1 -3
  6. data/doc/CSVDecision/CellValidationError.html +1 -1
  7. data/doc/CSVDecision/Columns/Dictionary.html +112 -18
  8. data/doc/CSVDecision/Columns.html +112 -81
  9. data/doc/CSVDecision/Data.html +1 -1
  10. data/doc/CSVDecision/Decide.html +1 -1
  11. data/doc/CSVDecision/Decision.html +1 -1
  12. data/doc/CSVDecision/Dictionary/Entry.html +1 -1
  13. data/doc/CSVDecision/Dictionary.html +152 -7
  14. data/doc/CSVDecision/Error.html +1 -1
  15. data/doc/CSVDecision/FileError.html +1 -1
  16. data/doc/CSVDecision/Header.html +1 -1
  17. data/doc/CSVDecision/Input.html +5 -11
  18. data/doc/CSVDecision/Load.html +1 -1
  19. data/doc/CSVDecision/Matchers/Constant.html +1 -1
  20. data/doc/CSVDecision/Matchers/Function.html +1 -1
  21. data/doc/CSVDecision/Matchers/Guard.html +23 -23
  22. data/doc/CSVDecision/Matchers/Matcher.html +13 -13
  23. data/doc/CSVDecision/Matchers/Numeric.html +3 -3
  24. data/doc/CSVDecision/Matchers/Pattern.html +9 -11
  25. data/doc/CSVDecision/Matchers/Proc.html +571 -0
  26. data/doc/CSVDecision/Matchers/Range.html +1 -1
  27. data/doc/CSVDecision/Matchers/Symbol.html +1 -1
  28. data/doc/CSVDecision/Matchers.html +63 -83
  29. data/doc/CSVDecision/Options.html +1 -1
  30. data/doc/CSVDecision/Parse.html +115 -8
  31. data/doc/CSVDecision/Result.html +55 -37
  32. data/doc/CSVDecision/ScanRow.html +3 -3
  33. data/doc/CSVDecision/Table.html +5 -6
  34. data/doc/CSVDecision.html +5 -5
  35. data/doc/_index.html +12 -5
  36. data/doc/class_list.html +1 -1
  37. data/doc/file.README.html +2 -2
  38. data/doc/index.html +2 -2
  39. data/doc/method_list.html +110 -46
  40. data/doc/top-level-namespace.html +1 -1
  41. data/lib/csv_decision/columns.rb +14 -9
  42. data/lib/csv_decision/dictionary.rb +46 -21
  43. data/lib/csv_decision/input.rb +13 -6
  44. data/lib/csv_decision/matchers/constant.rb +1 -1
  45. data/lib/csv_decision/matchers/guard.rb +7 -10
  46. data/lib/csv_decision/matchers/numeric.rb +2 -2
  47. data/lib/csv_decision/matchers/pattern.rb +1 -2
  48. data/lib/csv_decision/matchers/range.rb +1 -1
  49. data/lib/csv_decision/matchers/symbol.rb +1 -1
  50. data/lib/csv_decision/matchers.rb +38 -4
  51. data/lib/csv_decision/parse.rb +100 -5
  52. data/lib/csv_decision/result.rb +23 -7
  53. data/lib/csv_decision/table.rb +2 -2
  54. data/spec/csv_decision/columns_spec.rb +89 -0
  55. data/spec/csv_decision/examples_spec.rb +23 -1
  56. data/spec/csv_decision/input_spec.rb +0 -2
  57. data/spec/csv_decision/table_spec.rb +1 -1
  58. metadata +3 -30
@@ -127,6 +127,30 @@ table load time.</p>
127
127
  <li class="public ">
128
128
  <span class="summary_signature">
129
129
 
130
+ <a href="#add_name-class_method" title="add_name (class method)">.<strong>add_name</strong>(columns:, name:, out: false) &#x21d2; {Symbol=&gt;Symbol} </a>
131
+
132
+
133
+
134
+ </span>
135
+
136
+
137
+
138
+
139
+
140
+
141
+ <span class="private note title">private</span>
142
+
143
+
144
+ <span class="summary_desc"><div class='inline'>
145
+ <p>Add a new symbol to the dictionary of named input and output columns.</p>
146
+ </div></span>
147
+
148
+ </li>
149
+
150
+
151
+ <li class="public ">
152
+ <span class="summary_signature">
153
+
130
154
  <a href="#build-class_method" title="build (class method)">.<strong>build</strong>(header:, dictionary:) &#x21d2; Hash&lt;Hash&gt; </a>
131
155
 
132
156
 
@@ -159,7 +183,128 @@ the header row.</p>
159
183
 
160
184
 
161
185
  <div class="method_details first">
162
- <h3 class="signature first" id="build-class_method">
186
+ <h3 class="signature first" id="add_name-class_method">
187
+
188
+ .<strong>add_name</strong>(columns:, name:, out: false) &#x21d2; <tt>{Symbol=&gt;Symbol}</tt>
189
+
190
+
191
+
192
+
193
+
194
+ </h3><div class="docstring">
195
+ <div class="discussion">
196
+ <p class="note private">
197
+ <strong>This method is part of a private API.</strong>
198
+ You should avoid using this method if possible, as it may be removed or be changed in the future.
199
+ </p>
200
+
201
+ <p>Add a new symbol to the dictionary of named input and output columns.</p>
202
+
203
+
204
+ </div>
205
+ </div>
206
+ <div class="tags">
207
+ <p class="tag_title">Parameters:</p>
208
+ <ul class="param">
209
+
210
+ <li>
211
+
212
+ <span class='name'>columns</span>
213
+
214
+
215
+ <span class='type'>(<tt>{Symbol=&gt;Symbol}</tt>)</span>
216
+
217
+
218
+
219
+ &mdash;
220
+ <div class='inline'>
221
+ <p>Hash of column names with key values :in or :out.</p>
222
+ </div>
223
+
224
+ </li>
225
+
226
+ <li>
227
+
228
+ <span class='name'>name</span>
229
+
230
+
231
+ <span class='type'>(<tt>Symbol</tt>)</span>
232
+
233
+
234
+
235
+ &mdash;
236
+ <div class='inline'>
237
+ <p>Symbolized column name.</p>
238
+ </div>
239
+
240
+ </li>
241
+
242
+ <li>
243
+
244
+ <span class='name'>out</span>
245
+
246
+
247
+ <span class='type'>(<tt>false</tt>, <tt>Index</tt>)</span>
248
+
249
+
250
+
251
+ &mdash;
252
+ <div class='inline'>
253
+ <p>False if an input column, otherwise the index of the output column.</p>
254
+ </div>
255
+
256
+ </li>
257
+
258
+ </ul>
259
+
260
+ <p class="tag_title">Returns:</p>
261
+ <ul class="return">
262
+
263
+ <li>
264
+
265
+
266
+ <span class='type'>(<tt>{Symbol=&gt;Symbol}</tt>)</span>
267
+
268
+
269
+
270
+ &mdash;
271
+ <div class='inline'>
272
+ <p>Column dictionary updated with the new name.</p>
273
+ </div>
274
+
275
+ </li>
276
+
277
+ </ul>
278
+
279
+ </div><table class="source_code">
280
+ <tr>
281
+ <td>
282
+ <pre class="lines">
283
+
284
+
285
+ 52
286
+ 53
287
+ 54
288
+ 55
289
+ 56
290
+ 57</pre>
291
+ </td>
292
+ <td>
293
+ <pre class="code"><span class="info file"># File 'lib/csv_decision/dictionary.rb', line 52</span>
294
+
295
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_add_name'>add_name</span><span class='lparen'>(</span><span class='label'>columns:</span><span class='comma'>,</span> <span class='label'>name:</span><span class='comma'>,</span> <span class='label'>out:</span> <span class='kw'>false</span><span class='rparen'>)</span>
296
+ <span class='id identifier rubyid_validate_name'>validate_name</span><span class='lparen'>(</span><span class='label'>columns:</span> <span class='id identifier rubyid_columns'>columns</span><span class='comma'>,</span> <span class='label'>name:</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='label'>out:</span> <span class='id identifier rubyid_out'>out</span><span class='rparen'>)</span>
297
+
298
+ <span class='id identifier rubyid_columns'>columns</span><span class='lbracket'>[</span><span class='id identifier rubyid_name'>name</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_out'>out</span> <span class='op'>?</span> <span class='id identifier rubyid_out'>out</span> <span class='op'>:</span> <span class='symbol'>:in</span>
299
+ <span class='id identifier rubyid_columns'>columns</span>
300
+ <span class='kw'>end</span></pre>
301
+ </td>
302
+ </tr>
303
+ </table>
304
+ </div>
305
+
306
+ <div class="method_details ">
307
+ <h3 class="signature " id="build-class_method">
163
308
 
164
309
  .<strong>build</strong>(header:, dictionary:) &#x21d2; <tt>Hash&lt;Hash&gt;</tt>
165
310
 
@@ -227,23 +372,23 @@ the header row.</p>
227
372
  <pre class="lines">
228
373
 
229
374
 
375
+ 38
376
+ 39
230
377
  40
231
378
  41
232
379
  42
233
380
  43
234
- 44
235
- 45
236
- 46</pre>
381
+ 44</pre>
237
382
  </td>
238
383
  <td>
239
- <pre class="code"><span class="info file"># File 'lib/csv_decision/dictionary.rb', line 40</span>
384
+ <pre class="code"><span class="info file"># File 'lib/csv_decision/dictionary.rb', line 38</span>
240
385
 
241
386
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_build'>build</span><span class='lparen'>(</span><span class='label'>header:</span><span class='comma'>,</span> <span class='label'>dictionary:</span><span class='rparen'>)</span>
242
387
  <span class='id identifier rubyid_header'>header</span><span class='period'>.</span><span class='id identifier rubyid_each_with_index'>each_with_index</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_cell'>cell</span><span class='comma'>,</span> <span class='id identifier rubyid_index'>index</span><span class='op'>|</span>
243
388
  <span class='id identifier rubyid_dictionary'>dictionary</span> <span class='op'>=</span> <span class='id identifier rubyid_parse_cell'>parse_cell</span><span class='lparen'>(</span><span class='label'>cell:</span> <span class='id identifier rubyid_cell'>cell</span><span class='comma'>,</span> <span class='label'>index:</span> <span class='id identifier rubyid_index'>index</span><span class='comma'>,</span> <span class='label'>dictionary:</span> <span class='id identifier rubyid_dictionary'>dictionary</span><span class='rparen'>)</span>
244
389
  <span class='kw'>end</span>
245
390
 
246
- <span class='id identifier rubyid_validate'>validate</span><span class='lparen'>(</span><span class='id identifier rubyid_dictionary'>dictionary</span><span class='rparen'>)</span>
391
+ <span class='id identifier rubyid_dictionary'>dictionary</span>
247
392
  <span class='kw'>end</span></pre>
248
393
  </td>
249
394
  </tr>
@@ -255,7 +400,7 @@ the header row.</p>
255
400
  </div>
256
401
 
257
402
  <div id="footer">
258
- Generated on Fri Jan 5 21:44:00 2018 by
403
+ Generated on Sat Jan 6 20:03:01 2018 by
259
404
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
260
405
  0.9.12 (ruby-2.4.0).
261
406
  </div>
@@ -129,7 +129,7 @@
129
129
  </div>
130
130
 
131
131
  <div id="footer">
132
- Generated on Fri Jan 5 21:44:00 2018 by
132
+ Generated on Sat Jan 6 20:03:01 2018 by
133
133
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
134
134
  0.9.12 (ruby-2.4.0).
135
135
  </div>
@@ -133,7 +133,7 @@
133
133
  </div>
134
134
 
135
135
  <div id="footer">
136
- Generated on Fri Jan 5 21:44:00 2018 by
136
+ Generated on Sat Jan 6 20:03:01 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>
@@ -419,7 +419,7 @@ method name - note any spaces will have been replaced with underscores.</p>
419
419
  </div>
420
420
 
421
421
  <div id="footer">
422
- Generated on Fri Jan 5 21:44:00 2018 by
422
+ Generated on Sat Jan 6 20:03:01 2018 by
423
423
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
424
424
  0.9.12 (ruby-2.4.0).
425
425
  </div>
@@ -271,10 +271,7 @@ column. Defaults to nil if the key is missing in the input hash.</p>
271
271
  24
272
272
  25
273
273
  26
274
- 27
275
- 28
276
- 29
277
- 30</pre>
274
+ 27</pre>
278
275
  </td>
279
276
  <td>
280
277
  <pre class="code"><span class="info file"># File 'lib/csv_decision/input.rb', line 17</span>
@@ -282,13 +279,10 @@ column. Defaults to nil if the key is missing in the input hash.</p>
282
279
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='label'>table:</span><span class='comma'>,</span> <span class='label'>input:</span><span class='comma'>,</span> <span class='label'>symbolize_keys:</span><span class='rparen'>)</span>
283
280
  <span class='id identifier rubyid_validate'>validate</span><span class='lparen'>(</span><span class='id identifier rubyid_input'>input</span><span class='rparen'>)</span>
284
281
 
285
- <span class='comment'># For safety the default is to symbolize keys and make a copy of the hash.
286
- </span> <span class='comment'># However, if this is turned off then the keys must already symbolized.
287
- </span> <span class='id identifier rubyid_input'>input</span> <span class='op'>=</span> <span class='id identifier rubyid_symbolize_keys'>symbolize_keys</span> <span class='op'>?</span> <span class='id identifier rubyid_input'>input</span><span class='period'>.</span><span class='id identifier rubyid_symbolize_keys'>symbolize_keys</span> <span class='op'>:</span> <span class='id identifier rubyid_input'>input</span>
282
+ <span class='id identifier rubyid_parsed_input'>parsed_input</span> <span class='op'>=</span>
283
+ <span class='id identifier rubyid_parse_input'>parse_input</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_input'>input</span><span class='lparen'>(</span><span class='id identifier rubyid_table'>table</span><span class='comma'>,</span> <span class='id identifier rubyid_input'>input</span><span class='comma'>,</span> <span class='id identifier rubyid_symbolize_keys'>symbolize_keys</span><span class='rparen'>)</span><span class='rparen'>)</span>
288
284
 
289
- <span class='id identifier rubyid_parsed_input'>parsed_input</span> <span class='op'>=</span> <span class='id identifier rubyid_parse_input'>parse_input</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_input'>input</span><span class='rparen'>)</span>
290
-
291
- <span class='comment'># Freeze the copy of the input hash we just created.
285
+ <span class='comment'># We can freeze it as we made our own copy
292
286
  </span> <span class='id identifier rubyid_parsed_input'>parsed_input</span><span class='lbracket'>[</span><span class='symbol'>:hash</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span> <span class='kw'>if</span> <span class='id identifier rubyid_symbolize_keys'>symbolize_keys</span>
293
287
 
294
288
  <span class='id identifier rubyid_parsed_input'>parsed_input</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span>
@@ -303,7 +297,7 @@ column. Defaults to nil if the key is missing in the input hash.</p>
303
297
  </div>
304
298
 
305
299
  <div id="footer">
306
- Generated on Fri Jan 5 21:44:00 2018 by
300
+ Generated on Sat Jan 6 20:03:01 2018 by
307
301
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
308
302
  0.9.12 (ruby-2.4.0).
309
303
  </div>
@@ -281,7 +281,7 @@
281
281
  </div>
282
282
 
283
283
  <div id="footer">
284
- Generated on Fri Jan 5 21:44:00 2018 by
284
+ Generated on Sat Jan 6 20:03:01 2018 by
285
285
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
286
286
  0.9.12 (ruby-2.4.0).
287
287
  </div>
@@ -499,7 +499,7 @@ some type of function.</p>
499
499
  </div>
500
500
 
501
501
  <div id="footer">
502
- Generated on Fri Jan 5 21:44:01 2018 by
502
+ Generated on Sat Jan 6 20:03:02 2018 by
503
503
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
504
504
  0.9.12 (ruby-2.4.0).
505
505
  </div>
@@ -501,7 +501,7 @@ some type of function.</p>
501
501
  </div>
502
502
 
503
503
  <div id="footer">
504
- Generated on Fri Jan 5 21:44:01 2018 by
504
+ Generated on Sat Jan 6 20:03:03 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>
@@ -355,15 +355,15 @@ some type of function.</p>
355
355
  <pre class="lines">
356
356
 
357
357
 
358
+ 129
359
+ 130
360
+ 131
358
361
  132
359
362
  133
360
- 134
361
- 135
362
- 136
363
- 137</pre>
363
+ 134</pre>
364
364
  </td>
365
365
  <td>
366
- <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/guard.rb', line 132</span>
366
+ <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/guard.rb', line 129</span>
367
367
 
368
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>
369
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>
@@ -404,13 +404,13 @@ some type of function.</p>
404
404
  <pre class="lines">
405
405
 
406
406
 
407
- 54
408
- 55
409
- 56
410
- 57</pre>
407
+ 50
408
+ 51
409
+ 52
410
+ 53</pre>
411
411
  </td>
412
412
  <td>
413
- <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/guard.rb', line 54</span>
413
+ <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/guard.rb', line 50</span>
414
414
 
415
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
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'>&amp;&amp;</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'>&amp;&amp;</span>
@@ -449,12 +449,12 @@ some type of function.</p>
449
449
  <pre class="lines">
450
450
 
451
451
 
452
- 50
453
- 51
454
- 52</pre>
452
+ 46
453
+ 47
454
+ 48</pre>
455
455
  </td>
456
456
  <td>
457
- <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/guard.rb', line 50</span>
457
+ <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/guard.rb', line 46</span>
458
458
 
459
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
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'>&amp;&amp;</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>
@@ -542,12 +542,12 @@ some type of function.</p>
542
542
  <pre class="lines">
543
543
 
544
544
 
545
- 141
546
- 142
547
- 143</pre>
545
+ 138
546
+ 139
547
+ 140</pre>
548
548
  </td>
549
549
  <td>
550
- <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/guard.rb', line 141</span>
550
+ <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/guard.rb', line 138</span>
551
551
 
552
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>
553
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>
@@ -605,12 +605,12 @@ some type of function.</p>
605
605
  <pre class="lines">
606
606
 
607
607
 
608
- 146
609
- 147
610
- 148</pre>
608
+ 143
609
+ 144
610
+ 145</pre>
611
611
  </td>
612
612
  <td>
613
- <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/guard.rb', line 146</span>
613
+ <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/guard.rb', line 143</span>
614
614
 
615
615
  <span class='kw'>def</span> <span class='id identifier rubyid_outs?'>outs?</span>
616
616
  <span class='kw'>true</span>
@@ -625,7 +625,7 @@ some type of function.</p>
625
625
  </div>
626
626
 
627
627
  <div id="footer">
628
- Generated on Fri Jan 5 21:44:01 2018 by
628
+ Generated on Sat Jan 6 20:03:02 2018 by
629
629
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
630
630
  0.9.12 (ruby-2.4.0).
631
631
  </div>
@@ -267,10 +267,10 @@
267
267
  <pre class="lines">
268
268
 
269
269
 
270
- 129</pre>
270
+ 163</pre>
271
271
  </td>
272
272
  <td>
273
- <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers.rb', line 129</span>
273
+ <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers.rb', line 163</span>
274
274
 
275
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>
276
276
  </td>
@@ -333,12 +333,12 @@
333
333
  <pre class="lines">
334
334
 
335
335
 
336
- 151
337
- 152
338
- 153</pre>
336
+ 185
337
+ 186
338
+ 187</pre>
339
339
  </td>
340
340
  <td>
341
- <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers.rb', line 151</span>
341
+ <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers.rb', line 185</span>
342
342
 
343
343
  <span class='kw'>def</span> <span class='id identifier rubyid_ins?'>ins?</span>
344
344
  <span class='kw'>true</span>
@@ -418,10 +418,10 @@ some type of function.</p>
418
418
  <pre class="lines">
419
419
 
420
420
 
421
- 137</pre>
421
+ 171</pre>
422
422
  </td>
423
423
  <td>
424
- <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers.rb', line 137</span>
424
+ <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers.rb', line 171</span>
425
425
 
426
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>
427
427
  </td>
@@ -477,12 +477,12 @@ some type of function.</p>
477
477
  <pre class="lines">
478
478
 
479
479
 
480
- 143
481
- 144
482
- 145</pre>
480
+ 177
481
+ 178
482
+ 179</pre>
483
483
  </td>
484
484
  <td>
485
- <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers.rb', line 143</span>
485
+ <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers.rb', line 177</span>
486
486
 
487
487
  <span class='kw'>def</span> <span class='id identifier rubyid_outs?'>outs?</span>
488
488
  <span class='kw'>false</span>
@@ -497,7 +497,7 @@ some type of function.</p>
497
497
  </div>
498
498
 
499
499
  <div id="footer">
500
- Generated on Fri Jan 5 21:44:00 2018 by
500
+ Generated on Sat Jan 6 20:03:02 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>
@@ -313,8 +313,8 @@ some type of function.</p>
313
313
  <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>unless</span> <span class='id identifier rubyid_numeric_cell'>numeric_cell</span>
314
314
 
315
315
  <span class='id identifier rubyid_comparator'>comparator</span> <span class='op'>=</span> <span class='id identifier rubyid_match'>match</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>comparator</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span>
316
- <span class='const'><span class='object_link'><a href="../Matchers.html" title="CSVDecision::Matchers (class)">Matchers</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Matchers.html#Proc-constant" title="CSVDecision::Matchers::Proc (constant)">Proc</a></span></span><span class='period'>.</span><span class='id identifier rubyid_with'>with</span><span class='lparen'>(</span><span class='label'>type:</span> <span class='symbol'>:proc</span><span class='comma'>,</span>
317
- <span class='label'>function:</span> <span class='const'>COMPARATORS</span><span class='lbracket'>[</span><span class='id identifier rubyid_comparator'>comparator</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_curry'>curry</span><span class='lbracket'>[</span><span class='id identifier rubyid_numeric_cell'>numeric_cell</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span><span class='rparen'>)</span>
316
+ <span class='const'><span class='object_link'><a href="../Matchers.html" title="CSVDecision::Matchers (class)">Matchers</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Proc.html" title="CSVDecision::Matchers::Proc (class)">Proc</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Proc.html#initialize-instance_method" title="CSVDecision::Matchers::Proc#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='label'>type:</span> <span class='symbol'>:proc</span><span class='comma'>,</span>
317
+ <span class='label'>function:</span> <span class='const'>COMPARATORS</span><span class='lbracket'>[</span><span class='id identifier rubyid_comparator'>comparator</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_curry'>curry</span><span class='lbracket'>[</span><span class='id identifier rubyid_numeric_cell'>numeric_cell</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span><span class='rparen'>)</span>
318
318
  <span class='kw'>end</span></pre>
319
319
  </td>
320
320
  </tr>
@@ -419,7 +419,7 @@ some type of function.</p>
419
419
  </div>
420
420
 
421
421
  <div id="footer">
422
- Generated on Fri Jan 5 21:44:01 2018 by
422
+ Generated on Sat Jan 6 20:03:02 2018 by
423
423
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
424
424
  0.9.12 (ruby-2.4.0).
425
425
  </div>
@@ -284,13 +284,13 @@
284
284
  <pre class="lines">
285
285
 
286
286
 
287
+ 81
287
288
  82
288
289
  83
289
- 84
290
- 85</pre>
290
+ 84</pre>
291
291
  </td>
292
292
  <td>
293
- <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/pattern.rb', line 82</span>
293
+ <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/pattern.rb', line 81</span>
294
294
 
295
295
  <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='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
296
296
  <span class='comment'># By default regexp&#39;s must have an explicit comparator
@@ -361,8 +361,7 @@
361
361
  75
362
362
  76
363
363
  77
364
- 78
365
- 79</pre>
364
+ 78</pre>
366
365
  </td>
367
366
  <td>
368
367
  <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/pattern.rb', line 68</span>
@@ -376,8 +375,7 @@
376
375
  <span class='comment'># No need for a regular expression if we have simple string inequality
377
376
  </span> <span class='id identifier rubyid_pattern'>pattern</span> <span class='op'>=</span> <span class='id identifier rubyid_comparator'>comparator</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>!=</span><span class='tstring_end'>&#39;</span></span> <span class='op'>?</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>:</span> <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>
378
377
 
379
- <span class='const'><span class='object_link'><a href="../Matchers.html#Proc-constant" title="CSVDecision::Matchers::Proc (constant)">Proc</a></span></span><span class='period'>.</span><span class='id identifier rubyid_with'>with</span><span class='lparen'>(</span><span class='label'>type:</span> <span class='symbol'>:proc</span><span class='comma'>,</span>
380
- <span class='label'>function:</span> <span class='const'>PATTERN_LAMBDAS</span><span class='lbracket'>[</span><span class='id identifier rubyid_comparator'>comparator</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_curry'>curry</span><span class='lbracket'>[</span><span class='id identifier rubyid_pattern'>pattern</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span><span class='rparen'>)</span>
378
+ <span class='const'><span class='object_link'><a href="Proc.html" title="CSVDecision::Matchers::Proc (class)">Proc</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Proc.html#initialize-instance_method" title="CSVDecision::Matchers::Proc#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='label'>type:</span> <span class='symbol'>:proc</span><span class='comma'>,</span> <span class='label'>function:</span> <span class='const'>PATTERN_LAMBDAS</span><span class='lbracket'>[</span><span class='id identifier rubyid_comparator'>comparator</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_curry'>curry</span><span class='lbracket'>[</span><span class='id identifier rubyid_pattern'>pattern</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span><span class='rparen'>)</span>
381
379
  <span class='kw'>end</span></pre>
382
380
  </td>
383
381
  </tr>
@@ -463,12 +461,12 @@ some type of function.</p>
463
461
  <pre class="lines">
464
462
 
465
463
 
464
+ 92
466
465
  93
467
- 94
468
- 95</pre>
466
+ 94</pre>
469
467
  </td>
470
468
  <td>
471
- <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/pattern.rb', line 93</span>
469
+ <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/pattern.rb', line 92</span>
472
470
 
473
471
  <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>
474
472
  <span class='const'><span class='object_link'><a href="" title="CSVDecision::Matchers::Pattern (class)">Pattern</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::Pattern.matches? (method)">matches?</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_cell'>cell</span><span class='comma'>,</span> <span class='label'>regexp_explicit:</span> <span class='ivar'>@regexp_explicit</span><span class='rparen'>)</span>
@@ -483,7 +481,7 @@ some type of function.</p>
483
481
  </div>
484
482
 
485
483
  <div id="footer">
486
- Generated on Fri Jan 5 21:44:01 2018 by
484
+ Generated on Sat Jan 6 20:03:02 2018 by
487
485
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
488
486
  0.9.12 (ruby-2.4.0).
489
487
  </div>