csv_decision2 0.5.1 → 0.5.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 (102) hide show
  1. checksums.yaml +4 -4
  2. data/Dockerfile +1 -1
  3. data/README.md +16 -16
  4. data/benchmarks/rufus_decision.rb +5 -7
  5. data/csv_decision2.gemspec +2 -2
  6. data/doc/CSVDecision/CellValidationError.html +117 -110
  7. data/doc/CSVDecision/Columns/Default.html +537 -508
  8. data/doc/CSVDecision/Columns/Dictionary.html +729 -686
  9. data/doc/CSVDecision/Columns/Entry.html +457 -433
  10. data/doc/CSVDecision/Columns.html +1134 -1051
  11. data/doc/CSVDecision/Constant.html +205 -191
  12. data/doc/CSVDecision/Data.html +423 -398
  13. data/doc/CSVDecision/Decide.html +236 -225
  14. data/doc/CSVDecision/Decision.html +872 -825
  15. data/doc/CSVDecision/Defaults.html +243 -230
  16. data/doc/CSVDecision/Dictionary/Entry.html +1026 -964
  17. data/doc/CSVDecision/Dictionary.html +377 -355
  18. data/doc/CSVDecision/Error.html +116 -105
  19. data/doc/CSVDecision/FileError.html +117 -110
  20. data/doc/CSVDecision/Function.html +181 -168
  21. data/doc/CSVDecision/Guard.html +200 -185
  22. data/doc/CSVDecision/Header.html +557 -523
  23. data/doc/CSVDecision/Index.html +652 -617
  24. data/doc/CSVDecision/Input.html +329 -312
  25. data/doc/CSVDecision/Load.html +232 -220
  26. data/doc/CSVDecision/Matchers/Constant.html +432 -399
  27. data/doc/CSVDecision/Matchers/Function.html +451 -415
  28. data/doc/CSVDecision/Matchers/Guard.html +459 -424
  29. data/doc/CSVDecision/Matchers/Matcher.html +470 -426
  30. data/doc/CSVDecision/Matchers/Numeric.html +375 -346
  31. data/doc/CSVDecision/Matchers/Pattern.html +429 -396
  32. data/doc/CSVDecision/Matchers/Proc.html +617 -575
  33. data/doc/CSVDecision/Matchers/Range.html +331 -302
  34. data/doc/CSVDecision/Matchers/Symbol.html +386 -353
  35. data/doc/CSVDecision/Matchers.html +1509 -1393
  36. data/doc/CSVDecision/Numeric.html +201 -188
  37. data/doc/CSVDecision/Options.html +376 -357
  38. data/doc/CSVDecision/Parse.html +217 -204
  39. data/doc/CSVDecision/Paths.html +664 -629
  40. data/doc/CSVDecision/Result.html +1076 -1005
  41. data/doc/CSVDecision/Scan/InputHashes.html +305 -288
  42. data/doc/CSVDecision/Scan.html +262 -249
  43. data/doc/CSVDecision/ScanRow.html +749 -705
  44. data/doc/CSVDecision/Symbol.html +204 -191
  45. data/doc/CSVDecision/Table.html +1391 -1305
  46. data/doc/CSVDecision/TableValidationError.html +117 -110
  47. data/doc/CSVDecision/Validate.html +353 -337
  48. data/doc/CSVDecision.html +623 -552
  49. data/doc/_index.html +488 -448
  50. data/doc/class_list.html +250 -45
  51. data/doc/file.README.html +304 -278
  52. data/doc/index.html +304 -278
  53. data/doc/method_list.html +1159 -1017
  54. data/doc/top-level-namespace.html +79 -75
  55. data/lib/{csv_decision → csv_decision2}/columns.rb +7 -7
  56. data/lib/{csv_decision → csv_decision2}/data.rb +1 -1
  57. data/lib/{csv_decision → csv_decision2}/decision.rb +5 -5
  58. data/lib/{csv_decision → csv_decision2}/defaults.rb +2 -2
  59. data/lib/{csv_decision → csv_decision2}/dictionary.rb +2 -2
  60. data/lib/{csv_decision → csv_decision2}/header.rb +5 -5
  61. data/lib/{csv_decision → csv_decision2}/index.rb +5 -5
  62. data/lib/{csv_decision → csv_decision2}/input.rb +3 -3
  63. data/lib/{csv_decision → csv_decision2}/load.rb +6 -6
  64. data/lib/{csv_decision → csv_decision2}/matchers/constant.rb +2 -2
  65. data/lib/{csv_decision → csv_decision2}/matchers/function.rb +2 -2
  66. data/lib/{csv_decision → csv_decision2}/matchers/guard.rb +2 -2
  67. data/lib/{csv_decision → csv_decision2}/matchers/numeric.rb +2 -2
  68. data/lib/{csv_decision → csv_decision2}/matchers/pattern.rb +2 -2
  69. data/lib/{csv_decision → csv_decision2}/matchers/range.rb +2 -2
  70. data/lib/{csv_decision → csv_decision2}/matchers/symbol.rb +2 -2
  71. data/lib/{csv_decision → csv_decision2}/matchers.rb +5 -5
  72. data/lib/{csv_decision → csv_decision2}/options.rb +3 -3
  73. data/lib/{csv_decision → csv_decision2}/parse.rb +14 -14
  74. data/lib/{csv_decision → csv_decision2}/paths.rb +5 -5
  75. data/lib/{csv_decision → csv_decision2}/result.rb +2 -2
  76. data/lib/{csv_decision → csv_decision2}/scan.rb +3 -3
  77. data/lib/{csv_decision → csv_decision2}/scan_row.rb +2 -2
  78. data/lib/{csv_decision → csv_decision2}/table.rb +8 -8
  79. data/lib/{csv_decision → csv_decision2}/validate.rb +2 -2
  80. data/lib/csv_decision2.rb +45 -0
  81. data/spec/{csv_decision → csv_decision2}/columns_spec.rb +44 -44
  82. data/spec/{csv_decision → csv_decision2}/constant_spec.rb +4 -4
  83. data/spec/{csv_decision → csv_decision2}/data_spec.rb +11 -11
  84. data/spec/{csv_decision → csv_decision2}/decision_spec.rb +6 -6
  85. data/spec/{csv_decision → csv_decision2}/examples_spec.rb +14 -14
  86. data/spec/{csv_decision → csv_decision2}/index_spec.rb +8 -8
  87. data/spec/{csv_decision → csv_decision2}/input_spec.rb +9 -9
  88. data/spec/{csv_decision → csv_decision2}/load_spec.rb +8 -8
  89. data/spec/{csv_decision → csv_decision2}/matchers/function_spec.rb +7 -7
  90. data/spec/{csv_decision → csv_decision2}/matchers/guard_spec.rb +14 -14
  91. data/spec/{csv_decision → csv_decision2}/matchers/numeric_spec.rb +5 -5
  92. data/spec/{csv_decision → csv_decision2}/matchers/pattern_spec.rb +6 -6
  93. data/spec/{csv_decision → csv_decision2}/matchers/range_spec.rb +5 -5
  94. data/spec/{csv_decision → csv_decision2}/matchers/symbol_spec.rb +6 -6
  95. data/spec/{csv_decision → csv_decision2}/options_spec.rb +18 -18
  96. data/spec/csv_decision2/parse_spec.rb +44 -0
  97. data/spec/{csv_decision → csv_decision2}/table_spec.rb +17 -17
  98. data/spec/csv_decision2_spec.rb +7 -0
  99. metadata +64 -64
  100. data/lib/csv_decision.rb +0 -45
  101. data/spec/csv_decision/parse_spec.rb +0 -44
  102. data/spec/csv_decision_spec.rb +0 -7
