csv_decision2 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
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::Constant
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::Constant
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::Constant";
19
- relpath = '../../';
20
- </script>
18
+ <script type="text/javascript" charset="utf-8">
19
+ pathId = "CSVDecision2::Matchers::Constant";
20
+ relpath = '../../';
21
+ </script>
21
22
 
22
23
 
23
24
  <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
@@ -25,292 +26,319 @@
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 (C)</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">Constant</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 (C)</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">Constant</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::Constant
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::Constant</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/constant.rb</dd>
107
+ </dl>
108
+
60
109
  </div>
61
110
 
62
- <div id="content"><h1>Class: CSVDecision::Matchers::Constant
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::Constant</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/constant.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>Cell constant matcher - e.g., := true, = nil.</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>Cell constant matcher - e.g., := true, = nil.</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>
128
+
120
129
 
121
130
 
122
131
 
123
132
 
124
133
 
125
134
 
126
-
127
- <h2>
128
- Class Method Summary
129
- <small><a href="#" class="summary_toggle">collapse</a></small>
130
- </h2>
135
+ <h2>
136
+ Class Method Summary
137
+ <small><a href="#" class="summary_toggle">collapse</a></small>
138
+ </h2>
139
+
140
+ <ul class="summary">
131
141
 
132
- <ul class="summary">
133
-
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>Returns false if this cell is not a match; otherwise returns the
153
- <code>CSVDecision::Proc</code> object indicating if this is a constant or
154
- some type of function.</p>
155
- </div></span>
156
-
157
- </li>
158
-
159
-
160
- </ul>
161
-
162
- <h2>
163
- Instance Method Summary
164
- <small><a href="#" class="summary_toggle">collapse</a></small>
165
- </h2>
166
-
167
- <ul class="summary">
168
-
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>Returns false if this cell is not a match; otherwise returns the
163
+ <code>CSVDecision2::Proc</code> object indicating if this is a constant or
164
+ some type of function.
165
+ </p>
166
+ </div>
167
+ </span>
168
+
169
+ </li>
170
+
171
+
172
+ </ul>
173
+
174
+ <h2>
175
+ Instance Method Summary
176
+ <small><a href="#" class="summary_toggle">collapse</a></small>
177
+ </h2>
178
+
179
+ <ul class="summary">
180
+
169
181
  <li class="public ">
170
- <span class="summary_signature">
171
-
172
- <a href="#matches%3F-instance_method" title="#matches? (instance method)">#<strong>matches?</strong>(cell) &#x21d2; Boolean </a>
173
-
174
-
175
-
176
- </span>
177
-
178
-
179
-
180
-
181
-
182
-
183
- <span class="private note title">private</span>
184
-
185
-
186
- <span class="summary_desc"><div class='inline'>
187
- <p>If a constant expression returns a Proc of type :constant, otherwise
188
- return false.</p>
189
- </div></span>
190
-
191
- </li>
192
-
193
-
182
+ <span class="summary_signature">
183
+
184
+ <a href="#matches%3F-instance_method" title="#matches? (instance method)">#<strong>matches?</strong>(cell)
185
+ &#x21d2; Boolean </a>
186
+
187
+
188
+
189
+ </span>
190
+
191
+
192
+
193
+
194
+
195
+
196
+ <span class="private note title">private</span>
197
+
198
+
199
+ <span class="summary_desc">
200
+ <div class='inline'>
201
+ <p>If a constant expression returns a Proc of type :constant, otherwise
202
+ return false.</p>
203
+ </div>
204
+ </span>
205
+
206
+ </li>
207
+
208
+
194
209
  <li class="public ">
195
- <span class="summary_signature">
196
-
197
- <a href="#outs%3F-instance_method" title="#outs? (instance method)">#<strong>outs?</strong> &#x21d2; Boolean </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>Does this matcher apply to output cells?.</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#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></p>
232
- <div id="constructor_details" class="method_details_list">
233
- <h2>Constructor Details</h2>
234
-
235
- <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>
236
-
237
- </div>
238
-
239
-
240
- <div id="class_method_details" class="method_details_list">
241
- <h2>Class Method Details</h2>
242
-
243
-
244
- <div class="method_details first">
245
- <h3 class="signature first" id="matches?-class_method">
246
-
247
- .<strong>matches?</strong>(cell) &#x21d2; <tt>false</tt>, <tt>CSVDecision::Proc</tt>
248
-
249
-
250
-
251
-
252
-
253
- </h3><div class="docstring">
254
- <div class="discussion">
255
- <p class="note private">
256
- <strong>This method is part of a private API.</strong>
257
- You should avoid using this method if possible, as it may be removed or be changed in the future.
258
- </p>
259
-
260
- <p>Returns false if this cell is not a match; otherwise returns the
261
- <code>CSVDecision::Proc</code> object indicating if this is a constant or
262
- some type of function.</p>
210
+ <span class="summary_signature">
263
211
 
