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.
- checksums.yaml +4 -4
- data/Dockerfile +1 -1
- data/README.md +16 -16
- data/benchmarks/rufus_decision.rb +5 -7
- data/csv_decision2.gemspec +2 -2
- data/doc/CSVDecision/CellValidationError.html +117 -110
- data/doc/CSVDecision/Columns/Default.html +537 -508
- data/doc/CSVDecision/Columns/Dictionary.html +729 -686
- data/doc/CSVDecision/Columns/Entry.html +457 -433
- data/doc/CSVDecision/Columns.html +1134 -1051
- data/doc/CSVDecision/Constant.html +205 -191
- data/doc/CSVDecision/Data.html +423 -398
- data/doc/CSVDecision/Decide.html +236 -225
- data/doc/CSVDecision/Decision.html +872 -825
- data/doc/CSVDecision/Defaults.html +243 -230
- data/doc/CSVDecision/Dictionary/Entry.html +1026 -964
- data/doc/CSVDecision/Dictionary.html +377 -355
- data/doc/CSVDecision/Error.html +116 -105
- data/doc/CSVDecision/FileError.html +117 -110
- data/doc/CSVDecision/Function.html +181 -168
- data/doc/CSVDecision/Guard.html +200 -185
- data/doc/CSVDecision/Header.html +557 -523
- data/doc/CSVDecision/Index.html +652 -617
- data/doc/CSVDecision/Input.html +329 -312
- data/doc/CSVDecision/Load.html +232 -220
- data/doc/CSVDecision/Matchers/Constant.html +432 -399
- data/doc/CSVDecision/Matchers/Function.html +451 -415
- data/doc/CSVDecision/Matchers/Guard.html +459 -424
- data/doc/CSVDecision/Matchers/Matcher.html +470 -426
- data/doc/CSVDecision/Matchers/Numeric.html +375 -346
- data/doc/CSVDecision/Matchers/Pattern.html +429 -396
- data/doc/CSVDecision/Matchers/Proc.html +617 -575
- data/doc/CSVDecision/Matchers/Range.html +331 -302
- data/doc/CSVDecision/Matchers/Symbol.html +386 -353
- data/doc/CSVDecision/Matchers.html +1509 -1393
- data/doc/CSVDecision/Numeric.html +201 -188
- data/doc/CSVDecision/Options.html +376 -357
- data/doc/CSVDecision/Parse.html +217 -204
- data/doc/CSVDecision/Paths.html +664 -629
- data/doc/CSVDecision/Result.html +1076 -1005
- data/doc/CSVDecision/Scan/InputHashes.html +305 -288
- data/doc/CSVDecision/Scan.html +262 -249
- data/doc/CSVDecision/ScanRow.html +749 -705
- data/doc/CSVDecision/Symbol.html +204 -191
- data/doc/CSVDecision/Table.html +1391 -1305
- data/doc/CSVDecision/TableValidationError.html +117 -110
- data/doc/CSVDecision/Validate.html +353 -337
- data/doc/CSVDecision.html +623 -552
- data/doc/_index.html +488 -448
- data/doc/class_list.html +250 -45
- data/doc/file.README.html +304 -278
- data/doc/index.html +304 -278
- data/doc/method_list.html +1159 -1017
- data/doc/top-level-namespace.html +79 -75
- data/lib/{csv_decision → csv_decision2}/columns.rb +7 -7
- data/lib/{csv_decision → csv_decision2}/data.rb +1 -1
- data/lib/{csv_decision → csv_decision2}/decision.rb +5 -5
- data/lib/{csv_decision → csv_decision2}/defaults.rb +2 -2
- data/lib/{csv_decision → csv_decision2}/dictionary.rb +2 -2
- data/lib/{csv_decision → csv_decision2}/header.rb +5 -5
- data/lib/{csv_decision → csv_decision2}/index.rb +5 -5
- data/lib/{csv_decision → csv_decision2}/input.rb +3 -3
- data/lib/{csv_decision → csv_decision2}/load.rb +6 -6
- data/lib/{csv_decision → csv_decision2}/matchers/constant.rb +2 -2
- data/lib/{csv_decision → csv_decision2}/matchers/function.rb +2 -2
- data/lib/{csv_decision → csv_decision2}/matchers/guard.rb +2 -2
- data/lib/{csv_decision → csv_decision2}/matchers/numeric.rb +2 -2
- data/lib/{csv_decision → csv_decision2}/matchers/pattern.rb +2 -2
- data/lib/{csv_decision → csv_decision2}/matchers/range.rb +2 -2
- data/lib/{csv_decision → csv_decision2}/matchers/symbol.rb +2 -2
- data/lib/{csv_decision → csv_decision2}/matchers.rb +5 -5
- data/lib/{csv_decision → csv_decision2}/options.rb +3 -3
- data/lib/{csv_decision → csv_decision2}/parse.rb +14 -14
- data/lib/{csv_decision → csv_decision2}/paths.rb +5 -5
- data/lib/{csv_decision → csv_decision2}/result.rb +2 -2
- data/lib/{csv_decision → csv_decision2}/scan.rb +3 -3
- data/lib/{csv_decision → csv_decision2}/scan_row.rb +2 -2
- data/lib/{csv_decision → csv_decision2}/table.rb +8 -8
- data/lib/{csv_decision → csv_decision2}/validate.rb +2 -2
- data/lib/csv_decision2.rb +45 -0
- data/spec/{csv_decision → csv_decision2}/columns_spec.rb +44 -44
- data/spec/{csv_decision → csv_decision2}/constant_spec.rb +4 -4
- data/spec/{csv_decision → csv_decision2}/data_spec.rb +11 -11
- data/spec/{csv_decision → csv_decision2}/decision_spec.rb +6 -6
- data/spec/{csv_decision → csv_decision2}/examples_spec.rb +14 -14
- data/spec/{csv_decision → csv_decision2}/index_spec.rb +8 -8
- data/spec/{csv_decision → csv_decision2}/input_spec.rb +9 -9
- data/spec/{csv_decision → csv_decision2}/load_spec.rb +8 -8
- data/spec/{csv_decision → csv_decision2}/matchers/function_spec.rb +7 -7
- data/spec/{csv_decision → csv_decision2}/matchers/guard_spec.rb +14 -14
- data/spec/{csv_decision → csv_decision2}/matchers/numeric_spec.rb +5 -5
- data/spec/{csv_decision → csv_decision2}/matchers/pattern_spec.rb +6 -6
- data/spec/{csv_decision → csv_decision2}/matchers/range_spec.rb +5 -5
- data/spec/{csv_decision → csv_decision2}/matchers/symbol_spec.rb +6 -6
- data/spec/{csv_decision → csv_decision2}/options_spec.rb +18 -18
- data/spec/csv_decision2/parse_spec.rb +44 -0
- data/spec/{csv_decision → csv_decision2}/table_spec.rb +17 -17
- data/spec/csv_decision2_spec.rb +7 -0
- metadata +64 -64
- data/lib/csv_decision.rb +0 -45
- data/spec/csv_decision/parse_spec.rb +0 -44
- data/spec/csv_decision_spec.rb +0 -7
@@ -1,23 +1,24 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html>
|
3
|
-
|
4
|
-
|
5
|
-
<meta
|
6
|
-
<
|
7
|
-
|
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::Matcher
|
9
|
+
|
9
10
|
— 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
|
-
|
19
|
-
|
20
|
-
</script>
|
18
|
+
<script type="text/javascript" charset="utf-8">
|
19
|
+
pathId = "CSVDecision2::Matchers::Matcher";
|
20
|
+
relpath = '../../';
|
21
|
+
</script>
|
21
22
|
|
22
23
|
|
23
24
|
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
@@ -25,99 +26,117 @@
|
|
25
26
|
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
26
27
|
|
27
28
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
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 (M)</a> »
|
42
|
+
<span class='title'><span class='object_link'><a href="../../CSVDecision2.html"
|
43
|
+
title="CSVDecision (module)">CSVDecision</a></span></span> » <span class='title'><span
|
44
|
+
class='object_link'><a href="../Matchers.html"
|
45
|
+
title="CSVDecision2::Matchers (class)">Matchers</a></span></span>
|
46
|
+
»
|
47
|
+
<span class="title">Matcher</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="
|
36
|
-
<
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
66
|
+
<div id="content">
|
67
|
+
<h1>Class: CSVDecision2::Matchers::Matcher
|
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">Object</span>
|
78
|
+
|
79
|
+
<ul class="fullTree">
|
80
|
+
<li>Object</li>
|
81
|
+
|
82
|
+
<li class="next">CSVDecision2::Matchers::Matcher</li>
|
83
|
+
|
84
|
+
</ul>
|
85
|
+
<a href="#" class="inheritanceTree">show all</a>
|
86
|
+
|
87
|
+
</dd>
|
88
|
+
</dl>
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
<dl>
|
101
|
+
<dt>Defined in:</dt>
|
102
|
+
<dd>lib/csv_decision2/matchers.rb</dd>
|
103
|
+
</dl>
|
104
|
+
|
60
105
|
</div>
|
61
106
|
|
62
|
-
<
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
<dl>
|
70
|
-
<dt>Inherits:</dt>
|
71
|
-
<dd>
|
72
|
-
<span class="inheritName">Object</span>
|
73
|
-
|
74
|
-
<ul class="fullTree">
|
75
|
-
<li>Object</li>
|
76
|
-
|
77
|
-
<li class="next">CSVDecision::Matchers::Matcher</li>
|
78
|
-
|
79
|
-
</ul>
|
80
|
-
<a href="#" class="inheritanceTree">show all</a>
|
81
|
-
|
82
|
-
</dd>
|
83
|
-
</dl>
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
<dl>
|
96
|
-
<dt>Defined in:</dt>
|
97
|
-
<dd>lib/csv_decision/matchers.rb</dd>
|
98
|
-
</dl>
|
99
|
-
|
100
|
-
</div>
|
101
|
-
|
102
|
-
<h2>Overview</h2><div class="docstring">
|
103
|
-
<div class="discussion">
|
104
|
-
<p class="note private">
|
105
|
-
<strong>This class is part of a private API.</strong>
|
106
|
-
You should avoid using this class if possible, as it may be removed or be changed in the future.
|
107
|
-
</p>
|
108
|
-
|
109
|
-
<p>Subclass and override <span class='object_link'><a href="#matches%3F-instance_method" title="CSVDecision::Matchers::Matcher#matches? (method)">#matches?</a></span> to implement a custom Matcher class.</p>
|
107
|
+
<h2>Overview</h2>
|
108
|
+
<div class="docstring">
|
109
|
+
<div class="discussion">
|
110
|
+
<p class="note private">
|
111
|
+
<strong>This class is part of a private API.</strong>
|
112
|
+
You should avoid using this class if possible, as it may be removed or be changed in the future.
|
113
|
+
</p>
|
110
114
|
|
115
|
+
<p>Subclass and override <span class='object_link'><a href="#matches%3F-instance_method"
|
116
|
+
title="CSVDecision2::Matchers::Matcher#matches? (method)">#matches?</a></span> to implement a custom
|
117
|
+
Matcher class.</p>
|
111
118
|
|
112
|
-
</div>
|
113
|
-
</div>
|
114
|
-
<div class="tags">
|
115
|
-
|
116
119
|
|
117
|
-
</div
|
118
|
-
|
119
|
-
|
120
|
-
|
120
|
+
</div>
|
121
|
+
</div>
|
122
|
+
<div class="tags">
|
123
|
+
|
124
|
+
|
125
|
+
</div>
|
126
|
+
<div id="subclasses">
|
127
|
+
<h2>Direct Known Subclasses</h2>
|
128
|
+
<p class="children"><span class='object_link'><a href="Constant.html"
|
129
|
+
title="CSVDecision2::Matchers::Constant (class)">Constant</a></span>, <span class='object_link'><a
|
130
|
+
href="Function.html" title="CSVDecision2::Matchers::Function (class)">Function</a></span>, <span
|
131
|
+
class='object_link'><a href="Guard.html" title="CSVDecision2::Matchers::Guard (class)">Guard</a></span>,
|
132
|
+
<span class='object_link'><a href="Numeric.html"
|
133
|
+
title="CSVDecision2::Matchers::Numeric (class)">Numeric</a></span>, <span class='object_link'><a
|
134
|
+
href="Pattern.html" title="CSVDecision2::Matchers::Pattern (class)">Pattern</a></span>, <span
|
135
|
+
class='object_link'><a href="Range.html" title="CSVDecision2::Matchers::Range (class)">Range</a></span>,
|
136
|
+
<span class='object_link'><a href="Symbol.html"
|
137
|
+
title="CSVDecision2::Matchers::Symbol (class)">Symbol</a></span>
|
138
|
+
</p>
|
139
|
+
</div>
|
121
140
|
|
122
141
|
|
123
142
|
|
@@ -125,383 +144,408 @@
|
|
125
144
|
|
126
145
|
|
127
146
|
|
128
|
-
|
129
|
-
<h2>
|
130
|
-
Instance Method Summary
|
131
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
132
|
-
</h2>
|
133
147
|
|
134
|
-
|
135
|
-
|
148
|
+
<h2>
|
149
|
+
Instance Method Summary
|
150
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
151
|
+
</h2>
|
152
|
+
|
153
|
+
<ul class="summary">
|
154
|
+
|
136
155
|
<li class="public ">
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
<
|
157
|
-
|
158
|
-
|
159
|
-
</
|
160
|
-
|
161
|
-
|
156
|
+
<span class="summary_signature">
|
157
|
+
|
158
|
+
<a href="#initialize-instance_method"
|
159
|
+
title="#initialize (instance method)">#<strong>initialize</strong>(_options = nil) ⇒ Matcher </a>
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
</span>
|
164
|
+
|
165
|
+
|
166
|
+
<span class="note title constructor">constructor</span>
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
<span class="private note title">private</span>
|
173
|
+
|
174
|
+
|
175
|
+
<span class="summary_desc">
|
176
|
+
<div class='inline'>
|
177
|
+
<p>A new instance of Matcher.</p>
|
178
|
+
</div>
|
179
|
+
</span>
|
180
|
+
|
181
|
+
</li>
|
182
|
+
|
183
|
+
|
162
184
|
<li class="public ">
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
<
|
181
|
-
|
182
|
-
|
183
|
-
</
|
184
|
-
|
185
|
-
|
185
|
+
<span class="summary_signature">
|
186
|
+
|
187
|
+
<a href="#ins%3F-instance_method" title="#ins? (instance method)">#<strong>ins?</strong> ⇒ Boolean
|
188
|
+
</a>
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
</span>
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
<span class="private note title">private</span>
|
200
|
+
|
201
|
+
|
202
|
+
<span class="summary_desc">
|
203
|
+
<div class='inline'>
|
204
|
+
<p>Does this matcher apply to output cells?.</p>
|
205
|
+
</div>
|
206
|
+
</span>
|
207
|
+
|
208
|
+
</li>
|
209
|
+
|
210
|
+
|
186
211
|
<li class="public ">
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
<
|
205
|
-
|
206
|
-
|
207
|
-
</
|
208
|
-
|
209
|
-
|
212
|
+
<span class="summary_signature">
|
213
|
+
|
214
|
+
<a href="#matches%3F-instance_method" title="#matches? (instance method)">#<strong>matches?</strong>(cell)
|
215
|
+
⇒ false, CSVDecision2::Proc </a>
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
</span>
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
<span class="private note title">private</span>
|
227
|
+
|
228
|
+
|
229
|
+
<span class="summary_desc">
|
230
|
+
<div class='inline'>
|
231
|
+
<p>Determine if the input cell string is recognised by this Matcher.</p>
|
232
|
+
</div>
|
233
|
+
</span>
|
234
|
+
|
235
|
+
</li>
|
236
|
+
|
237
|
+
|
210
238
|
<li class="public ">
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
<span class="private note title">private</span>
|
225
|
-
|
226
|
-
|
227
|
-
<span class="summary_desc"><div class='inline'>
|
228
|
-
<p>Does this matcher apply to output cells?.</p>
|
229
|
-
</div></span>
|
230
|
-
|
231
|
-
</li>
|
232
|
-
|
233
|
-
|
234
|
-
</ul>
|
235
|
-
|
236
|
-
|
237
|
-
<div id="constructor_details" class="method_details_list">
|
238
|
-
<h2>Constructor Details</h2>
|
239
|
-
|
240
|
-
<div class="method_details first">
|
241
|
-
<h3 class="signature first" id="initialize-instance_method">
|
242
|
-
|
243
|
-
#<strong>initialize</strong>(_options = nil) ⇒ <tt><span class='object_link'><a href="" title="CSVDecision::Matchers::Matcher (class)">Matcher</a></span></tt>
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
</h3><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>Returns a new instance of Matcher</p>
|
239
|
+
<span class="summary_signature">
|
240
|
+
|
241
|
+
<a href="#outs%3F-instance_method" title="#outs? (instance method)">#<strong>outs?</strong> ⇒ Boolean
|
242
|
+
</a>
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
</span>
|
247
|
+
|
257
248
|
|
258
249
|
|
259
|
-
</div>
|
260
|
-
</div>
|
261
|
-
<div class="tags">
|
262
|
-
|
263
250
|
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
251
|
+
|
252
|
+
|
253
|
+
<span class="private note title">private</span>
|
254
|
+
|
255
|
+
|
256
|
+
<span class="summary_desc">
|
257
|
+
<div class='inline'>
|
258
|
+
<p>Does this matcher apply to output cells?.</p>
|
259
|
+
</div>
|
260
|
+
</span>
|
261
|
+
|
262
|
+
</li>
|
263
|
+
|
264
|
+
|
265
|
+
</ul>
|
266
|
+
|
267
|
+
|
268
|
+
<div id="constructor_details" class="method_details_list">
|
269
|
+
<h2>Constructor Details</h2>
|
270
|
+
|
271
|
+
<div class="method_details first">
|
272
|
+
<h3 class="signature first" id="initialize-instance_method">
|
273
|
+
|
274
|
+
#<strong>initialize</strong>(_options = nil) ⇒ <tt><span class='object_link'><a href=""
|
275
|
+
title="CSVDecision2::Matchers::Matcher (class)">Matcher</a></span></tt>
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
</h3>
|
282
|
+
<div class="docstring">
|
283
|
+
<div class="discussion">
|
284
|
+
<p class="note private">
|
285
|
+
<strong>This method is part of a private API.</strong>
|
286
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
287
|
+
</p>
|
288
|
+
|
289
|
+
<p>Returns a new instance of Matcher</p>
|
290
|
+
|
291
|
+
|
292
|
+
</div>
|
293
|
+
</div>
|
294
|
+
<div class="tags">
|
295
|
+
|
296
|
+
|
297
|
+
</div>
|
298
|
+
<table class="source_code">
|
299
|
+
<tr>
|
300
|
+
<td>
|
301
|
+
<pre class="lines">
|
268
302
|
|
269
303
|
|
270
304
|
193</pre>
|
271
|
-
|
272
|
-
|
273
|
-
|
305
|
+
</td>
|
306
|
+
<td>
|
307
|
+
<pre
|
308
|
+
class="code"><span class="info file"># File 'lib/csv_decision2/matchers.rb', line 193</span>
|
274
309
|
|
275
310
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid__options'>_options</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
276
|
-
|
277
|
-
|
278
|
-
</table>
|
279
|
-
</div>
|
280
|
-
|
281
|
-
</div>
|
311
|
+
</td>
|
312
|
+
</tr>
|
313
|
+
</table>
|
314
|
+
</div>
|
282
315
|
|
316
|
+
</div>
|
283
317
|
|
284
|
-
<div id="instance_method_details" class="method_details_list">
|
285
|
-
<h2>Instance Method Details</h2>
|
286
318
|
|
287
|
-
|
288
|
-
|
289
|
-
<h3 class="signature first" id="ins?-instance_method">
|
290
|
-
|
291
|
-
#<strong>ins?</strong> ⇒ <tt>Boolean</tt>
|
292
|
-
|
319
|
+
<div id="instance_method_details" class="method_details_list">
|
320
|
+
<h2>Instance Method Details</h2>
|
293
321
|
|
294
|
-
|
295
322
|
|
296
|
-
|
297
|
-
|
298
|
-
<div class="discussion">
|
299
|
-
<p class="note private">
|
300
|
-
<strong>This method is part of a private API.</strong>
|
301
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
302
|
-
</p>
|
323
|
+
<div class="method_details first">
|
324
|
+
<h3 class="signature first" id="ins?-instance_method">
|
303
325
|
|
304
|
-
|
326
|
+
#<strong>ins?</strong> ⇒ <tt>Boolean</tt>
|
305
327
|
|
306
328
|
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
<
|
312
|
-
<
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
<
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
329
|
+
|
330
|
+
|
331
|
+
|
332
|
+
</h3>
|
333
|
+
<div class="docstring">
|
334
|
+
<div class="discussion">
|
335
|
+
<p class="note private">
|
336
|
+
<strong>This method is part of a private API.</strong>
|
337
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
338
|
+
</p>
|
339
|
+
|
340
|
+
<p>Does this matcher apply to output cells?</p>
|
341
|
+
|
342
|
+
|
343
|
+
</div>
|
344
|
+
</div>
|
345
|
+
<div class="tags">
|
346
|
+
|
347
|
+
<p class="tag_title">Returns:</p>
|
348
|
+
<ul class="return">
|
349
|
+
|
350
|
+
<li>
|
351
|
+
|
352
|
+
|
353
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
—
|
358
|
+
<div class='inline'>
|
359
|
+
<p>Return true if this matcher applies to input cells, false otherwise.</p>
|
360
|
+
</div>
|
361
|
+
|
362
|
+
</li>
|
363
|
+
|
364
|
+
</ul>
|
365
|
+
|
366
|
+
</div>
|
367
|
+
<table class="source_code">
|
368
|
+
<tr>
|
369
|
+
<td>
|
370
|
+
<pre class="lines">
|
334
371
|
|
335
372
|
|
336
373
|
215
|
337
374
|
216
|
338
375
|
217</pre>
|
339
|
-
|
340
|
-
|
341
|
-
|
376
|
+
</td>
|
377
|
+
<td>
|
378
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/matchers.rb', line 215</span>
|
342
379
|
|
343
380
|
<span class='kw'>def</span> <span class='id identifier rubyid_ins?'>ins?</span>
|
344
381
|
<span class='kw'>true</span>
|
345
382
|
<span class='kw'>end</span></pre>
|
346
|
-
|
347
|
-
|
348
|
-
</table>
|
349
|
-
</div>
|
350
|
-
|
351
|
-
<div class="method_details ">
|
352
|
-
<h3 class="signature " id="matches?-instance_method">
|
353
|
-
|
354
|
-
#<strong>matches?</strong>(cell) ⇒ <tt>false</tt>, <tt>CSVDecision::Proc</tt>
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
</h3><div class="docstring">
|
361
|
-
<div class="discussion">
|
362
|
-
<p class="note private">
|
363
|
-
<strong>This method is part of a private API.</strong>
|
364
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
365
|
-
</p>
|
366
|
-
|
367
|
-
<p>Determine if the input cell string is recognised by this Matcher.</p>
|
383
|
+
</td>
|
384
|
+
</tr>
|
385
|
+
</table>
|
386
|
+
</div>
|
368
387
|
|
388
|
+
<div class="method_details ">
|
389
|
+
<h3 class="signature " id="matches?-instance_method">
|
369
390
|
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
</div>
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
<
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
</
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
391
|
+
#<strong>matches?</strong>(cell) ⇒ <tt>false</tt>, <tt>CSVDecision2::Proc</tt>
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
</h3>
|
398
|
+
<div class="docstring">
|
399
|
+
<div class="discussion">
|
400
|
+
<p class="note private">
|
401
|
+
<strong>This method is part of a private API.</strong>
|
402
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
403
|
+
</p>
|
404
|
+
|
405
|
+
<p>Determine if the input cell string is recognised by this Matcher.</p>
|
406
|
+
|
407
|
+
|
408
|
+
</div>
|
409
|
+
</div>
|
410
|
+
<div class="tags">
|
411
|
+
<p class="tag_title">Parameters:</p>
|
412
|
+
<ul class="param">
|
413
|
+
|
414
|
+
<li>
|
415
|
+
|
416
|
+
<span class='name'>cell</span>
|
417
|
+
|
418
|
+
|
419
|
+
<span class='type'>(<tt>String</tt>)</span>
|
420
|
+
|
421
|
+
|
422
|
+
|
423
|
+
—
|
424
|
+
<div class='inline'>
|
425
|
+
<p>Data row cell.</p>
|
426
|
+
</div>
|
427
|
+
|
428
|
+
</li>
|
429
|
+
|
430
|
+
</ul>
|
431
|
+
|
432
|
+
<p class="tag_title">Returns:</p>
|
433
|
+
<ul class="return">
|
434
|
+
|
435
|
+
<li>
|
436
|
+
|
437
|
+
|
438
|
+
<span class='type'>(<tt>false</tt>, <tt>CSVDecision2::Proc</tt>)</span>
|
439
|
+
|
440
|
+
|
441
|
+
|
442
|
+
—
|
443
|
+
<div class='inline'>
|
444
|
+
<p>Returns false if this cell is not a match; otherwise returns the
|
445
|
+
<code>CSVDecision2::Proc</code> object indicating if this is a constant or
|
446
|
+
some type of function.
|
447
|
+
</p>
|
448
|
+
</div>
|
449
|
+
|
450
|
+
</li>
|
451
|
+
|
452
|
+
</ul>
|
453
|
+
|
454
|
+
</div>
|
455
|
+
<table class="source_code">
|
456
|
+
<tr>
|
457
|
+
<td>
|
458
|
+
<pre class="lines">
|
419
459
|
|
420
460
|
|
421
461
|
201</pre>
|
422
|
-
|
423
|
-
|
424
|
-
|
462
|
+
</td>
|
463
|
+
<td>
|
464
|
+
<pre
|
465
|
+
class="code"><span class="info file"># File 'lib/csv_decision2/matchers.rb', line 201</span>
|
425
466
|
|
426
467
|
<span class='kw'>def</span> <span class='id identifier rubyid_matches?'>matches?</span><span class='lparen'>(</span><span class='id identifier rubyid_cell'>cell</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
427
|
-
|
428
|
-
|
429
|
-
</table>
|
430
|
-
</div>
|
431
|
-
|
432
|
-
<div class="method_details ">
|
433
|
-
<h3 class="signature " id="outs?-instance_method">
|
434
|
-
|
435
|
-
#<strong>outs?</strong> ⇒ <tt>Boolean</tt>
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
</h3><div class="docstring">
|
442
|
-
<div class="discussion">
|
443
|
-
<p class="note private">
|
444
|
-
<strong>This method is part of a private API.</strong>
|
445
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
446
|
-
</p>
|
447
|
-
|
448
|
-
<p>Does this matcher apply to output cells?</p>
|
468
|
+
</td>
|
469
|
+
</tr>
|
470
|
+
</table>
|
471
|
+
</div>
|
449
472
|
|
473
|
+
<div class="method_details ">
|
474
|
+
<h3 class="signature " id="outs?-instance_method">
|
475
|
+
|
476
|
+
#<strong>outs?</strong> ⇒ <tt>Boolean</tt>
|
450
477
|
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
<
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
+
|
479
|
+
|
480
|
+
|
481
|
+
|
482
|
+
</h3>
|
483
|
+
<div class="docstring">
|
484
|
+
<div class="discussion">
|
485
|
+
<p class="note private">
|
486
|
+
<strong>This method is part of a private API.</strong>
|
487
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
488
|
+
</p>
|
489
|
+
|
490
|
+
<p>Does this matcher apply to output cells?</p>
|
491
|
+
|
492
|
+
|
493
|
+
</div>
|
494
|
+
</div>
|
495
|
+
<div class="tags">
|
496
|
+
|
497
|
+
<p class="tag_title">Returns:</p>
|
498
|
+
<ul class="return">
|
499
|
+
|
500
|
+
<li>
|
501
|
+
|
502
|
+
|
503
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
504
|
+
|
505
|
+
|
506
|
+
|
507
|
+
—
|
508
|
+
<div class='inline'>
|
509
|
+
<p>Return true if this matcher applies to output cells, false otherwise.</p>
|
510
|
+
</div>
|
511
|
+
|
512
|
+
</li>
|
513
|
+
|
514
|
+
</ul>
|
515
|
+
|
516
|
+
</div>
|
517
|
+
<table class="source_code">
|
518
|
+
<tr>
|
519
|
+
<td>
|
520
|
+
<pre class="lines">
|
478
521
|
|
479
522
|
|
480
523
|
207
|
481
524
|
208
|
482
525
|
209</pre>
|
483
|
-
|
484
|
-
|
485
|
-
|
526
|
+
</td>
|
527
|
+
<td>
|
528
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/matchers.rb', line 207</span>
|
486
529
|
|
487
530
|
<span class='kw'>def</span> <span class='id identifier rubyid_outs?'>outs?</span>
|
488
531
|
<span class='kw'>false</span>
|
489
532
|
<span class='kw'>end</span></pre>
|
490
|
-
|
491
|
-
|
492
|
-
</table>
|
493
|
-
</div>
|
494
|
-
|
495
|
-
</div>
|
533
|
+
</td>
|
534
|
+
</tr>
|
535
|
+
</table>
|
536
|
+
</div>
|
496
537
|
|
497
|
-
</div>
|
538
|
+
</div>
|
498
539
|
|
499
|
-
|
500
|
-
Generated on Sun Feb 11 10:26:08 2018 by
|
501
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
502
|
-
0.9.12 (ruby-2.4.0).
|
503
|
-
</div>
|
540
|
+
</div>
|
504
541
|
|
542
|
+
<div id="footer">
|
543
|
+
Generated on Sun Feb 11 10:26:08 2018 by
|
544
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
545
|
+
0.9.12 (ruby-2.4.0).
|
505
546
|
</div>
|
506
|
-
|
507
|
-
</
|
547
|
+
|
548
|
+
</div>
|
549
|
+
</body>
|
550
|
+
|
551
|
+
</html>
|