@@ -1,23 +1,24 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Class: CSVDecision::Matchers::Numeric
8
-
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <title>
8
+ Class: CSVDecision2::Matchers::Numeric
9
+
9
10
  &mdash; Documentation by YARD 0.9.12
10
-
11
- </title>
11
+
12
+ </title>
12
13
 
13
14
  <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
14
15
 
15
16
  <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
16
17
 
17
- <script type="text/javascript" charset="utf-8">
18
- pathId = "CSVDecision::Matchers::Numeric";
19
- relpath = '../../';
20
- </script>
18
+ <script type="text/javascript" charset="utf-8">
19
+ pathId = "CSVDecision2::Matchers::Numeric";
20
+ relpath = '../../';
21
+ </script>
21
22
 
22
23
 
23
24
  <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
@@ -25,263 +26,287 @@
25
26
  <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
26
27
 
27
28
 
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="../../class_list.html?1"></iframe>
32
- <div id="resizer"></div>
29
+ </head>
30
+
31
+ <body>
32
+ <div class="nav_wrap">
33
+ <iframe id="nav" src="../../class_list.html?1"></iframe>
34
+ <div id="resizer"></div>
35
+ </div>
36
+
37
+ <div id="main" tabindex="-1">
38
+ <div id="header">
39
+ <div id="menu">
40
+
41
+ <a href="../../_index.html">Index (N)</a> &raquo;
42
+ <span class='title'><span class='object_link'><a href="../../CSVDecision2.html"
43
+ title="CSVDecision (module)">CSVDecision</a></span></span> &raquo; <span class='title'><span
44
+ class='object_link'><a href="../Matchers.html"
45
+ title="CSVDecision2::Matchers (class)">Matchers</a></span></span>
46
+ &raquo;
47
+ <span class="title">Numeric</span>
48
+
49
+ </div>
50
+
51
+ <div id="search">
52
+
53
+ <a class="full_list_link" id="class_list_link" href="../../class_list.html">
54
+
55
+ <svg width="24" height="24">
56
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
57
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
58
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
59
+ </svg>
60
+ </a>
61
+
62
+ </div>
63
+ <div class="clear"></div>
33
64
  </div>