212
+ <a href="#outs%3F-instance_method" title="#outs? (instance method)">#<strong>outs?</strong> &#x21d2; Boolean
213
+ </a>
214
+
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>Does this matcher apply to output cells?.</p>
230
+ </div>
231
+ </span>
232
+
233
+ </li>
234
+
235
+
236
+ </ul>
264
237
 
265
- </div>
266
- </div>
267
- <div class="tags">
268
- <p class="tag_title">Parameters:</p>
269
- <ul class="param">
270
-
271
- <li>
272
-
273
- <span class='name'>cell</span>
274
-
275
-
276
- <span class='type'>(<tt>String</tt>)</span>
277
-
278
-
279
-
280
- &mdash;
281
- <div class='inline'>
282
- <p>Data row cell.</p>
283
- </div>
284
-
285
- </li>
286
-
287
- </ul>
288
-
289
- <p class="tag_title">Returns:</p>
290
- <ul class="return">
291
-
292
- <li>
293
-
294
-
295
- <span class='type'>(<tt>false</tt>, <tt>CSVDecision::Proc</tt>)</span>
296
-
297
-
298
-
299
- &mdash;
300
- <div class='inline'>
301
- <p>Returns false if this cell is not a match; otherwise returns the
302
- <code>CSVDecision::Proc</code> object indicating if this is a constant or
303
- some type of function.</p>
304
- </div>
305
-
306
- </li>
307
-
308
- </ul>
309
-
310
- </div><table class="source_code">
311
- <tr>
312
- <td>
313
- <pre class="lines">
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#initialize-instance_method"
251
+ title="CSVDecision2::Matchers::Matcher#initialize (method)">#initialize</a></span>, <span
252
+ class='object_link'><a href="Matcher.html#ins%3F-instance_method"
253
+ title="CSVDecision2::Matchers::Matcher#ins? (method)">#ins?</a></span></p>
254
+ <div id="constructor_details" class="method_details_list">
255
+ <h2>Constructor Details</h2>
256
+
257
+ <p class="notice">This class inherits a constructor from <span class='object_link'><a
258
+ href="Matcher.html#initialize-instance_method"
259
+ title="CSVDecision2::Matchers::Matcher#initialize (method)">CSVDecision2::Matchers::Matcher</a></span></p>
260
+
261
+ </div>
262
+
263
+
264
+ <div id="class_method_details" class="method_details_list">
265
+ <h2>Class Method Details</h2>
266
+
267
+
268
+ <div class="method_details first">
269
+ <h3 class="signature first" id="matches?-class_method">
270
+
271
+ .<strong>matches?</strong>(cell) &#x21d2; <tt>false</tt>, <tt>CSVDecision2::Proc</tt>
272
+
273
+
274
+
275
+
276
+
277
+ </h3>
278
+ <div class="docstring">
279
+ <div class="discussion">
280
+ <p class="note private">
281
+ <strong>This method is part of a private API.</strong>
282
+ You should avoid using this method if possible, as it may be removed or be changed in the future.
283
+ </p>
284
+
285
+ <p>Returns false if this cell is not a match; otherwise returns the
286
+ <code>CSVDecision2::Proc</code> object indicating if this is a constant or
287
+ some type of function.
288
+ </p>
289
+
290
+
291
+ </div>
292
+ </div>
293
+ <div class="tags">
294
+ <p class="tag_title">Parameters:</p>
295
+ <ul class="param">
296
+
297
+ <li>
298
+
299
+ <span class='name'>cell</span>
300
+
301
+
302
+ <span class='type'>(<tt>String</tt>)</span>
303
+
304
+
305
+
306
+ &mdash;
307
+ <div class='inline'>
308
+ <p>Data row cell.</p>
309
+ </div>
310
+
311
+ </li>
312
+
313
+ </ul>
314
+
315
+ <p class="tag_title">Returns:</p>
316
+ <ul class="return">
317
+
318
+ <li>
319
+
320
+
321
+ <span class='type'>(<tt>false</tt>, <tt>CSVDecision2::Proc</tt>)</span>
322
+
323
+
324
+
325
+ &mdash;
326
+ <div class='inline'>
327
+ <p>Returns false if this cell is not a match; otherwise returns the
328
+ <code>CSVDecision2::Proc</code> object indicating if this is a constant or
329
+ some type of function.
330
+ </p>
331
+ </div>
332
+
333
+ </li>
334
+
335
+ </ul>
336
+
337
+ </div>
338
+ <table class="source_code">
339
+ <tr>
340
+ <td>
341
+ <pre class="lines">
314
342
 
