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::Proc
|
|
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::Proc";
|
|
20
|
+
relpath = '../../';
|
|
21
|
+
</script>
|
|
21
22
|
|
|
22
23
|
|
|
23
24
|
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
|
@@ -25,325 +26,352 @@
|
|
|
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 (P)</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">Proc</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::Proc
|
|
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">Array</span>
|
|
78
|
+
|
|
79
|
+
<ul class="fullTree">
|
|
80
|
+
<li>Object</li>
|
|
81
|
+
|
|
82
|
+
<li class="next">Array</li>
|
|
83
|
+
|
|
84
|
+
<li class="next">CSVDecision2::Matchers::Proc</li>
|
|
85
|
+
|
|
86
|
+
</ul>
|
|
87
|
+
<a href="#" class="inheritanceTree">show all</a>
|
|
88
|
+
|
|
89
|
+
</dd>
|
|
90
|
+
</dl>
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
<dl>
|
|
103
|
+
<dt>Defined in:</dt>
|
|
104
|
+
<dd>lib/csv_decision2/matchers.rb</dd>
|
|
105
|
+
</dl>
|
|
106
|
+
|
|
60
107
|
</div>
|
|
61
108
|
|
|
62
|
-
<
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
<dl>
|
|
70
|
-
<dt>Inherits:</dt>
|
|
71
|
-
<dd>
|
|
72
|
-
<span class="inheritName">Array</span>
|
|
73
|
-
|
|
74
|
-
<ul class="fullTree">
|
|
75
|
-
<li>Object</li>
|
|
76
|
-
|
|
77
|
-
<li class="next">Array</li>
|
|
78
|
-
|
|
79
|
-
<li class="next">CSVDecision::Matchers::Proc</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.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>Composite object for a data cell proc. Note that we do not need it to be
|
|
112
|
-
comparable. Implemented as an immutable array of 2 or 3 entries for memory
|
|
113
|
-
compactness and speed.</p>
|
|
109
|
+
<h2>Overview</h2>
|
|
110
|
+
<div class="docstring">
|
|
111
|
+
<div class="discussion">
|
|
112
|
+
<p class="note private">
|
|
113
|
+
<strong>This class is part of a private API.</strong>
|
|
114
|
+
You should avoid using this class if possible, as it may be removed or be changed in the future.
|
|
115
|
+
</p>
|
|
114
116
|
|
|
117
|
+
<p>Composite object for a data cell proc. Note that we do not need it to be
|
|
118
|
+
comparable. Implemented as an immutable array of 2 or 3 entries for memory
|
|
119
|
+
compactness and speed.</p>
|
|
115
120
|
|
|
116
|
-
</div>
|
|
117
|
-
</div>
|
|
118
|
-
<div class="tags">
|
|
119
|
-
|
|
120
121
|
|
|
121
|
-
</div>
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
<div class="tags">
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
</div>
|
|
128
|
+
|
|
122
129
|
|
|
123
130
|
|
|
124
131
|
|
|
125
132
|
|
|
126
133
|
|
|
127
134
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
135
|
+
<h2>
|
|
136
|
+
Instance Method Summary
|
|
137
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
138
|
+
</h2>
|
|
139
|
+
|
|
140
|
+
<ul class="summary">
|
|
133
141
|
|
|
134
|
-
<ul class="summary">
|
|
135
|
-
|
|
136
142
|
<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
|
-
|
|
143
|
+
<span class="summary_signature">
|
|
144
|
+
|
|
145
|
+
<a href="#call-instance_method" title="#call (instance method)">#<strong>call</strong>(hash:, value: nil)
|
|
146
|
+
⇒ Object </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>Value returned from function call.</p>
|
|
163
|
+
</div>
|
|
164
|
+
</span>
|
|
165
|
+
|
|
166
|
+
</li>
|
|
167
|
+
|
|
168
|
+
|
|
160
169
|
<li class="public ">
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
<
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
</
|
|
182
|
-
|
|
183
|
-
|
|
170
|
+
<span class="summary_signature">
|
|
171
|
+
|
|
172
|
+
<a href="#function-instance_method" title="#function (instance method)">#<strong>function</strong> ⇒
|
|
173
|
+
Object </a>
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
</span>
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
<span class="private note title">private</span>
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
<span class="summary_desc">
|
|
188
|
+
<div class='inline'>
|
|
189
|
+
<p>Either a lambda function, or some kind of constant such as an Integer.</p>
|
|
190
|
+
</div>
|
|
191
|
+
</span>
|
|
192
|
+
|
|
193
|
+
</li>
|
|
194
|
+
|
|
195
|
+
|
|
184
196
|
<li class="public ">
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
197
|
+
<span class="summary_signature">
|
|
198
|
+
|
|
199
|
+
<a href="#initialize-instance_method"
|
|
200
|
+
title="#initialize (instance method)">#<strong>initialize</strong>(type:, function:, symbols: nil)
|
|
201
|
+
⇒ Proc </a>
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
</span>
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
<span class="note title constructor">constructor</span>
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
<span class="private note title">private</span>
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
<span class="summary_desc">
|
|
218
|
+
<div class='inline'>
|
|
219
|
+
<p>A new instance of Proc.</p>
|
|
220
|
+
</div>
|
|
221
|
+
</span>
|
|
222
|
+
|
|
223
|
+
</li>
|
|
224
|
+
|
|
225
|
+
|
|
210
226
|
<li class="public ">
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
<
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
</
|
|
233
|
-
|
|
234
|
-
|
|
227
|
+
<span class="summary_signature">
|
|
228
|
+
|
|
229
|
+
<a href="#symbols-instance_method" title="#symbols (instance method)">#<strong>symbols</strong> ⇒
|
|
230
|
+
nil, ... </a>
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
</span>
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
<span class="private note title">private</span>
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
<span class="summary_desc">
|
|
245
|
+
<div class='inline'>
|
|
246
|
+
<p>The symbol or list of symbols that the function uses to reference input
|
|
247
|
+
hash keys (which are always symbolized).</p>
|
|
248
|
+
</div>
|
|
249
|
+
</span>
|
|
250
|
+
|
|
251
|
+
</li>
|
|
252
|
+
|
|
253
|
+
|
|
235
254
|
<li class="public ">
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
<a href="#type-instance_method" title="#type (instance method)">#<strong>type</strong> ⇒ Symbol </a>
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
</span>
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
<span class="private note title">private</span>
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
<span class="summary_desc"><div class='inline'>
|
|
253
|
-
<p>Type of the function value - e.g., :constant or :guard.</p>
|
|
254
|
-
</div></span>
|
|
255
|
-
|
|
256
|
-
</li>
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
</ul>
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
<div id="constructor_details" class="method_details_list">
|
|
264
|
-
<h2>Constructor Details</h2>
|
|
265
|
-
|
|
266
|
-
<div class="method_details first">
|
|
267
|
-
<h3 class="signature first" id="initialize-instance_method">
|
|
268
|
-
|
|
269
|
-
#<strong>initialize</strong>(type:, function:, symbols: nil) ⇒ <tt><span class='object_link'><a href="" title="CSVDecision::Matchers::Proc (class)">Proc</a></span></tt>
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
</h3><div class="docstring">
|
|
276
|
-
<div class="discussion">
|
|
277
|
-
<p class="note private">
|
|
278
|
-
<strong>This method is part of a private API.</strong>
|
|
279
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
280
|
-
</p>
|
|
281
|
-
|
|
282
|
-
<p>Returns a new instance of Proc</p>
|
|
255
|
+
<span class="summary_signature">
|
|
283
256
|
|
|
257
|
+
<a href="#type-instance_method" title="#type (instance method)">#<strong>type</strong> ⇒ Symbol </a>
|
|
284
258
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
</
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
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
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
</span>
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
<span class="private note title">private</span>
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
<span class="summary_desc">
|
|
272
|
+
<div class='inline'>
|
|
273
|
+
<p>Type of the function value - e.g., :constant or :guard.</p>
|
|
274
|
+
</div>
|
|
275
|
+
</span>
|
|
276
|
+
|
|
277
|
+
</li>
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
</ul>
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
<div id="constructor_details" class="method_details_list">
|
|
285
|
+
<h2>Constructor Details</h2>
|
|
286
|
+
|
|
287
|
+
<div class="method_details first">
|
|
288
|
+
<h3 class="signature first" id="initialize-instance_method">
|
|
289
|
+
|
|
290
|
+
#<strong>initialize</strong>(type:, function:, symbols: nil) ⇒ <tt><span class='object_link'><a
|
|
291
|
+
href="" title="CSVDecision2::Matchers::Proc (class)">Proc</a></span></tt>
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
</h3>
|
|
298
|
+
<div class="docstring">
|
|
299
|
+
<div class="discussion">
|
|
300
|
+
<p class="note private">
|
|
301
|
+
<strong>This method is part of a private API.</strong>
|
|
302
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
303
|
+
</p>
|
|
304
|
+
|
|
305
|
+
<p>Returns a new instance of Proc</p>
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
</div>
|
|
309
|
+
</div>
|
|
310
|
+
<div class="tags">
|
|
311
|
+
<p class="tag_title">Parameters:</p>
|
|
312
|
+
<ul class="param">
|
|
313
|
+
|
|
314
|
+
<li>
|
|
315
|
+
|
|
316
|
+
<span class='name'>type</span>
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
<span class='type'>(<tt><span class='object_link'><a href="Symbol.html"
|
|
320
|
+
title="CSVDecision2::Matchers::Symbol (class)">Symbol</a></span></tt>)</span>
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
—
|
|
325
|
+
<div class='inline'>
|
|
326
|
+
<p>Type of the function value - e.g., :constant or :guard.</p>
|
|
327
|
+
</div>
|
|
328
|
+
|
|
329
|
+
</li>
|
|
330
|
+
|
|
331
|
+
<li>
|
|
332
|
+
|
|
333
|
+
<span class='name'>function</span>
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
<span class='type'>(<tt>Object</tt>)</span>
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
—
|
|
341
|
+
<div class='inline'>
|
|
342
|
+
<p>Either a lambda function, or some kind of constant such as an Integer.</p>
|
|
343
|
+
</div>
|
|
344
|
+
|
|
345
|
+
</li>
|
|
346
|
+
|
|
347
|
+
<li>
|
|
348
|
+
|
|
349
|
+
<span class='name'>symbols</span>
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
<span class='type'>(<tt>nil</tt>, <tt><span class='object_link'><a href="Symbol.html"
|
|
353
|
+
title="CSVDecision2::Matchers::Symbol (class)">Symbol</a></span></tt>, <tt>Array<<span
|
|
354
|
+
class='object_link'><a href="Symbol.html"
|
|
355
|
+
title="CSVDecision2::Matchers::Symbol (class)">Symbol</a></span>></tt>)</span>
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
—
|
|
360
|
+
<div class='inline'>
|
|
361
|
+
<p>The symbol or list of symbols that the function uses to reference input
|
|
362
|
+
hash keys (which are always symbolized).</p>
|
|
363
|
+
</div>
|
|
364
|
+
|
|
365
|
+
</li>
|
|
366
|
+
|
|
367
|
+
</ul>
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
</div>
|
|
371
|
+
<table class="source_code">
|
|
372
|
+
<tr>
|
|
373
|
+
<td>
|
|
374
|
+
<pre class="lines">
|
|
347
375
|
|
|
348
376
|
|
|
349
377
|
20
|
|
@@ -359,9 +387,9 @@ hash keys (which are always symbolized).</p>
|
|
|
359
387
|
30
|
|
360
388
|
31
|
|
361
389
|
32</pre>
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
390
|
+
</td>
|
|
391
|
+
<td>
|
|
392
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/matchers.rb', line 20</span>
|
|
365
393
|
|
|
366
394
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='label'>type:</span><span class='comma'>,</span> <span class='label'>function:</span><span class='comma'>,</span> <span class='label'>symbols:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
367
395
|
<span class='kw'>super</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
|
@@ -376,100 +404,102 @@ hash keys (which are always symbolized).</p>
|
|
|
376
404
|
|
|
377
405
|
<span class='id identifier rubyid_freeze'>freeze</span>
|
|
378
406
|
<span class='kw'>end</span></pre>
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
</table>
|
|
382
|
-
</div>
|
|
383
|
-
|
|
384
|
-
</div>
|
|
407
|
+
</td>
|
|
408
|
+
</tr>
|
|
409
|
+
</table>
|
|
410
|
+
</div>
|
|
411
|
+
|
|
412
|
+
</div>
|
|
385
413
|
|
|
386
414
|
|
|
387
|
-
|
|
388
|
-
|
|
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="call-instance_method">
|
|
393
|
-
|
|
394
|
-
#<strong>call</strong>(hash:, value: nil) ⇒ <tt>Object</tt>
|
|
395
|
-
|
|
396
418
|
|
|
397
|
-
|
|
419
|
+
<div class="method_details first">
|
|
420
|
+
<h3 class="signature first" id="call-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>call</strong>(hash:, value: nil) ⇒ <tt>Object</tt>
|
|
406
423
|
|
|
407
|
-
<p>Returns Value returned from function call.</p>
|
|
408
424
|
|
|
409
425
|
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
<
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
<
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
<
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
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>Returns Value returned from function call.</p>
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
</div>
|
|
440
|
+
</div>
|
|
441
|
+
<div class="tags">
|
|
442
|
+
<p class="tag_title">Parameters:</p>
|
|
443
|
+
<ul class="param">
|
|
444
|
+
|
|
445
|
+
<li>
|
|
446
|
+
|
|
447
|
+
<span class='name'>hash</span>
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
—
|
|
455
|
+
<div class='inline'>
|
|
456
|
+
<p>Input hash to function call.</p>
|
|
457
|
+
</div>
|
|
458
|
+
|
|
459
|
+
</li>
|
|
460
|
+
|
|
461
|
+
<li>
|
|
462
|
+
|
|
463
|
+
<span class='name'>value</span>
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
<span class='type'>(<tt>Object</tt>)</span>
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
—
|
|
471
|
+
<div class='inline'>
|
|
472
|
+
<p>Input value to function call.</p>
|
|
473
|
+
</div>
|
|
474
|
+
|
|
475
|
+
</li>
|
|
476
|
+
|
|
477
|
+
</ul>
|
|
478
|
+
|
|
479
|
+
<p class="tag_title">Returns:</p>
|
|
480
|
+
<ul class="return">
|
|
481
|
+
|
|
482
|
+
<li>
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
<span class='type'>(<tt>Object</tt>)</span>
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
—
|
|
490
|
+
<div class='inline'>
|
|
491
|
+
<p>Value returned from function call.</p>
|
|
492
|
+
</div>
|
|
493
|
+
|
|
494
|
+
</li>
|
|
495
|
+
|
|
496
|
+
</ul>
|
|
497
|
+
|
|
498
|
+
</div>
|
|
499
|
+
<table class="source_code">
|
|
500
|
+
<tr>
|
|
501
|
+
<td>
|
|
502
|
+
<pre class="lines">
|
|
473
503
|
|
|
474
504
|
|
|
475
505
|
37
|
|
@@ -480,9 +510,9 @@ hash keys (which are always symbolized).</p>
|
|
|
480
510
|
42
|
|
481
511
|
43
|
|
482
512
|
44</pre>
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
513
|
+
</td>
|
|
514
|
+
<td>
|
|
515
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/matchers.rb', line 37</span>
|
|
486
516
|
|
|
487
517
|
<span class='kw'>def</span> <span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='label'>hash:</span><span class='comma'>,</span> <span class='label'>value:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
488
518
|
<span class='id identifier rubyid_func'>func</span> <span class='op'>=</span> <span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='int'>1</span><span class='rparen'>)</span>
|
|
@@ -492,213 +522,225 @@ hash keys (which are always symbolized).</p>
|
|
|
492
522
|
<span class='comment'># All other procs can take one or two args
|
|
493
523
|
</span> <span class='id identifier rubyid_func'>func</span><span class='period'>.</span><span class='id identifier rubyid_arity'>arity</span> <span class='op'>==</span> <span class='int'>1</span> <span class='op'>?</span> <span class='id identifier rubyid_func'>func</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='id identifier rubyid_func'>func</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='comma'>,</span> <span class='id identifier rubyid_hash'>hash</span><span class='rparen'>)</span>
|
|
494
524
|
<span class='kw'>end</span></pre>
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
</table>
|
|
498
|
-
</div>
|
|
499
|
-
|
|
500
|
-
<div class="method_details ">
|
|
501
|
-
<h3 class="signature " id="function-instance_method">
|
|
502
|
-
|
|
503
|
-
#<strong>function</strong> ⇒ <tt>Object</tt>
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
</h3><div class="docstring">
|
|
510
|
-
<div class="discussion">
|
|
511
|
-
<p class="note private">
|
|
512
|
-
<strong>This method is part of a private API.</strong>
|
|
513
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
514
|
-
</p>
|
|
515
|
-
|
|
516
|
-
<p>Returns Either a lambda function, or some kind of constant such as an
|
|
517
|
-
Integer.</p>
|
|
525
|
+
</td>
|
|
526
|
+
</tr>
|
|
527
|
+
</table>
|
|
528
|
+
</div>
|
|
518
529
|
|
|
530
|
+
<div class="method_details ">
|
|
531
|
+
<h3 class="signature " id="function-instance_method">
|
|
519
532
|
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
533
|
+
#<strong>function</strong> ⇒ <tt>Object</tt>
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
</h3>
|
|
540
|
+
<div class="docstring">
|
|
541
|
+
<div class="discussion">
|
|
542
|
+
<p class="note private">
|
|
543
|
+
<strong>This method is part of a private API.</strong>
|
|
544
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
545
|
+
</p>
|
|
546
|
+
|
|
547
|
+
<p>Returns Either a lambda function, or some kind of constant such as an
|
|
548
|
+
Integer.</p>
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
</div>
|
|
552
|
+
</div>
|
|
553
|
+
<div class="tags">
|
|
554
|
+
|
|
555
|
+
<p class="tag_title">Returns:</p>
|
|
556
|
+
<ul class="return">
|
|
557
|
+
|
|
558
|
+
<li>
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
<span class='type'>(<tt>Object</tt>)</span>
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
—
|
|
566
|
+
<div class='inline'>
|
|
567
|
+
<p>Either a lambda function, or some kind of constant such as an Integer.</p>
|
|
568
|
+
</div>
|
|
569
|
+
|
|
570
|
+
</li>
|
|
571
|
+
|
|
572
|
+
</ul>
|
|
573
|
+
|
|
574
|
+
</div>
|
|
575
|
+
<table class="source_code">
|
|
576
|
+
<tr>
|
|
577
|
+
<td>
|
|
578
|
+
<pre class="lines">
|
|
547
579
|
|
|
548
580
|
|
|
549
581
|
52
|
|
550
582
|
53
|
|
551
583
|
54</pre>
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
584
|
+
</td>
|
|
585
|
+
<td>
|
|
586
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/matchers.rb', line 52</span>
|
|
555
587
|
|
|
556
588
|
<span class='kw'>def</span> <span class='id identifier rubyid_function'>function</span>
|
|
557
589
|
<span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='int'>1</span><span class='rparen'>)</span>
|
|
558
590
|
<span class='kw'>end</span></pre>
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
</table>
|
|
562
|
-
</div>
|
|
563
|
-
|
|
564
|
-
<div class="method_details ">
|
|
565
|
-
<h3 class="signature " id="symbols-instance_method">
|
|
566
|
-
|
|
567
|
-
#<strong>symbols</strong> ⇒ <tt>nil</tt>, ...
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
</h3><div class="docstring">
|
|
574
|
-
<div class="discussion">
|
|
575
|
-
<p class="note private">
|
|
576
|
-
<strong>This method is part of a private API.</strong>
|
|
577
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
578
|
-
</p>
|
|
579
|
-
|
|
580
|
-
<p>Returns The symbol or list of symbols that the function uses to reference
|
|
581
|
-
input hash keys (which are always symbolized).</p>
|
|
591
|
+
</td>
|
|
592
|
+
</tr>
|
|
593
|
+
</table>
|
|
594
|
+
</div>
|
|
582
595
|
|
|
596
|
+
<div class="method_details ">
|
|
597
|
+
<h3 class="signature " id="symbols-instance_method">
|
|
583
598
|
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
</div>
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
599
|
+
#<strong>symbols</strong> ⇒ <tt>nil</tt>, ...
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
</h3>
|
|
606
|
+
<div class="docstring">
|
|
607
|
+
<div class="discussion">
|
|
608
|
+
<p class="note private">
|
|
609
|
+
<strong>This method is part of a private API.</strong>
|
|
610
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
611
|
+
</p>
|
|
612
|
+
|
|
613
|
+
<p>Returns The symbol or list of symbols that the function uses to reference
|
|
614
|
+
input hash keys (which are always symbolized).</p>
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
</div>
|
|
618
|
+
</div>
|
|
619
|
+
<div class="tags">
|
|
620
|
+
|
|
621
|
+
<p class="tag_title">Returns:</p>
|
|
622
|
+
<ul class="return">
|
|
623
|
+
|
|
624
|
+
<li>
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
<span class='type'>(<tt>nil</tt>, <tt><span class='object_link'><a href="Symbol.html"
|
|
628
|
+
title="CSVDecision2::Matchers::Symbol (class)">Symbol</a></span></tt>, <tt>Array<<span
|
|
629
|
+
class='object_link'><a href="Symbol.html"
|
|
630
|
+
title="CSVDecision2::Matchers::Symbol (class)">Symbol</a></span>></tt>)</span>
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
—
|
|
635
|
+
<div class='inline'>
|
|
636
|
+
<p>The symbol or list of symbols that the function uses to reference input
|
|
637
|
+
hash keys (which are always symbolized).</p>
|
|
638
|
+
</div>
|
|
639
|
+
|
|
640
|
+
</li>
|
|
641
|
+
|
|
642
|
+
</ul>
|
|
643
|
+
|
|
644
|
+
</div>
|
|
645
|
+
<table class="source_code">
|
|
646
|
+
<tr>
|
|
647
|
+
<td>
|
|
648
|
+
<pre class="lines">
|
|
612
649
|
|
|
613
650
|
|
|
614
651
|
58
|
|
615
652
|
59
|
|
616
653
|
60</pre>
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
654
|
+
</td>
|
|
655
|
+
<td>
|
|
656
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/matchers.rb', line 58</span>
|
|
620
657
|
|
|
621
658
|
<span class='kw'>def</span> <span class='id identifier rubyid_symbols'>symbols</span>
|
|
622
659
|
<span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='int'>2</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
623
660
|
<span class='kw'>end</span></pre>
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
</table>
|
|
627
|
-
</div>
|
|
628
|
-
|
|
629
|
-
<div class="method_details ">
|
|
630
|
-
<h3 class="signature " id="type-instance_method">
|
|
631
|
-
|
|
632
|
-
#<strong>type</strong> ⇒ <tt><span class='object_link'><a href="Symbol.html" title="CSVDecision::Matchers::Symbol (class)">Symbol</a></span></tt>
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
</h3><div class="docstring">
|
|
639
|
-
<div class="discussion">
|
|
640
|
-
<p class="note private">
|
|
641
|
-
<strong>This method is part of a private API.</strong>
|
|
642
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
643
|
-
</p>
|
|
644
|
-
|
|
645
|
-
<p>Returns Type of the function value - e.g., :constant or :guard.</p>
|
|
661
|
+
</td>
|
|
662
|
+
</tr>
|
|
663
|
+
</table>
|
|
664
|
+
</div>
|
|
646
665
|
|
|
666
|
+
<div class="method_details ">
|
|
667
|
+
<h3 class="signature " id="type-instance_method">
|
|
647
668
|
|
|
648
|
-
|
|
649
|
-
</
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
669
|
+
#<strong>type</strong> ⇒ <tt><span class='object_link'><a href="Symbol.html"
|
|
670
|
+
title="CSVDecision2::Matchers::Symbol (class)">Symbol</a></span></tt>
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
</h3>
|
|
677
|
+
<div class="docstring">
|
|
678
|
+
<div class="discussion">
|
|
679
|
+
<p class="note private">
|
|
680
|
+
<strong>This method is part of a private API.</strong>
|
|
681
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
682
|
+
</p>
|
|
683
|
+
|
|
684
|
+
<p>Returns Type of the function value - e.g., :constant or :guard.</p>
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
</div>
|
|
688
|
+
</div>
|
|
689
|
+
<div class="tags">
|
|
690
|
+
|
|
691
|
+
<p class="tag_title">Returns:</p>
|
|
692
|
+
<ul class="return">
|
|
693
|
+
|
|
694
|
+
<li>
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
<span class='type'>(<tt><span class='object_link'><a href="Symbol.html"
|
|
698
|
+
title="CSVDecision2::Matchers::Symbol (class)">Symbol</a></span></tt>)</span>
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
|
|
702
|
+
—
|
|
703
|
+
<div class='inline'>
|
|
704
|
+
<p>Type of the function value - e.g., :constant or :guard.</p>
|
|
705
|
+
</div>
|
|
706
|
+
|
|
707
|
+
</li>
|
|
708
|
+
|
|
709
|
+
</ul>
|
|
710
|
+
|
|
711
|
+
</div>
|
|
712
|
+
<table class="source_code">
|
|
713
|
+
<tr>
|
|
714
|
+
<td>
|
|
715
|
+
<pre class="lines">
|
|
675
716
|
|
|
676
717
|
|
|
677
718
|
47
|
|
678
719
|
48
|
|
679
720
|
49</pre>
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
721
|
+
</td>
|
|
722
|
+
<td>
|
|
723
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/matchers.rb', line 47</span>
|
|
683
724
|
|
|
684
725
|
<span class='kw'>def</span> <span class='id identifier rubyid_type'>type</span>
|
|
685
726
|
<span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='int'>0</span><span class='rparen'>)</span>
|
|
686
727
|
<span class='kw'>end</span></pre>
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
</table>
|
|
690
|
-
</div>
|
|
691
|
-
|
|
692
|
-
</div>
|
|
728
|
+
</td>
|
|
729
|
+
</tr>
|
|
730
|
+
</table>
|
|
731
|
+
</div>
|
|
693
732
|
|
|
694
|
-
</div>
|
|
733
|
+
</div>
|
|
695
734
|
|
|
696
|
-
|
|
697
|
-
Generated on Sun Feb 11 10:26:08 2018 by
|
|
698
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
699
|
-
0.9.12 (ruby-2.4.0).
|
|
700
|
-
</div>
|
|
735
|
+
</div>
|
|
701
736
|
|
|
737
|
+
<div id="footer">
|
|
738
|
+
Generated on Sun Feb 11 10:26:08 2018 by
|
|
739
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
740
|
+
0.9.12 (ruby-2.4.0).
|
|
702
741
|
</div>
|
|
703
|
-
|
|
704
|
-
</
|
|
742
|
+
|
|
743
|
+
</div>
|
|
744
|
+
</body>
|
|
745
|
+
|
|
746
|
+
</html>
|