34
65
 
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="../../_index.html">Index (N)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../../CSVDecision.html" title="CSVDecision (module)">CSVDecision</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Matchers.html" title="CSVDecision::Matchers (class)">Matchers</a></span></span>
41
- &raquo;
42
- <span class="title">Numeric</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="../../class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
66
+ <div id="content">
67
+ <h1>Class: CSVDecision2::Matchers::Numeric
68
+
69
+
70
+ <span class="private note title">Private</span>
71
+ </h1>
72
+ <div class="box_info">
73
+
74
+ <dl>
75
+ <dt>Inherits:</dt>
76
+ <dd>
77
+ <span class="inheritName"><span class='object_link'><a href="Matcher.html"
78
+ title="CSVDecision2::Matchers::Matcher (class)">Matcher</a></span></span>
79
+
80
+ <ul class="fullTree">
81
+ <li>Object</li>
82
+
83
+ <li class="next"><span class='object_link'><a href="Matcher.html"
84
+ title="CSVDecision2::Matchers::Matcher (class)">Matcher</a></span></li>
85
+
86
+ <li class="next">CSVDecision2::Matchers::Numeric</li>
87
+
88
+ </ul>
89
+ <a href="#" class="inheritanceTree">show all</a>
90
+
91
+ </dd>
92
+ </dl>
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+ <dl>
105
+ <dt>Defined in:</dt>
106
+ <dd>lib/csv_decision2/matchers/numeric.rb</dd>
107
+ </dl>
108
+
60
109
  </div>
61
110
 