315
343
 
316
344
  31
@@ -321,9 +349,9 @@ some type of function.</p>
321
349
  36
322
350
  37
323
351
  38</pre>
324
- </td>
325
- <td>
326
- <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/constant.rb', line 31</span>
352
+ </td>
353
+ <td>
354
+ <pre class="code"><span class="info file"># File 'lib/csv_decision2/matchers/constant.rb', line 31</span>
327
355
 
328
356
  <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>
329
357
  <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'>EXPRESSION</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>
@@ -333,152 +361,157 @@ some type of function.</p>
333
361
 
334
362
  <span class='id identifier rubyid_numeric?'>numeric?</span><span class='lparen'>(</span><span class='id identifier rubyid_match'>match</span><span class='rparen'>)</span>
335
363
  <span class='kw'>end</span></pre>
336
- </td>
337
- </tr>
338
- </table>
339
- </div>
340
-
341
- </div>
364
+ </td>
365
+ </tr>
366
+ </table>
367
+ </div>
368
+
369
+ </div>
342
370
 
343
- <div id="instance_method_details" class="method_details_list">
344
- <h2>Instance Method Details</h2>
371
+ <div id="instance_method_details" class="method_details_list">
372
+ <h2>Instance Method Details</h2>
345
373
 
346
-
347
- <div class="method_details first">
348
- <h3 class="signature first" id="matches?-instance_method">
349
-
350
- #<strong>matches?</strong>(cell) &#x21d2; <tt>Boolean</tt>
351
-
352
374
 
353
-
375
+ <div class="method_details first">
376
+ <h3 class="signature first" id="matches?-instance_method">
354
377
 
355
-
356
- </h3><div class="docstring">
357
- <div class="discussion">
358
- <p class="note private">
359
- <strong>This method is part of a private API.</strong>
360
- You should avoid using this method if possible, as it may be removed or be changed in the future.
361
- </p>
378
+ #<strong>matches?</strong>(cell) &#x21d2; <tt>Boolean</tt>
362
379
 
363
- <p>If a constant expression returns a Proc of type :constant,</p>
364
380
 
365
- <pre class="code ruby"><code class="ruby">otherwise return false.</code></pre>
366
381
 
