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.
- 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::Range
|
|
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::Range";
|
|
20
|
+
relpath = '../../';
|
|
21
|
+
</script>
|
|
21
22
|
|
|
22
23
|
|
|
23
24
|
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
|
@@ -25,240 +26,264 @@
|
|
|
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 (R)</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">Range</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::Range
|
|
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::Range</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/range.rb</dd>
|
|
107
|
+
</dl>
|
|
108
|
+
|
|
60
109
|
</div>
|
|
61
110
|
|
|
62
|
-
<
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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::Range</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/range.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 cells against Ruby-like range expressions or their negation - e.g.,
|
|
112
|
-
<code>0...10</code> or <tt>!a..z</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 cells against Ruby-like range expressions or their negation - e.g.,
|
|
120
|
+
<code>0...10</code> or <tt>!a..z</tt>.
|
|
121
|
+
</p>
|
|
114
122
|
|
|
115
|
-
</div>
|
|
116
|
-
</div>
|
|
117
|
-
<div class="tags">
|
|
118
|
-
|
|
119
123
|
|
|
120
|
-
</div>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
<div class="tags">
|
|
127
|
+
|
|
128
|
+
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
145
|
+
<span class="summary_signature">
|
|
146
|
+
|
|
147
|
+
<a href="#matches%3F-class_method" title="matches? (class method)">.<strong>matches?</strong>(cell) ⇒
|
|
148
|
+
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>Match a table data cell string against a Ruby-like range expression.</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
|
-
|
|
170
|
-
|
|
171
|
-
<a href="#matches%3F-instance_method" title="#matches? (instance method)">#<strong>matches?</strong>(cell) ⇒ false, CSVDecision::Proc </a>
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
</span>
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
<span class="private note title">private</span>
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
<span class="summary_desc"><div class='inline'>
|
|
186
|
-
<p>Ruby-like range expressions or their negation - e.g., <code>0...10</code>
|
|
187
|
-
or <tt>!a..z</tt>.</p>
|
|
188
|
-
</div></span>
|
|
189
|
-
|
|
190
|
-
</li>
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
</ul>
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Matcher.html" title="CSVDecision::Matchers::Matcher (class)">Matcher</a></span></h3>
|
|
206
|
-
<p class="inherited"><span class='object_link'><a href="Matcher.html#initialize-instance_method" title="CSVDecision::Matchers::Matcher#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Matcher.html#ins%3F-instance_method" title="CSVDecision::Matchers::Matcher#ins? (method)">#ins?</a></span>, <span class='object_link'><a href="Matcher.html#outs%3F-instance_method" title="CSVDecision::Matchers::Matcher#outs? (method)">#outs?</a></span></p>
|
|
207
|
-
<div id="constructor_details" class="method_details_list">
|
|
208
|
-
<h2>Constructor Details</h2>
|
|
209
|
-
|
|
210
|
-
<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>
|
|
211
|
-
|
|
212
|
-
</div>
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
<div id="class_method_details" class="method_details_list">
|
|
216
|
-
<h2>Class Method Details</h2>
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
<div class="method_details first">
|
|
220
|
-
<h3 class="signature first" id="matches?-class_method">
|
|
221
|
-
|
|
222
|
-
.<strong>matches?</strong>(cell) ⇒ <tt>Boolean</tt>
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
</h3><div class="docstring">
|
|
229
|
-
<div class="discussion">
|
|
230
|
-
<p class="note private">
|
|
231
|
-
<strong>This method is part of a private API.</strong>
|
|
232
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
233
|
-
</p>
|
|
234
|
-
|
|
235
|
-
<p>Match a table data cell string against a Ruby-like range expression.</p>
|
|
236
|
-
|
|
237
|
-
<p>(see Matcher#matches?)</p>
|
|
181
|
+
<span class="summary_signature">
|
|
238
182
|
|
|
183
|
+
<a href="#matches%3F-instance_method" title="#matches? (instance method)">#<strong>matches?</strong>(cell)
|
|
184
|
+
⇒ false, CSVDecision2::Proc </a>
|
|
239
185
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
</
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
</span>
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
<span class="private note title">private</span>
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
<span class="summary_desc">
|
|
199
|
+
<div class='inline'>
|
|
200
|
+
<p>Ruby-like range expressions or their negation - e.g., <code>0...10</code>
|
|
201
|
+
or <tt>!a..z</tt>.</p>
|
|
202
|
+
</div>
|
|
203
|
+
</span>
|
|
204
|
+
|
|
205
|
+
</li>
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
</ul>
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Matcher.html"
|
|
221
|
+
title="CSVDecision2::Matchers::Matcher (class)">Matcher</a></span></h3>
|
|
222
|
+
<p class="inherited"><span class='object_link'><a href="Matcher.html#initialize-instance_method"
|
|
223
|
+
title="CSVDecision2::Matchers::Matcher#initialize (method)">#initialize</a></span>, <span
|
|
224
|
+
class='object_link'><a href="Matcher.html#ins%3F-instance_method"
|
|
225
|
+
title="CSVDecision2::Matchers::Matcher#ins? (method)">#ins?</a></span>, <span class='object_link'><a
|
|
226
|
+
href="Matcher.html#outs%3F-instance_method"
|
|
227
|
+
title="CSVDecision2::Matchers::Matcher#outs? (method)">#outs?</a></span></p>
|
|
228
|
+
<div id="constructor_details" class="method_details_list">
|
|
229
|
+
<h2>Constructor Details</h2>
|
|
230
|
+
|
|
231
|
+
<p class="notice">This class inherits a constructor from <span class='object_link'><a
|
|
232
|
+
href="Matcher.html#initialize-instance_method"
|
|
233
|
+
title="CSVDecision2::Matchers::Matcher#initialize (method)">CSVDecision2::Matchers::Matcher</a></span></p>
|
|
234
|
+
|
|
235
|
+
</div>
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
<div id="class_method_details" class="method_details_list">
|
|
239
|
+
<h2>Class Method Details</h2>
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
<div class="method_details first">
|
|
243
|
+
<h3 class="signature first" id="matches?-class_method">
|
|
244
|
+
|
|
245
|
+
.<strong>matches?</strong>(cell) ⇒ <tt>Boolean</tt>
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
</h3>
|
|
252
|
+
<div class="docstring">
|
|
253
|
+
<div class="discussion">
|
|
254
|
+
<p class="note private">
|
|
255
|
+
<strong>This method is part of a private API.</strong>
|
|
256
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
257
|
+
</p>
|
|
258
|
+
|
|
259
|
+
<p>Match a table data cell string against a Ruby-like range expression.</p>
|
|
260
|
+
|
|
261
|
+
<p>(see Matcher#matches?)</p>
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
</div>
|
|
265
|
+
</div>
|
|
266
|
+
<div class="tags">
|
|
267
|
+
|
|
268
|
+
<p class="tag_title">Returns:</p>
|
|
269
|
+
<ul class="return">
|
|
270
|
+
|
|
271
|
+
<li>
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
</li>
|
|
279
|
+
|
|
280
|
+
</ul>
|
|
281
|
+
|
|
282
|
+
</div>
|
|
283
|
+
<table class="source_code">
|
|
284
|
+
<tr>
|
|
285
|
+
<td>
|
|
286
|
+
<pre class="lines">
|
|
262
287
|
|
|
263
288
|
|
|
264
289
|
17
|
|
@@ -272,9 +297,9 @@ or <tt>!a..z</tt>.</p>
|
|
|
272
297
|
25
|
|
273
298
|
26
|
|
274
299
|
27</pre>
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
300
|
+
</td>
|
|
301
|
+
<td>
|
|
302
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/matchers/range.rb', line 17</span>
|
|
278
303
|
|
|
279
304
|
<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>
|
|
280
305
|
<span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_match'>match</span> <span class='op'>=</span> <span class='const'>NUMERIC_RANGE</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>
|
|
@@ -287,93 +312,97 @@ or <tt>!a..z</tt>.</p>
|
|
|
287
312
|
|
|
288
313
|
<span class='kw'>false</span>
|
|
289
314
|
<span class='kw'>end</span></pre>
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
</table>
|
|
293
|
-
</div>
|
|
294
|
-
|
|
295
|
-
</div>
|
|
315
|
+
</td>
|
|
316
|
+
</tr>
|
|
317
|
+
</table>
|
|
318
|
+
</div>
|
|
296
319
|
|
|
297
|
-
|
|
298
|
-
<h2>Instance Method Details</h2>
|
|
320
|
+
</div>
|
|
299
321
|
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
<h3 class="signature first" id="matches?-instance_method">
|
|
303
|
-
|
|
304
|
-
#<strong>matches?</strong>(cell) ⇒ <tt>false</tt>, <tt>CSVDecision::Proc</tt>
|
|
305
|
-
|
|
322
|
+
<div id="instance_method_details" class="method_details_list">
|
|
323
|
+
<h2>Instance Method Details</h2>
|
|
306
324
|
|
|
307
|
-
|
|
308
325
|
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
<div class="discussion">
|
|
312
|
-
<p class="note private">
|
|
313
|
-
<strong>This method is part of a private API.</strong>
|
|
314
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
315
|
-
</p>
|
|
326
|
+
<div class="method_details first">
|
|
327
|
+
<h3 class="signature first" id="matches?-instance_method">
|
|
316
328
|
|
|
317
|
-
|
|
318
|
-
or <tt>!a..z</tt>.</p>
|
|
329
|
+
#<strong>matches?</strong>(cell) ⇒ <tt>false</tt>, <tt>CSVDecision2::Proc</tt>
|
|
319
330
|
|
|
320
331
|
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
<
|
|
326
|
-
<
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
<
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
</h3>
|
|
336
|
+
<div class="docstring">
|
|
337
|
+
<div class="discussion">
|
|
338
|
+
<p class="note private">
|
|
339
|
+
<strong>This method is part of a private API.</strong>
|
|
340
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
341
|
+
</p>
|
|
342
|
+
|
|
343
|
+
<p>Ruby-like range expressions or their negation - e.g., <code>0...10</code>
|
|
344
|
+
or <tt>!a..z</tt>.</p>
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
</div>
|
|
348
|
+
</div>
|
|
349
|
+
<div class="tags">
|
|
350
|
+
|
|
351
|
+
<p class="tag_title">Returns:</p>
|
|
352
|
+
<ul class="return">
|
|
353
|
+
|
|
354
|
+
<li>
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
<span class='type'>(<tt>false</tt>, <tt>CSVDecision2::Proc</tt>)</span>
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
—
|
|
362
|
+
<div class='inline'>
|
|
363
|
+
<p>Returns false if this cell is not a match; otherwise returns the
|
|
364
|
+
<code>CSVDecision2::Proc</code> object indicating if this is a constant or
|
|
365
|
+
some type of function.
|
|
366
|
+
</p>
|
|
367
|
+
</div>
|
|
368
|
+
|
|
369
|
+
</li>
|
|
370
|
+
|
|
371
|
+
</ul>
|
|
372
|
+
|
|
373
|
+
</div>
|
|
374
|
+
<table class="source_code">
|
|
375
|
+
<tr>
|
|
376
|
+
<td>
|
|
377
|
+
<pre class="lines">
|
|
350
378
|
|
|
351
379
|
|
|
352
380
|
90
|
|
353
381
|
91
|
|
354
382
|
92</pre>
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
383
|
+
</td>
|
|
384
|
+
<td>
|
|
385
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/matchers/range.rb', line 90</span>
|
|
358
386
|
|
|
359
387
|
<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>
|
|
360
|
-
<span class='const'><span class='object_link'><a href="" title="
|
|
388
|
+
<span class='const'><span class='object_link'><a href="" title="CSVDecision2::Matchers::Range (class)">Range</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::Range.matches? (method)">matches?</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_cell'>cell</span><span class='rparen'>)</span>
|
|
361
389
|
<span class='kw'>end</span></pre>
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
</table>
|
|
365
|
-
</div>
|
|
366
|
-
|
|
367
|
-
</div>
|
|
390
|
+
</td>
|
|
391
|
+
</tr>
|
|
392
|
+
</table>
|
|
393
|
+
</div>
|
|
368
394
|
|
|
369
|
-
</div>
|
|
395
|
+
</div>
|
|
370
396
|
|
|
371
|
-
|
|
372
|
-
Generated on Sun Feb 11 10:26:09 2018 by
|
|
373
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
374
|
-
0.9.12 (ruby-2.4.0).
|
|
375
|
-
</div>
|
|
397
|
+
</div>
|
|
376
398
|
|
|
399
|
+
<div id="footer">
|
|
400
|
+
Generated on Sun Feb 11 10:26:09 2018 by
|
|
401
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
402
|
+
0.9.12 (ruby-2.4.0).
|
|
377
403
|
</div>
|
|
378
|
-
|
|
379
|
-
</
|
|
404
|
+
|
|
405
|
+
</div>
|
|
406
|
+
</body>
|
|
407
|
+
|
|
408
|
+
</html>
|