62
- <div id="content"><h1>Class: CSVDecision::Matchers::Numeric
63
-
64
-
65
- <span class="private note title">Private</span>
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName"><span class='object_link'><a href="Matcher.html" title="CSVDecision::Matchers::Matcher (class)">Matcher</a></span></span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next"><span class='object_link'><a href="Matcher.html" title="CSVDecision::Matchers::Matcher (class)">Matcher</a></span></li>
78
-
79
- <li class="next">CSVDecision::Matchers::Numeric</li>
80
-
81
- </ul>
82
- <a href="#" class="inheritanceTree">show all</a>
83
-
84
- </dd>
85
- </dl>
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
- <dl>
98
- <dt>Defined in:</dt>
99
- <dd>lib/csv_decision/matchers/numeric.rb</dd>
100
- </dl>
101
-
102
- </div>
103
-
104
- <h2>Overview</h2><div class="docstring">
105
- <div class="discussion">
106
- <p class="note private">
107
- <strong>This class is part of a private API.</strong>
108
- You should avoid using this class if possible, as it may be removed or be changed in the future.
109
- </p>
110
-
111
- <p>Recognise numeric comparison expressions - e.g., <tt>&gt; 100</tt> or <tt>!= 0</tt>.</p>
111
+ <h2>Overview</h2>
112
+ <div class="docstring">
113
+ <div class="discussion">
114
+ <p class="note private">
115
+ <strong>This class is part of a private API.</strong>
116
+ You should avoid using this class if possible, as it may be removed or be changed in the future.
117
+ </p>
112
118
 
119
+ <p>Recognise numeric comparison expressions - e.g., <tt>&gt; 100</tt> or <tt>!= 0</tt>.</p>
113
120
 
114
- </div>
115
- </div>
116
- <div class="tags">
117
-
118
121
 
119
- </div>
122
+ </div>
123
+ </div>
124
+ <div class="tags">
125
+
126
+
127
+ </div>
120
128
 
121
129
 
122
130
 
123
131
 
124
132
 
125
133
 
126
-
127
- <h2>
128
- Class Method Summary
129
- <small><a href="#" class="summary_toggle">collapse</a></small>
130
- </h2>
131
134
 
132
- <ul class="summary">
133
-
135
+ <h2>
136
+ Class Method Summary
137
+ <small><a href="#" class="summary_toggle">collapse</a></small>
138
+ </h2>
139
+
140
+ <ul class="summary">
141
+
134
142
  <li class="public ">
135
- <span class="summary_signature">
136
-
137
- <a href="#matches%3F-class_method" title="matches? (class method)">.<strong>matches?</strong>(cell) &#x21d2; false, CSVDecision::Proc </a>
138
-
139
-
140
-
141
- </span>
142
-
143
-
144
-
145
-
146
-
147
-
148
- <span class="private note title">private</span>
149
-
150
-
151
- <span class="summary_desc"><div class='inline'>
152
- <p>Determine if the input cell string is recognised by this Matcher.</p>
153
- </div></span>
154
-
155
- </li>
156
-
157
-
158
- </ul>
159
-
160
- <h2>
161
- Instance Method Summary
162
- <small><a href="#" class="summary_toggle">collapse</a></small>
163
- </h2>
164
-
165
- <ul class="summary">
166
-
143
+ <span class="summary_signature">
144
+
145
+ <a href="#matches%3F-class_method" title="matches? (class method)">.<strong>matches?</strong>(cell) &#x21d2;
146
+ false, CSVDecision2::Proc </a>
147
+
148
+
149
+
150
+ </span>
151
+
152
+
153
+
154
+
155
+
156
+
157
+ <span class="private note title">private</span>
158
+
159
+
160
+ <span class="summary_desc">
161
+ <div class='inline'>
162
+ <p>Determine if the input cell string is recognised by this Matcher.</p>
163
+ </div>
164
+ </span>
165
+
166
+ </li>
167
+
168
+
169
+ </ul>
170
+
171
+ <h2>
172
+ Instance Method Summary
173
+ <small><a href="#" class="summary_toggle">collapse</a></small>
174
+ </h2>
175
+
176
+ <ul class="summary">
177
+
167
178
  <li class="public ">