367
- <p>(see Matcher#matches?)</p>
368
382
 
369
383
 
370
- </div>
371
- </div>
372
- <div class="tags">
373
-
374
- <p class="tag_title">Returns:</p>
375
- <ul class="return">
376
-
377
- <li>
378
-
379
-
380
- <span class='type'>(<tt>Boolean</tt>)</span>
381
-
382
-
383
-
384
- </li>
385
-
386
- </ul>
387
-
388
- </div><table class="source_code">
389
- <tr>
390
- <td>
391
- <pre class="lines">
384
+ </h3>
385
+ <div class="docstring">
386
+ <div class="discussion">
387
+ <p class="note private">
388
+ <strong>This method is part of a private API.</strong>
389
+ You should avoid using this method if possible, as it may be removed or be changed in the future.
390
+ </p>
391
+
392
+ <p>If a constant expression returns a Proc of type :constant,</p>
393
+
394
+ <pre class="code ruby"><code class="ruby">otherwise return false.</code></pre>
395
+
396
+ <p>(see Matcher#matches?)</p>
397
+
398
+
399
+ </div>
400
+ </div>
401
+ <div class="tags">
402
+
403
+ <p class="tag_title">Returns:</p>
404
+ <ul class="return">
405
+
406
+ <li>
407
+
408
+
409
+ <span class='type'>(<tt>Boolean</tt>)</span>
410
+
411
+
412
+
413
+ </li>
414
+
415
+ </ul>
416
+
417
+ </div>
418
+ <table class="source_code">
419
+ <tr>
420
+ <td>
421
+ <pre class="lines">
392
422
 
393
423
 
394
424
  64
395
425
  65
396
426
  66</pre>
397
- </td>
398
- <td>
399
- <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/constant.rb', line 64</span>
427
+ </td>
428
+ <td>
429
+ <pre class="code"><span class="info file"># File 'lib/csv_decision2/matchers/constant.rb', line 64</span>
400
430
 
401
431
  <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>
402
- <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="" title="CSVDecision::Matchers::Constant (class)">Constant</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::Constant.matches? (method)">matches?</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_cell'>cell</span><span class='rparen'>)</span>
432
+ <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="" title="CSVDecision2::Matchers::Constant (class)">Constant</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::Constant.matches? (method)">matches?</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_cell'>cell</span><span class='rparen'>)</span>
403
433
  <span class='kw'>end</span></pre>
404
- </td>
405
- </tr>
406
- </table>
407
- </div>
408
-
409
- <div class="method_details ">
410
- <h3 class="signature " id="outs?-instance_method">
411
-
412
- #<strong>outs?</strong> &#x21d2; <tt>Boolean</tt>
413
-
414
-
415
-
416
-
417
-
418
- </h3><div class="docstring">
419
- <div class="discussion">
420
- <p class="note private">
421
- <strong>This method is part of a private API.</strong>
422
- You should avoid using this method if possible, as it may be removed or be changed in the future.
423
- </p>
424
-
425
- <p>Does this matcher apply to output cells?</p>
434
+ </td>
435
+ </tr>
436
+ </table>
437
+ </div>
438
+
439
+ <div class="method_details ">
440
+ <h3 class="signature " id="outs?-instance_method">
441
+
442
+ #<strong>outs?</strong> &#x21d2; <tt>Boolean</tt>
426
443
 
427
444
 
428
- </div>
429
- </div>
430
- <div class="tags">
431
-
432
- <p class="tag_title">Returns:</p>
433
- <ul class="return">
434
-
435
- <li>
436
-
437
-
438
- <span class='type'>(<tt>Boolean</tt>)</span>
439
-
440
-
441
-
442
- &mdash;
443
- <div class='inline'>
444
- <p>Return true if this matcher applies to output cells, false otherwise.</p>
445
- </div>
446
-
447
- </li>
448
-
449
- </ul>
450
-
451
- </div><table class="source_code">
452
- <tr>
453
- <td>
454
- <pre class="lines">
445
+
446
+
447
+
448
+ </h3>
449
+ <div class="docstring">
450
+ <div class="discussion">
451
+ <p class="note private">
452
+ <strong>This method is part of a private API.</strong>
453
+ You should avoid using this method if possible, as it may be removed or be changed in the future.
454
+ </p>
455
+
456
+ <p>Does this matcher apply to output cells?</p>
457
+
458
+
459
+ </div>
460
+ </div>
461
+ <div class="tags">
462
+
463
+ <p class="tag_title">Returns:</p>
464
+ <ul class="return">
465
+
466
+ <li>
467
+
468
+
469
+ <span class='type'>(<tt>Boolean</tt>)</span>
470
+
471
+
472
+
473
+ &mdash;
474
+ <div class='inline'>
475
+ <p>Return true if this matcher applies to output cells, false otherwise.</p>
476
+ </div>
477
+
478
+ </li>
479
+
480
+ </ul>
481
+
482
+ </div>
483
+ <table class="source_code">
484
+ <tr>
485
+ <td>
486
+ <pre class="lines">
455
487
 
456
488
 
457
489
  69
458
490
  70
459
491
  71</pre>
460
- </td>
461
- <td>
462
- <pre class="code"><span class="info file"># File 'lib/csv_decision/matchers/constant.rb', line 69</span>
492
+ </td>
493
+ <td>
494
+ <pre class="code"><span class="info file"># File 'lib/csv_decision2/matchers/constant.rb', line 69</span>
463
495
 
464
496
  <span class='kw'>def</span> <span class='id identifier rubyid_outs?'>outs?</span>
465
497
  <span class='kw'>true</span>
466
498
  <span class='kw'>end</span></pre>
467
- </td>
468
- </tr>
469
- </table>
470
- </div>
471
-
472
- </div>
499
+ </td>
500
+ </tr>
501
+ </table>
502
+ </div>
473
503
 
474
- </div>
504
+ </div>
475
505
 
476
- <div id="footer">
477
- Generated on Sun Feb 11 10:26:09 2018 by
478
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
479
- 0.9.12 (ruby-2.4.0).
480
- </div>
506
+ </div>
481
507
 
508
+ <div id="footer">
509
+ Generated on Sun Feb 11 10:26:09 2018 by
510
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
511
+ 0.9.12 (ruby-2.4.0).
482
512
  </div>
483
- </body>
484
- </html>
513
+
514
+ </div>
515
+ </body>
516
+
517
+ </html>