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::Pattern
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::Pattern
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::Pattern";
19
- relpath = '../../';
20
- </script>
18
+ <script type="text/javascript" charset="utf-8">
19
+ pathId = "CSVDecision2::Matchers::Pattern";
20
+ relpath = '../../';
21
+ </script>
21
22
 
22
23
 
23
24
  <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
@@ -25,330 +26,357 @@
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 (P)</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">Pattern</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 (P)</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">Pattern</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::Pattern
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::Pattern</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/pattern.rb</dd>
107
+ </dl>
108
+
60
109
  </div>
61
110
 
62
- <div id="content"><h1>Class: CSVDecision::Matchers::Pattern
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::Pattern</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/pattern.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>Match cell against a regular expression pattern - e.g., <tt>=~ hot|col</tt> or
112
- <tt>.<strong>OPT.</strong></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>
113
118
 
119
+ <p>Match cell against a regular expression pattern - e.g., <tt>=~ hot|col</tt> or
120
+ <tt>.<strong>OPT.</strong></tt>
121
+ </p>
122
+
123
+
124
+ </div>
125
+ </div>
126
+ <div class="tags">
114
127
 
115
- </div>
116
- </div>
117
- <div class="tags">
118
-
119
128
 
120
- </div>
129
+ </div>
121
130
 
122
131
 
123
132
 
124
133
 
125
134
 
126
135
 
127
-
128
- <h2>
129
- Class Method Summary
130
- <small><a href="#" class="summary_toggle">collapse</a></small>
131
- </h2>
132
136
 
133
- <ul class="summary">
134
-
137
+ <h2>
138
+ Class Method Summary
139
+ <small><a href="#" class="summary_toggle">collapse</a></small>
140
+ </h2>
141
+
142
+ <ul class="summary">
143
+
135
144
  <li class="public ">