168
- <span class="summary_signature">
169
-
170
- <a href="#matches%3F-instance_method" title="#matches? (instance method)">#<strong>matches?</strong>(cell) &#x21d2; false, CSVDecision::Proc </a>
171
-
172
-
173
-
174
- </span>
175
-
176
-
177
-
178
-
179
-
180
-
181
- <span class="private note title">private</span>
182
-
183
-
184
- <span class="summary_desc"><div class='inline'>
185
- <p>Determine if the input cell string is recognised by this Matcher.</p>
186
- </div></span>
187
-
188
- </li>
189
-
190
-
191
- </ul>
192
-
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Matcher.html" title="CSVDecision::Matchers::Matcher (class)">Matcher</a></span></h3>
204
- <p class="inherited"><span class='object_link'><a href="Matcher.html#initialize-instance_method" title="CSVDecision::Matchers::Matcher#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Matcher.html#ins%3F-instance_method" title="CSVDecision::Matchers::Matcher#ins? (method)">#ins?</a></span>, <span class='object_link'><a href="Matcher.html#outs%3F-instance_method" title="CSVDecision::Matchers::Matcher#outs? (method)">#outs?</a></span></p>
205
- <div id="constructor_details" class="method_details_list">
206
- <h2>Constructor Details</h2>
207
-
208
- <p class="notice">This class inherits a constructor from <span class='object_link'><a href="Matcher.html#initialize-instance_method" title="CSVDecision::Matchers::Matcher#initialize (method)">CSVDecision::Matchers::Matcher</a></span></p>
209
-
210
- </div>
211
-
212
-
213
- <div id="class_method_details" class="method_details_list">
214
- <h2>Class Method Details</h2>
215
-
216
-
217
- <div class="method_details first">
218
- <h3 class="signature first" id="matches?-class_method">
219
-
220
- .<strong>matches?</strong>(cell) &#x21d2; <tt>false</tt>, <tt>CSVDecision::Proc</tt>
221
-
222
-
223
-
224
-
225
-
226
- </h3><div class="docstring">
227
- <div class="discussion">
228
- <p class="note private">
229
- <strong>This method is part of a private API.</strong>
230
- You should avoid using this method if possible, as it may be removed or be changed in the future.
231
- </p>
232
-
233
- <p>Determine if the input cell string is recognised by this Matcher.</p>
179
+ <span class="summary_signature">
180
+
181
+ <a href="#matches%3F-instance_method" title="#matches? (instance method)">#<strong>matches?</strong>(cell)
182
+ &#x21d2; false, CSVDecision2::Proc </a>
183
+
184
+
185
+
186
+ </span>
187
+
188
+
189
+
190
+
191
+
192
+
193
+ <span class="private note title">private</span>
194
+
195
+
196
+ <span class="summary_desc">
197
+ <div class='inline'>
198
+ <p>Determine if the input cell string is recognised by this Matcher.</p>
199
+ </div>
200
+ </span>
201
+
202
+ </li>
203
+
204
+
205
+ </ul>
206
+
207
+
234
208
 
235
209
 
236
- </div>
237
- </div>
238
- <div class="tags">
239
- <p class="tag_title">Parameters:</p>
240
- <ul class="param">
241
-
242
- <li>
243
-
244
- <span class='name'>cell</span>
245
-
246
-
247
- <span class='type'>(<tt>String</tt>)</span>
248
-
249
-
250
-
251
- &mdash;
252
- <div class='inline'>
253
- <p>Data row cell.</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>false</tt>, <tt>CSVDecision::Proc</tt>)</span>
267
-
268
-
269
-
270
- &mdash;
271
- <div class='inline'>
272
- <p>Returns false if this cell is not a match; otherwise returns the
273
- <code>CSVDecision::Proc</code> object indicating if this is a constant or
274
- some type of function.</p>
275
- </div>
276
-
277
- </li>
278
-
279
- </ul>
280
-
281
- </div><table class="source_code">
282
- <tr>
283
- <td>
284
- <pre class="lines">
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Matcher.html"
218
+ title="CSVDecision2::Matchers::Matcher (class)">Matcher</a></span></h3>
219
+ <p class="inherited"><span class='object_link'><a href="Matcher.html#initialize-instance_method"
220
+ title="CSVDecision2::Matchers::Matcher#initialize (method)">#initialize</a></span>, <span
221
+ class='object_link'><a href="Matcher.html#ins%3F-instance_method"
222
+ title="CSVDecision2::Matchers::Matcher#ins? (method)">#ins?</a></span>, <span class='object_link'><a
223
+ href="Matcher.html#outs%3F-instance_method"
224
+ title="CSVDecision2::Matchers::Matcher#outs? (method)">#outs?</a></span></p>
225
+ <div id="constructor_details" class="method_details_list">
226
+ <h2>Constructor Details</h2>
227
+
228
+ <p class="notice">This class inherits a constructor from <span class='object_link'><a
229
+ href="Matcher.html#initialize-instance_method"
230
+ title="CSVDecision2::Matchers::Matcher#initialize (method)">CSVDecision2::Matchers::Matcher</a></span></p>
231
+
232
+ </div>
233
+
234
+
235
+ <div id="class_method_details" class="method_details_list">
236
+ <h2>Class Method Details</h2>
237
+
238
+
239
+ <div class="method_details first">
240
+ <h3 class="signature first" id="matches?-class_method">
241
+
242
+ .<strong>matches?</strong>(cell) &#x21d2; <tt>false</tt>, <tt>CSVDecision2::Proc</tt>
243
+
244
+
245
+
246
+
247
+
248
+ </h3>
249
+ <div class="docstring">
250
+ <div class="discussion">
251
+ <p class="note private">
252
+ <strong>This method is part of a private API.</strong>
253
+ You should avoid using this method if possible, as it may be removed or be changed in the future.
254
+ </p>
255
+
256
+ <p>Determine if the input cell string is recognised by this Matcher.</p>
257
+
258
+
259
+ </div>
260
+ </div>
261
+ <div class="tags">
262
+ <p class="tag_title">Parameters:</p>
263
+ <ul class="param">
264
+
265
+ <li>
266
+
267
+ <span class='name'>cell</span>
268
+
269
+
270
+ <span class='type'>(<tt>String</tt>)</span>
271
+
272
+
273
+
274
+ &mdash;
275
+ <div class='inline'>
276
+ <p>Data row cell.</p>
277
+ </div>
278
+
279
+ </li>
280
+
281
+ </ul>
282
+
283
+ <p class="tag_title">Returns:</p>
284
+ <ul class="return">
285
+
286
+ <li>
287
+
288
+
289
+ <span class='type'>(<tt>false</tt>, <tt>CSVDecision2::Proc</tt>)</span>
290
+
291
+
292
+
293
+ &mdash;
294
+ <div class='inline'>
295
+ <p>Returns false if this cell is not a match; otherwise returns the
296
+ <code>CSVDecision2::Proc</code> object indicating if this is a constant or
297
+ some type of function.
298
+ </p>
299
+ </div>
300
+
301
+ </li>
302
+
303
+ </ul>
304
+
305
+ </div>
306
+ <table class="source_code">
307
+ <tr>
308
+ <td>
309
+ <pre class="lines">
285
310
 
286
311
 
287
312
  29
@@ -292,124 +317,128 @@ some type of function.</p>
292
317
  34
293
318
  35
294
319
  36</pre>
295
- </td>
296
- <td>
297
- <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/numeric.rb', line 29</span>
320
+ </td>
321
+ <td>
322
+ <pre class="code"><span class="info file"># File 'lib/csv_decision2/matchers/numeric.rb', line 29</span>
298
323
 