136
- <span class="summary_signature">
137
-
138
- <a href="#matches%3F-class_method" title="matches? (class method)">.<strong>matches?</strong>(cell, regexp_explicit:) &#x21d2; Boolean </a>
139
-
140
-
141
-
142
- </span>
143
-
144
-
145
-
146
-
147
-
148
-
149
- <span class="private note title">private</span>
150
-
151
-
152
- <span class="summary_desc"><div class='inline'>
153
- <p>(see Pattern#matches).</p>
154
- </div></span>
155
-
156
- </li>
157
-
158
-
159
- </ul>
160
-
161
- <h2>
162
- Instance Method Summary
163
- <small><a href="#" class="summary_toggle">collapse</a></small>
164
- </h2>
165
-
166
- <ul class="summary">
167
-
145
+ <span class="summary_signature">
146
+
147
+ <a href="#matches%3F-class_method" title="matches? (class method)">.<strong>matches?</strong>(cell,
148
+ regexp_explicit:) &#x21d2; Boolean </a>
149
+
150
+
151
+
152
+ </span>
153
+
154
+
155
+
156
+
157
+
158
+
159
+ <span class="private note title">private</span>
160
+
161
+
162
+ <span class="summary_desc">
163
+ <div class='inline'>
164
+ <p>(see Pattern#matches).</p>
165
+ </div>
166
+ </span>
167
+
168
+ </li>
169
+
170
+
171
+ </ul>
172
+
173
+ <h2>
174
+ Instance Method Summary
175
+ <small><a href="#" class="summary_toggle">collapse</a></small>
176
+ </h2>
177
+
178
+ <ul class="summary">
179
+
168
180
  <li class="public ">
169
- <span class="summary_signature">
170
-
171
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(options = {}) &#x21d2; Pattern </a>
172
-
173
-
174
-
175
- </span>
176
-
177
-
178
- <span class="note title constructor">constructor</span>
179
-
180
-
181
-
182
-
183
-
184
- <span class="private note title">private</span>
185
-
186
-
187
- <span class="summary_desc"><div class='inline'>
188
- <p>A new instance of Pattern.</p>
189
- </div></span>
190
-
191
- </li>
192
-
193
-
181
+ <span class="summary_signature">
182
+
183
+ <a href="#initialize-instance_method"
184
+ title="#initialize (instance method)">#<strong>initialize</strong>(options = {}) &#x21d2; Pattern </a>
185
+
186
+
187
+
188
+ </span>
189
+
190
+
191
+ <span class="note title constructor">constructor</span>
192
+
193
+
194
+
195
+
196
+
197
+ <span class="private note title">private</span>
198
+
199
+
200
+ <span class="summary_desc">
201
+ <div class='inline'>
202
+ <p>A new instance of Pattern.</p>
203
+ </div>
204
+ </span>
205
+
206
+ </li>
207
+
208
+
194
209
  <li class="public ">
195
- <span class="summary_signature">
196
-
197
- <a href="#matches%3F-instance_method" title="#matches? (instance method)">#<strong>matches?</strong>(cell) &#x21d2; false, CSVDecision::Proc </a>
198
-
199
-
200
-
201
- </span>
202
-
203
-
204
-
205
-
206
-
207
-
208
- <span class="private note title">private</span>
209
-
210
-
211
- <span class="summary_desc"><div class='inline'>
212
- <p>Recognise a regular expression pattern - e.g., <tt>=~ on|off</tt> or <tt>!~ OPT.*</tt>.</p>
213
- </div></span>
214
-
215
- </li>
216
-
217
-
218
- </ul>
219
-
220
-
221
-
222
-
223
-
224
-
225
-
226
-
227
-
228
-
229
-
230
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Matcher.html" title="CSVDecision::Matchers::Matcher (class)">Matcher</a></span></h3>
231
- <p class="inherited"><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>
232
- <div id="constructor_details" class="method_details_list">
233
- <h2>Constructor Details</h2>
234
-
235
- <div class="method_details first">
236
- <h3 class="signature first" id="initialize-instance_method">
237
-
238
- #<strong>initialize</strong>(options = {}) &#x21d2; <tt><span class='object_link'><a href="" title="CSVDecision::Matchers::Pattern (class)">Pattern</a></span></tt>
239
-
240
-
241
-
242
-
243
-
244
- </h3><div class="docstring">
245
- <div class="discussion">
246
- <p class="note private">
247
- <strong>This method is part of a private API.</strong>
248
- You should avoid using this method if possible, as it may be removed or be changed in the future.
249
- </p>
250
-
251
- <p>Returns a new instance of Pattern</p>
210
+ <span class="summary_signature">
252
211
 
212
+ <a href="#matches%3F-instance_method" title="#matches? (instance method)">#<strong>matches?</strong>(cell)
213
+ &#x21d2; false, CSVDecision2::Proc </a>
253
214
 
254
- </div>
255
- </div>
256
- <div class="tags">
257
- <p class="tag_title">Parameters:</p>
258
- <ul class="param">
259
-
260
- <li>
261
-
262
- <span class='name'>options</span>
263
-
264
-
265
- <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>
266
-
267
-
268
- <em class="default">(defaults to: <tt>{}</tt>)</em>
269
-
270
-
271
- &mdash;
272
- <div class='inline'>
273
- <p>Used to determine the value of regexp_implicit:.</p>
274
- </div>
275
-
276
- </li>
277
-
278
- </ul>
279
-
280
-
281
- </div><table class="source_code">
282
- <tr>
283
- <td>
284
- <pre class="lines">
215
+
216
+
217
+ </span>
218
+
219
+
220
+
221
+
222
+
223
+
224
+ <span class="private note title">private</span>
225
+
226
+
227
+ <span class="summary_desc">
228
+ <div class='inline'>
229
+ <p>Recognise a regular expression pattern - e.g., <tt>=~ on|off</tt> or <tt>!~ OPT.*</tt>.</p>
230
+ </div>
231
+ </span>
232
+
233
+ </li>
234
+
235
+
236
+ </ul>
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Matcher.html"
249
+ title="CSVDecision2::Matchers::Matcher (class)">Matcher</a></span></h3>
250
+ <p class="inherited"><span class='object_link'><a href="Matcher.html#ins%3F-instance_method"
251
+ title="CSVDecision2::Matchers::Matcher#ins? (method)">#ins?</a></span>, <span class='object_link'><a
252
+ href="Matcher.html#outs%3F-instance_method"
253
+ title="CSVDecision2::Matchers::Matcher#outs? (method)">#outs?</a></span></p>
254
+ <div id="constructor_details" class="method_details_list">
255
+ <h2>Constructor Details</h2>
256
+
257
+ <div class="method_details first">
258
+ <h3 class="signature first" id="initialize-instance_method">
259
+
260
+ #<strong>initialize</strong>(options = {}) &#x21d2; <tt><span class='object_link'><a href=""
261
+ title="CSVDecision2::Matchers::Pattern (class)">Pattern</a></span></tt>
262
+
263
+
264
+
265
+
266
+
267
+ </h3>
268
+ <div class="docstring">
269
+ <div class="discussion">
270
+ <p class="note private">
271
+ <strong>This method is part of a private API.</strong>
272
+ You should avoid using this method if possible, as it may be removed or be changed in the future.
273
+ </p>
274
+
275
+ <p>Returns a new instance of Pattern</p>
276
+
277
+
278
+ </div>
279
+ </div>
280
+ <div class="tags">
281
+ <p class="tag_title">Parameters:</p>
282
+ <ul class="param">
283
+
284
+ <li>
285
+
286
+ <span class='name'>options</span>
287
+
288
+
289
+ <span class='type'>(<tt>Hash{<span class='object_link'><a href="Symbol.html"
290
+ title="CSVDecision2::Matchers::Symbol (class)">Symbol</a></span>=&gt;Object}</tt>)</span>
291
+
292
+
293
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
294
+
295
+
296
+ &mdash;
297
+ <div class='inline'>
298
+ <p>Used to determine the value of regexp_implicit:.</p>
299
+ </div>
300
+
301
+ </li>
302
+
303
+ </ul>
304
+
305
+
306
+ </div>
307
+ <table class="source_code">
308
+ <tr>
309
+ <td>
310
+ <pre class="lines">
285
311
 
286
312
 
287
313
  78
288
314
  79
289
315
  80
290
316
  81</pre>
291
- </td>
292
- <td>
293
- <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/pattern.rb', line 78</span>
317
+ </td>
318
+ <td>
319
+ <pre class="code"><span class="info file"># File 'lib/csv_decision2/matchers/pattern.rb', line 78</span>
294
320
 
295
321
  <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
322
  <span class='comment'># By default regexp&#39;s must have an explicit comparator.
297
323
  </span> <span class='ivar'>@regexp_explicit</span> <span class='op'>=</span> <span class='op'>!</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:regexp_implicit</span><span class='rbracket'>]</span>
298
324
  <span class='kw'>end</span></pre>
299
- </td>
300
- </tr>
301
- </table>
302
- </div>
303
-
304
- </div>
325
+ </td>
326
+ </tr>
327
+ </table>
328
+ </div>
305
329
 
330
+ </div>
306
331
 
307
- <div id="class_method_details" class="method_details_list">
308
- <h2>Class Method Details</h2>
309
332
 
310
-
311
- <div class="method_details first">
312
- <h3 class="signature first" id="matches?-class_method">
313
-
314
- .<strong>matches?</strong>(cell, regexp_explicit:) &#x21d2; <tt>Boolean</tt>
315
-
333
+ <div id="class_method_details" class="method_details_list">
334
+ <h2>Class Method Details</h2>
316
335
 
317
-
318
336
 
319
-
320
- </h3><div class="docstring">
321
- <div class="discussion">
322
- <p class="note private">
323
- <strong>This method is part of a private API.</strong>
324
- You should avoid using this method if possible, as it may be removed or be changed in the future.
325
- </p>
337
+ <div class="method_details first">
338
+ <h3 class="signature first" id="matches?-class_method">
326
339
 
327
- <p>(see Pattern#matches)</p>
340
+ .<strong>matches?</strong>(cell, regexp_explicit:) &#x21d2; <tt>Boolean</tt>
328
341
 
329
342
 
330
- </div>
331
- </div>
332
- <div class="tags">
333
-
334
- <p class="tag_title">Returns:</p>
335
- <ul class="return">
336
-
337
- <li>
338
-
339
-
340
- <span class='type'>(<tt>Boolean</tt>)</span>
341
-
342
-
343
-
344
- </li>
345
-
346
- </ul>
347
-
348
- </div><table class="source_code">
349
- <tr>
350
- <td>
351
- <pre class="lines">
343
+
344
+
345
+
346
+ </h3>
347
+ <div class="docstring">
348
+ <div class="discussion">
349
+ <p class="note private">
350
+ <strong>This method is part of a private API.</strong>
351
+ You should avoid using this method if possible, as it may be removed or be changed in the future.
352
+ </p>
353
+
354
+ <p>(see Pattern#matches)</p>
355
+
356
+
357
+ </div>
358
+ </div>
359
+ <div class="tags">
360
+
361
+ <p class="tag_title">Returns:</p>
362
+ <ul class="return">
363
+
364
+ <li>
365
+
366
+
367
+ <span class='type'>(<tt>Boolean</tt>)</span>
368
+
369
+
370
+
371
+ </li>
372
+
373
+ </ul>
374
+
375
+ </div>
376
+ <table class="source_code">
377
+ <tr>
378
+ <td>
379
+ <pre class="lines">
352
380
 
353
381
 
354
382
  65
@@ -362,9 +390,9 @@
362
390
  73
363
391
  74
364
392
  75</pre>
365
- </td>
366
- <td>
367
- <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/pattern.rb', line 65</span>
393
+ </td>
394
+ <td>
395
+ <pre class="code"><span class="info file"># File 'lib/csv_decision2/matchers/pattern.rb', line 65</span>
368
396
 
369
397
  <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='comma'>,</span> <span class='label'>regexp_explicit:</span><span class='rparen'>)</span>
370
398
  <span class='id identifier rubyid_comparator'>comparator</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='id identifier rubyid_regexp?'>regexp?</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'>explicit:</span> <span class='id identifier rubyid_regexp_explicit'>regexp_explicit</span><span class='rparen'>)</span>
@@ -373,119 +401,124 @@
373
401
  </span> <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>unless</span> <span class='id identifier rubyid_comparator'>comparator</span>
374
402
 
375
403
  <span class='comment'># No need for a regular expression if we have simple string inequality
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>
404
+ </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="CSVDecision2::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="CSVDecision2::Matchers.regexp (method)">regexp</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
377
405
 
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>
406
+ <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> <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>
379
407
  <span class='kw'>end</span></pre>
380
- </td>
381
- </tr>
382
- </table>
383
- </div>
384
-
385
- </div>
408
+ </td>
409
+ </tr>
410
+ </table>
411
+ </div>
412
+
413
+ </div>
386
414
 
387
- <div id="instance_method_details" class="method_details_list">
388
- <h2>Instance Method Details</h2>
415
+ <div id="instance_method_details" class="method_details_list">
416
+ <h2>Instance Method Details</h2>
389
417
 
390
-
391
- <div class="method_details first">
392
- <h3 class="signature first" id="matches?-instance_method">
393
-
394
- #<strong>matches?</strong>(cell) &#x21d2; <tt>false</tt>, <tt>CSVDecision::Proc</tt>
395
-
396
418
 
397
-
419
+ <div class="method_details first">
420
+ <h3 class="signature first" id="matches?-instance_method">
398
421
 
399
-
400
- </h3><div class="docstring">
401
- <div class="discussion">
402
- <p class="note private">
403
- <strong>This method is part of a private API.</strong>
404
- You should avoid using this method if possible, as it may be removed or be changed in the future.
405
- </p>
422
+ #<strong>matches?</strong>(cell) &#x21d2; <tt>false</tt>, <tt>CSVDecision2::Proc</tt>
406
423
 
407
- <p>Recognise a regular expression pattern - e.g., <tt>=~ on|off</tt> or <tt>!~ OPT.*</tt>.
408
- If the option regexp_implicit: true has been set, then cells may omit the
409
- <tt>=~</tt> comparator so long as they contain non-word characters typically used
410
- in regular expressions such as <tt>*</tt> and <code>.</code>.</p>
411
424
 
412
425
 
413
- </div>
414
- </div>
415
- <div class="tags">
416
- <p class="tag_title">Parameters:</p>
417
- <ul class="param">
418
-
419
- <li>
420
-
421
- <span class='name'>cell</span>
422
-
423
-
424
- <span class='type'>(<tt>String</tt>)</span>
425
-
426
-
427
-
428
- &mdash;
429
- <div class='inline'>
430
- <p>Data row cell.</p>
431
- </div>
432
-
433
- </li>
434
-
435
- </ul>
436
-
437
- <p class="tag_title">Returns:</p>
438
- <ul class="return">
439
-
440
- <li>
441
-
442
-
443
- <span class='type'>(<tt>false</tt>, <tt>CSVDecision::Proc</tt>)</span>
444
-
445
-
446
-
447
- &mdash;
448
- <div class='inline'>
449
- <p>Returns false if this cell is not a match; otherwise returns the
450
- <code>CSVDecision::Proc</code> object indicating if this is a constant or
451
- some type of function.</p>
452
- </div>
453
-
454
- </li>
455
-
456
- </ul>
457
-
458
- </div><table class="source_code">
459
- <tr>
460
- <td>
461
- <pre class="lines">
426
+
427
+
428
+ </h3>
429
+ <div class="docstring">
430
+ <div class="discussion">
431
+ <p class="note private">
432
+ <strong>This method is part of a private API.</strong>
433
+ You should avoid using this method if possible, as it may be removed or be changed in the future.
434
+ </p>
435
+
436
+ <p>Recognise a regular expression pattern - e.g., <tt>=~ on|off</tt> or <tt>!~ OPT.*</tt>.
437
+ If the option regexp_implicit: true has been set, then cells may omit the
438
+ <tt>=~</tt> comparator so long as they contain non-word characters typically used
439
+ in regular expressions such as <tt>*</tt> and <code>.</code>.
440
+ </p>
441
+
442
+
443
+ </div>
444
+ </div>
445
+ <div class="tags">
446
+ <p class="tag_title">Parameters:</p>
447
+ <ul class="param">
448
+
449
+ <li>
450
+
451
+ <span class='name'>cell</span>
452
+
453
+
454
+ <span class='type'>(<tt>String</tt>)</span>
455
+
456
+
457
+
458
+ &mdash;
459
+ <div class='inline'>
460
+ <p>Data row cell.</p>
461
+ </div>
462
+
463
+ </li>
464
+
465
+ </ul>
466
+
467
+ <p class="tag_title">Returns:</p>
468
+ <ul class="return">
469
+
470
+ <li>
471
+
472
+
473
+ <span class='type'>(<tt>false</tt>, <tt>CSVDecision2::Proc</tt>)</span>
474
+
475
+
476
+
477
+ &mdash;
478
+ <div class='inline'>
479
+ <p>Returns false if this cell is not a match; otherwise returns the
480
+ <code>CSVDecision2::Proc</code> object indicating if this is a constant or
481
+ some type of function.
482
+ </p>
483
+ </div>
484
+
485
+ </li>
486
+
487
+ </ul>
488
+
489
+ </div>
490
+ <table class="source_code">
491
+ <tr>
492
+ <td>
493
+ <pre class="lines">
462
494
 
463
495
 
464
496
  89
465
497
  90
466
498
  91</pre>
467
- </td>
468
- <td>
469
- <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/pattern.rb', line 89</span>
499
+ </td>
500
+ <td>
501
+ <pre class="code"><span class="info file"># File 'lib/csv_decision2/matchers/pattern.rb', line 89</span>
470
502
 
471
503
  <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>
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>
504
+ <span class='const'><span class='object_link'><a href="" title="CSVDecision2::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="CSVDecision2::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>
473
505
  <span class='kw'>end</span></pre>
474
- </td>
475
- </tr>
476
- </table>
477
- </div>
478
-
479
- </div>
506
+ </td>
507
+ </tr>
508
+ </table>
509
+ </div>
480
510
 
481
- </div>
511
+ </div>
482
512
 
483
- <div id="footer">
484
- Generated on Sun Feb 11 10:26:09 2018 by
485
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
486
- 0.9.12 (ruby-2.4.0).
487
- </div>
513
+ </div>
488
514
 
515
+ <div id="footer">
516
+ Generated on Sun Feb 11 10:26:09 2018 by
517
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
518
+ 0.9.12 (ruby-2.4.0).
489
519
  </div>
490
- </body>
491
- </html>
520
+
521
+ </div>
522
+ </body>
523
+
524
+ </html>