299
324
  <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>
300
325
  <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>unless</span> <span class='lparen'>(</span><span class='id identifier rubyid_match'>match</span> <span class='op'>=</span> <span class='const'>COMPARISON</span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='id identifier rubyid_cell'>cell</span><span class='rparen'>)</span><span class='rparen'>)</span>
301
- <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>unless</span> <span class='lparen'>(</span><span class='id identifier rubyid_numeric_cell'>numeric_cell</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_to_numeric'><span class='object_link'><a href="../Matchers.html#to_numeric-class_method" title="CSVDecision::Matchers.to_numeric (method)">to_numeric</a></span></span><span class='lparen'>(</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'>value</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='rparen'>)</span>
326
+ <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>unless</span> <span class='lparen'>(</span><span class='id identifier rubyid_numeric_cell'>numeric_cell</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Matchers.html" title="CSVDecision2::Matchers (class)">Matchers</a></span></span><span class='period'>.</span><span class='id identifier rubyid_to_numeric'><span class='object_link'><a href="../Matchers.html#to_numeric-class_method" title="CSVDecision2::Matchers.to_numeric (method)">to_numeric</a></span></span><span class='lparen'>(</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'>value</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='rparen'>)</span>
302
327
 
303
328
  <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>
304
- <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>
329
+ <span class='const'><span class='object_link'><a href="../Matchers.html" title="CSVDecision2::Matchers (class)">Matchers</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Proc.html" title="CSVDecision2::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="CSVDecision2::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>
305
330
  <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>
306
331
  <span class='kw'>end</span></pre>
307
- </td>
308
- </tr>
309
- </table>
310
- </div>
311
-
312
- </div>
332
+ </td>
333
+ </tr>
334
+ </table>
335
+ </div>
313
336
 
314
- <div id="instance_method_details" class="method_details_list">
315
- <h2>Instance Method Details</h2>
337
+ </div>
316
338
 
317
-
318
- <div class="method_details first">
319
- <h3 class="signature first" id="matches?-instance_method">
320
-
321
- #<strong>matches?</strong>(cell) &#x21d2; <tt>false</tt>, <tt>CSVDecision::Proc</tt>
322
-
339
+ <div id="instance_method_details" class="method_details_list">
340
+ <h2>Instance Method Details</h2>
323
341
 
324
-
325
342
 
326
-
327
- </h3><div class="docstring">
328
- <div class="discussion">
329
- <p class="note private">
330
- <strong>This method is part of a private API.</strong>
331
- You should avoid using this method if possible, as it may be removed or be changed in the future.
332
- </p>
343
+ <div class="method_details first">
344
+ <h3 class="signature first" id="matches?-instance_method">
333
345
 
334
- <p>Determine if the input cell string is recognised by this Matcher.</p>
346
+ #<strong>matches?</strong>(cell) &#x21d2; <tt>false</tt>, <tt>CSVDecision2::Proc</tt>
347
+
348
+
349
+
350
+
351
+
352
+ </h3>
353
+ <div class="docstring">
354
+ <div class="discussion">
355
+ <p class="note private">
356
+ <strong>This method is part of a private API.</strong>
357
+ You should avoid using this method if possible, as it may be removed or be changed in the future.
358
+ </p>
359
+
360
+ <p>Determine if the input cell string is recognised by this Matcher.</p>
361
+
362
+
363
+ </div>
364
+ </div>
365
+ <div class="tags">
366
+ <p class="tag_title">Parameters:</p>
367
+ <ul class="param">
368
+
369
+ <li>
370
+
371
+ <span class='name'>cell</span>
372
+
373
+
374
+ <span class='type'>(<tt>String</tt>)</span>
335
375
 
336
376
 
337
- </div>
338
- </div>
339
- <div class="tags">
340
- <p class="tag_title">Parameters:</p>
341
- <ul class="param">
342
-
343
- <li>
344
-
345
- <span class='name'>cell</span>
346
-
347
-
348
- <span class='type'>(<tt>String</tt>)</span>
349
-
350
-
351
-
352
- &mdash;
353
- <div class='inline'>
354
- <p>Data row cell.</p>
355
- </div>
356
-
357
- </li>
358
-
359
- </ul>
360
-
361
- <p class="tag_title">Returns:</p>
362
- <ul class="return">
363
-
364
- <li>
365
-
366
-
367
- <span class='type'>(<tt>false</tt>, <tt>CSVDecision::Proc</tt>)</span>
368
-
369
-
370
-
371
- &mdash;
372
- <div class='inline'>
373
- <p>Returns false if this cell is not a match; otherwise returns the
374
- <code>CSVDecision::Proc</code> object indicating if this is a constant or
375
- some type of function.</p>
376
- </div>
377
-
378
- </li>
379
-
380
- </ul>
381
-
382
- </div><table class="source_code">
383
- <tr>
384
- <td>
385
- <pre class="lines">
377
+
378
+ &mdash;
379
+ <div class='inline'>
380
+ <p>Data row cell.</p>
381
+ </div>
382
+
383
+ </li>
384
+
385
+ </ul>
386
+
387
+ <p class="tag_title">Returns:</p>
388
+ <ul class="return">
389
+
390
+ <li>
391
+
392
+
393
+ <span class='type'>(<tt>false</tt>, <tt>CSVDecision2::Proc</tt>)</span>
394
+
395
+
396
+
397
+ &mdash;
398
+ <div class='inline'>
399
+ <p>Returns false if this cell is not a match; otherwise returns the
400
+ <code>CSVDecision2::Proc</code> object indicating if this is a constant or
401
+ some type of function.
402
+ </p>
403
+ </div>
404
+
405
+ </li>
406
+
407
+ </ul>
408
+
409
+ </div>
410
+ <table class="source_code">
411
+ <tr>
412
+ <td>
413
+ <pre class="lines">
386
414
 
387
415
 
388
416
  39
389
417
  40
390
418
  41</pre>
391
- </td>
392
- <td>
393
- <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/numeric.rb', line 39</span>
419
+ </td>
420
+ <td>
421
+ <pre class="code"><span class="info file"># File 'lib/csv_decision2/matchers/numeric.rb', line 39</span>
394
422
 
395
423
  <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>
396
- <span class='const'><span class='object_link'><a href="" title="CSVDecision::Matchers::Numeric (class)">Numeric</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::Numeric.matches? (method)">matches?</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_cell'>cell</span><span class='rparen'>)</span>
424
+ <span class='const'><span class='object_link'><a href="" title="CSVDecision2::Matchers::Numeric (class)">Numeric</a></span></span><span class='period'>.</span><span class='id identifier rubyid_matches?'><span class='object_link'><a href="#matches%3F-class_method" title="CSVDecision2::Matchers::Numeric.matches? (method)">matches?</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_cell'>cell</span><span class='rparen'>)</span>
397
425
  <span class='kw'>end</span></pre>
398
- </td>
399
- </tr>
400
- </table>
401
- </div>
402
-
403
- </div>
426
+ </td>
427
+ </tr>
428
+ </table>
429
+ </div>
404
430
 
405
- </div>
431
+ </div>
406
432
 
407
- <div id="footer">
408
- Generated on Sun Feb 11 10:26:09 2018 by
409
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
410
- 0.9.12 (ruby-2.4.0).
411
- </div>
433
+ </div>
412
434
 
435
+ <div id="footer">
436
+ Generated on Sun Feb 11 10:26:09 2018 by
437
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
438
+ 0.9.12 (ruby-2.4.0).
413
439
  </div>
414
- </body>
415
- </html>
440
+
441
+ </div>
442
+ </body>
443
+
444
+ </html>