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::Dictionary::Entry
|
|
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::Dictionary::Entry";
|
|
20
|
+
relpath = '../../';
|
|
21
|
+
</script>
|
|
21
22
|
|
|
22
23
|
|
|
23
24
|
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
|
@@ -25,427 +26,464 @@
|
|
|
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 (E)</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="../Dictionary.html"
|
|
45
|
+
title="CSVDecision2::Dictionary (module)">Dictionary</a></span></span>
|
|
46
|
+
»
|
|
47
|
+
<span class="title">Entry</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::Dictionary::Entry
|
|
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::Dictionary::Entry</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/dictionary.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::Dictionary::Entry</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/dictionary.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>Column dictionary entries.</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>Column dictionary entries.</p>
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
<div class="tags">
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
</div>
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
|
128
|
+
<ul class="summary">
|
|
111
129
|
|
|
112
|
-
</div>
|
|
113
|
-
</div>
|
|
114
|
-
<div class="tags">
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
</div>
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
|
122
|
-
<ul class="summary">
|
|
123
|
-
|
|
124
|
-
<li class="public ">
|
|
125
|
-
<span class="summary_signature">
|
|
126
|
-
|
|
127
|
-
<a href="#eval-instance_method" title="#eval (instance method)">#<strong>eval</strong> ⇒ nil, Boolean </a>
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
</span>
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
<span class="private note title">private</span>
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
<span class="summary_desc"><div class='inline'>
|
|
145
|
-
<p>If set to true then this column has procs that need evaluating, otherwise
|
|
146
|
-
it only contains constants.</p>
|
|
147
|
-
</div></span>
|
|
148
|
-
|
|
149
|
-
</li>
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
<li class="public ">
|
|
153
|
-
<span class="summary_signature">
|
|
154
|
-
|
|
155
|
-
<a href="#function-instance_method" title="#function (instance method)">#<strong>function</strong> ⇒ Matchers::Proc, Object </a>
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
</span>
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
<span class="private note title">private</span>
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
<span class="summary_desc"><div class='inline'>
|
|
173
|
-
<p>For a column of type set: gives the proc that must be evaluated to set the
|
|
174
|
-
default value.</p>
|
|
175
|
-
</div></span>
|
|
176
|
-
|
|
177
|
-
</li>
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
<li class="public ">
|
|
181
|
-
<span class="summary_signature">
|
|
182
|
-
|
|
183
|
-
<a href="#indexed-instance_method" title="#indexed (instance method)">#<strong>indexed</strong> ⇒ Boolean </a>
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
</span>
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
<span class="private note title">private</span>
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
<span class="summary_desc"><div class='inline'>
|
|
201
|
-
<p>Returns true if this column is indexed.</p>
|
|
202
|
-
</div></span>
|
|
203
|
-
|
|
204
|
-
</li>
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
<li class="public ">
|
|
208
|
-
<span class="summary_signature">
|
|
209
|
-
|
|
210
|
-
<a href="#name-instance_method" title="#name (instance method)">#<strong>name</strong> ⇒ Symbol </a>
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
</span>
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
<span class="note title readonly">readonly</span>
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
<span class="private note title">private</span>
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
<span class="summary_desc"><div class='inline'>
|
|
230
|
-
<p>Column name.</p>
|
|
231
|
-
</div></span>
|
|
232
|
-
|
|
233
|
-
</li>
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
<li class="public ">
|
|
237
|
-
<span class="summary_signature">
|
|
238
|
-
|
|
239
|
-
<a href="#set_if-instance_method" title="#set_if (instance method)">#<strong>set_if</strong> ⇒ nil, ... </a>
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
</span>
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
<span class="note title readonly">readonly</span>
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
<span class="private note title">private</span>
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
<span class="summary_desc"><div class='inline'>
|
|
259
|
-
<p>Defined for columns of type :set, nil otherwise.</p>
|
|
260
|
-
</div></span>
|
|
261
|
-
|
|
262
|
-
</li>
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
<li class="public ">
|
|
266
|
-
<span class="summary_signature">
|
|
267
|
-
|
|
268
|
-
<a href="#type-instance_method" title="#type (instance method)">#<strong>type</strong> ⇒ Symbol </a>
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
</span>
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
<span class="note title readonly">readonly</span>
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
<span class="private note title">private</span>
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
<span class="summary_desc"><div class='inline'>
|
|
288
|
-
<p>Column type.</p>
|
|
289
|
-
</div></span>
|
|
290
|
-
|
|
291
|
-
</li>
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
</ul>
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
<h2>
|
|
301
|
-
Class Method Summary
|
|
302
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
303
|
-
</h2>
|
|
304
|
-
|
|
305
|
-
<ul class="summary">
|
|
306
|
-
|
|
307
130
|
<li class="public ">
|
|
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
|
-
<ul class="summary">
|
|
340
|
-
|
|
131
|
+
<span class="summary_signature">
|
|
132
|
+
|
|
133
|
+
<a href="#eval-instance_method" title="#eval (instance method)">#<strong>eval</strong> ⇒ nil, Boolean
|
|
134
|
+
</a>
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
</span>
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
<span class="private note title">private</span>
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
<span class="summary_desc">
|
|
152
|
+
<div class='inline'>
|
|
153
|
+
<p>If set to true then this column has procs that need evaluating, otherwise
|
|
154
|
+
it only contains constants.</p>
|
|
155
|
+
</div>
|
|
156
|
+
</span>
|
|
157
|
+
|
|
158
|
+
</li>
|
|
159
|
+
|
|
160
|
+
|
|
341
161
|
<li class="public ">
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
162
|
+
<span class="summary_signature">
|
|
163
|
+
|
|
164
|
+
<a href="#function-instance_method" title="#function (instance method)">#<strong>function</strong> ⇒
|
|
165
|
+
Matchers::Proc, Object </a>
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
</span>
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
<span class="private note title">private</span>
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
<span class="summary_desc">
|
|
183
|
+
<div class='inline'>
|
|
184
|
+
<p>For a column of type set: gives the proc that must be evaluated to set the
|
|
185
|
+
default value.</p>
|
|
186
|
+
</div>
|
|
187
|
+
</span>
|
|
188
|
+
|
|
189
|
+
</li>
|
|
190
|
+
|
|
191
|
+
|
|
367
192
|
<li class="public ">
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
<
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
193
|
+
<span class="summary_signature">
|
|
194
|
+
|
|
195
|
+
<a href="#indexed-instance_method" title="#indexed (instance method)">#<strong>indexed</strong> ⇒
|
|
196
|
+
Boolean </a>
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
</span>
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
<span class="private note title">private</span>
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
<span class="summary_desc">
|
|
214
|
+
<div class='inline'>
|
|
215
|
+
<p>Returns true if this column is indexed.</p>
|
|
216
|
+
</div>
|
|
217
|
+
</span>
|
|
218
|
+
|
|
219
|
+
</li>
|
|
220
|
+
|
|
221
|
+
|
|
391
222
|
<li class="public ">
|
|
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
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
</
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
</
|
|
436
|
-
|
|
437
|
-
|
|
223
|
+
<span class="summary_signature">
|
|
224
|
+
|
|
225
|
+
<a href="#name-instance_method" title="#name (instance method)">#<strong>name</strong> ⇒ Symbol </a>
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
</span>
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
<span class="note title readonly">readonly</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>Column name.</p>
|
|
247
|
+
</div>
|
|
248
|
+
</span>
|
|
249
|
+
|
|
250
|
+
</li>
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
<li class="public ">
|
|
254
|
+
<span class="summary_signature">
|
|
255
|
+
|
|
256
|
+
<a href="#set_if-instance_method" title="#set_if (instance method)">#<strong>set_if</strong> ⇒ nil,
|
|
257
|
+
... </a>
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
</span>
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
<span class="note title readonly">readonly</span>
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
<span class="private note title">private</span>
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
<span class="summary_desc">
|
|
277
|
+
<div class='inline'>
|
|
278
|
+
<p>Defined for columns of type :set, nil otherwise.</p>
|
|
279
|
+
</div>
|
|
280
|
+
</span>
|
|
281
|
+
|
|
282
|
+
</li>
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
<li class="public ">
|
|
286
|
+
<span class="summary_signature">
|
|
287
|
+
|
|
288
|
+
<a href="#type-instance_method" title="#type (instance method)">#<strong>type</strong> ⇒ Symbol </a>
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
</span>
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
<span class="note title readonly">readonly</span>
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
<span class="private note title">private</span>
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
<span class="summary_desc">
|
|
308
|
+
<div class='inline'>
|
|
309
|
+
<p>Column type.</p>
|
|
310
|
+
</div>
|
|
311
|
+
</span>
|
|
312
|
+
|
|
313
|
+
</li>
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
</ul>
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
<h2>
|
|
323
|
+
Class Method Summary
|
|
324
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
325
|
+
</h2>
|
|
326
|
+
|
|
327
|
+
<ul class="summary">
|
|
328
|
+
|
|
329
|
+
<li class="public ">
|
|
330
|
+
<span class="summary_signature">
|
|
331
|
+
|
|
332
|
+
<a href="#create-class_method" title="create (class method)">.<strong>create</strong>(name:, type:) ⇒
|
|
333
|
+
Entry </a>
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
</span>
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
<span class="private note title">private</span>
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
<span class="summary_desc">
|
|
348
|
+
<div class='inline'>
|
|
349
|
+
<p>Create a new column dictionary entry defaulting attributes from the column
|
|
350
|
+
type, which is looked up in the above table.</p>
|
|
351
|
+
</div>
|
|
352
|
+
</span>
|
|
353
|
+
|
|
354
|
+
</li>
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
</ul>
|
|
358
|
+
|
|
359
|
+
<h2>
|
|
360
|
+
Instance Method Summary
|
|
361
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
362
|
+
</h2>
|
|
363
|
+
|
|
364
|
+
<ul class="summary">
|
|
365
|
+
|
|
366
|
+
<li class="public ">
|
|
367
|
+
<span class="summary_signature">
|
|
368
|
+
|
|
369
|
+
<a href="#initialize-instance_method"
|
|
370
|
+
title="#initialize (instance method)">#<strong>initialize</strong>(name:, type:, eval: nil, set_if: nil,
|
|
371
|
+
indexed: nil) ⇒ Entry </a>
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
</span>
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
<span class="note title constructor">constructor</span>
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
<span class="private note title">private</span>
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
<span class="summary_desc">
|
|
388
|
+
<div class='inline'>
|
|
389
|
+
<p>A new instance of Entry.</p>
|
|
390
|
+
</div>
|
|
391
|
+
</span>
|
|
392
|
+
|
|
393
|
+
</li>
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
<li class="public ">
|
|
397
|
+
<span class="summary_signature">
|
|
398
|
+
|
|
399
|
+
<a href="#ins%3F-instance_method" title="#ins? (instance method)">#<strong>ins?</strong> ⇒ Boolean
|
|
400
|
+
</a>
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
</span>
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
<span class="private note title">private</span>
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
<span class="summary_desc">
|
|
415
|
+
<div class='inline'>
|
|
416
|
+
<p>Return true is this is an input column, false otherwise.</p>
|
|
417
|
+
</div>
|
|
418
|
+
</span>
|
|
419
|
+
|
|
420
|
+
</li>
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
<li class="public ">
|
|
424
|
+
<span class="summary_signature">
|
|
425
|
+
|
|
426
|
+
<a href="#to_h-instance_method" title="#to_h (instance method)">#<strong>to_h</strong> ⇒
|
|
427
|
+
Hash{Symbol=>[nil, Boolean, Symbol]} </a>
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
</span>
|
|
432
|
+
|
|
433
|
+
|
|
438
434
|
|
|
439
435
|
|
|
440
|
-
</div>
|
|
441
|
-
</div>
|
|
442
|
-
<div class="tags">
|
|
443
|
-
|
|
444
436
|
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
437
|
+
|
|
438
|
+
<span class="private note title">private</span>
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
<span class="summary_desc">
|
|
442
|
+
<div class='inline'>
|
|
443
|
+
<p>Convert the object's attributes to a hash.</p>
|
|
444
|
+
</div>
|
|
445
|
+
</span>
|
|
446
|
+
|
|
447
|
+
</li>
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
</ul>
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
<div id="constructor_details" class="method_details_list">
|
|
454
|
+
<h2>Constructor Details</h2>
|
|
455
|
+
|
|
456
|
+
<div class="method_details first">
|
|
457
|
+
<h3 class="signature first" id="initialize-instance_method">
|
|
458
|
+
|
|
459
|
+
#<strong>initialize</strong>(name:, type:, eval: nil, set_if: nil, indexed: nil) ⇒ <tt><span
|
|
460
|
+
class='object_link'><a href="" title="CSVDecision2::Dictionary::Entry (class)">Entry</a></span></tt>
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
</h3>
|
|
467
|
+
<div class="docstring">
|
|
468
|
+
<div class="discussion">
|
|
469
|
+
<p class="note private">
|
|
470
|
+
<strong>This method is part of a private API.</strong>
|
|
471
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
472
|
+
</p>
|
|
473
|
+
|
|
474
|
+
<p>Returns a new instance of Entry</p>
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
</div>
|
|
478
|
+
</div>
|
|
479
|
+
<div class="tags">
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
</div>
|
|
483
|
+
<table class="source_code">
|
|
484
|
+
<tr>
|
|
485
|
+
<td>
|
|
486
|
+
<pre class="lines">
|
|
449
487
|
|
|
450
488
|
|
|
451
489
|
92
|
|
@@ -457,9 +495,9 @@ type, which is looked up in the above table.</p>
|
|
|
457
495
|
98
|
|
458
496
|
99
|
|
459
497
|
100</pre>
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
498
|
+
</td>
|
|
499
|
+
<td>
|
|
500
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/dictionary.rb', line 92</span>
|
|
463
501
|
|
|
464
502
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='label'>name:</span><span class='comma'>,</span> <span class='label'>type:</span><span class='comma'>,</span> <span class='label'>eval:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>set_if:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>indexed:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
465
503
|
<span class='ivar'>@name</span> <span class='op'>=</span> <span class='id identifier rubyid_name'>name</span>
|
|
@@ -470,504 +508,523 @@ type, which is looked up in the above table.</p>
|
|
|
470
508
|
<span class='ivar'>@ins</span> <span class='op'>=</span> <span class='const'>INS_TYPES</span><span class='period'>.</span><span class='id identifier rubyid_member?'>member?</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span>
|
|
471
509
|
<span class='ivar'>@indexed</span> <span class='op'>=</span> <span class='id identifier rubyid_indexed'>indexed</span>
|
|
472
510
|
<span class='kw'>end</span></pre>
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
</table>
|
|
476
|
-
</div>
|
|
477
|
-
|
|
478
|
-
</div>
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
</h3><div class="docstring">
|
|
495
|
-
<div class="discussion">
|
|
496
|
-
<p class="note private">
|
|
497
|
-
<strong>This method is part of a private API.</strong>
|
|
498
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
499
|
-
</p>
|
|
500
|
-
|
|
501
|
-
<p>Returns If set to true then this column has procs that need evaluating,
|
|
502
|
-
otherwise it only contains constants.</p>
|
|
511
|
+
</td>
|
|
512
|
+
</tr>
|
|
513
|
+
</table>
|
|
514
|
+
</div>
|
|
515
|
+
|
|
516
|
+
</div>
|
|
517
|
+
|
|
518
|
+
<div id="instance_attr_details" class="attr_details">
|
|
519
|
+
<h2>Instance Attribute Details</h2>
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
<span id="eval=-instance_method"></span>
|
|
523
|
+
<div class="method_details first">
|
|
524
|
+
<h3 class="signature first" id="eval-instance_method">
|
|
525
|
+
|
|
526
|
+
#<strong>eval</strong> ⇒ <tt>nil</tt>, <tt>Boolean</tt>
|
|
527
|
+
|
|
503
528
|
|
|
504
529
|
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
<
|
|
510
|
-
<
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
<
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
</h3>
|
|
533
|
+
<div class="docstring">
|
|
534
|
+
<div class="discussion">
|
|
535
|
+
<p class="note private">
|
|
536
|
+
<strong>This method is part of a private API.</strong>
|
|
537
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
538
|
+
</p>
|
|
539
|
+
|
|
540
|
+
<p>Returns If set to true then this column has procs that need evaluating,
|
|
541
|
+
otherwise it only contains constants.</p>
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
</div>
|
|
545
|
+
</div>
|
|
546
|
+
<div class="tags">
|
|
547
|
+
|
|
548
|
+
<p class="tag_title">Returns:</p>
|
|
549
|
+
<ul class="return">
|
|
550
|
+
|
|
551
|
+
<li>
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
<span class='type'>(<tt>nil</tt>, <tt>Boolean</tt>)</span>
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
—
|
|
559
|
+
<div class='inline'>
|
|
560
|
+
<p>If set to true then this column has procs that need evaluating, otherwise
|
|
561
|
+
it only contains constants.</p>
|
|
562
|
+
</div>
|
|
563
|
+
|
|
564
|
+
</li>
|
|
565
|
+
|
|
566
|
+
</ul>
|
|
567
|
+
|
|
568
|
+
</div>
|
|
569
|
+
<table class="source_code">
|
|
570
|
+
<tr>
|
|
571
|
+
<td>
|
|
572
|
+
<pre class="lines">
|
|
533
573
|
|
|
534
574
|
|
|
535
575
|
76
|
|
536
576
|
77
|
|
537
577
|
78</pre>
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
578
|
+
</td>
|
|
579
|
+
<td>
|
|
580
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/dictionary.rb', line 76</span>
|
|
541
581
|
|
|
542
582
|
<span class='kw'>def</span> <span class='id identifier rubyid_eval'>eval</span>
|
|
543
583
|
<span class='ivar'>@eval</span>
|
|
544
584
|
<span class='kw'>end</span></pre>
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
</table>
|
|
548
|
-
</div>
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
<span id="function=-instance_method"></span>
|
|
552
|
-
<div class="method_details ">
|
|
553
|
-
<h3 class="signature " id="function-instance_method">
|
|
554
|
-
|
|
555
|
-
#<strong>function</strong> ⇒ <tt><span class='object_link'><a href="../Matchers/Proc.html" title="CSVDecision::Matchers::Proc (class)">Matchers::Proc</a></span></tt>, <tt>Object</tt>
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
</h3><div class="docstring">
|
|
562
|
-
<div class="discussion">
|
|
563
|
-
<p class="note private">
|
|
564
|
-
<strong>This method is part of a private API.</strong>
|
|
565
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
566
|
-
</p>
|
|
567
|
-
|
|
568
|
-
<p>Returns For a column of type set: gives the proc that must be evaluated to
|
|
569
|
-
set the default value. If not a proc, then it's some type of constant.</p>
|
|
585
|
+
</td>
|
|
586
|
+
</tr>
|
|
587
|
+
</table>
|
|
588
|
+
</div>
|
|
570
589
|
|
|
571
590
|
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
<
|
|
575
|
-
|
|
576
|
-
<
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
</div
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
591
|
+
<span id="function=-instance_method"></span>
|
|
592
|
+
<div class="method_details ">
|
|
593
|
+
<h3 class="signature " id="function-instance_method">
|
|
594
|
+
|
|
595
|
+
#<strong>function</strong> ⇒ <tt><span class='object_link'><a href="../Matchers/Proc.html"
|
|
596
|
+
title="CSVDecision2::Matchers::Proc (class)">Matchers::Proc</a></span></tt>, <tt>Object</tt>
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
</h3>
|
|
603
|
+
<div class="docstring">
|
|
604
|
+
<div class="discussion">
|
|
605
|
+
<p class="note private">
|
|
606
|
+
<strong>This method is part of a private API.</strong>
|
|
607
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
608
|
+
</p>
|
|
609
|
+
|
|
610
|
+
<p>Returns For a column of type set: gives the proc that must be evaluated to
|
|
611
|
+
set the default value. If not a proc, then it's some type of constant.</p>
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
</div>
|
|
615
|
+
</div>
|
|
616
|
+
<div class="tags">
|
|
617
|
+
|
|
618
|
+
<p class="tag_title">Returns:</p>
|
|
619
|
+
<ul class="return">
|
|
620
|
+
|
|
621
|
+
<li>
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
<span class='type'>(<tt><span class='object_link'><a href="../Matchers/Proc.html"
|
|
625
|
+
title="CSVDecision2::Matchers::Proc (class)">Matchers::Proc</a></span></tt>,
|
|
626
|
+
<tt>Object</tt>)</span>
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
—
|
|
631
|
+
<div class='inline'>
|
|
632
|
+
<p>For a column of type set: gives the proc that must be evaluated to set the
|
|
633
|
+
default value. If not a proc, then it's some type of constant.</p>
|
|
634
|
+
</div>
|
|
635
|
+
|
|
636
|
+
</li>
|
|
637
|
+
|
|
638
|
+
</ul>
|
|
639
|
+
|
|
640
|
+
</div>
|
|
641
|
+
<table class="source_code">
|
|
642
|
+
<tr>
|
|
643
|
+
<td>
|
|
644
|
+
<pre class="lines">
|
|
600
645
|
|
|
601
646
|
|
|
602
647
|
85
|
|
603
648
|
86
|
|
604
649
|
87</pre>
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
650
|
+
</td>
|
|
651
|
+
<td>
|
|
652
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/dictionary.rb', line 85</span>
|
|
608
653
|
|
|
609
654
|
<span class='kw'>def</span> <span class='id identifier rubyid_function'>function</span>
|
|
610
655
|
<span class='ivar'>@function</span>
|
|
611
656
|
<span class='kw'>end</span></pre>
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
</table>
|
|
615
|
-
</div>
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
<span id="indexed=-instance_method"></span>
|
|
619
|
-
<div class="method_details ">
|
|
620
|
-
<h3 class="signature " id="indexed-instance_method">
|
|
621
|
-
|
|
622
|
-
#<strong>indexed</strong> ⇒ <tt>Boolean</tt>
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
</h3><div class="docstring">
|
|
629
|
-
<div class="discussion">
|
|
630
|
-
<p class="note private">
|
|
631
|
-
<strong>This method is part of a private API.</strong>
|
|
632
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
633
|
-
</p>
|
|
634
|
-
|
|
635
|
-
<p>Returns true if this column is indexed</p>
|
|
657
|
+
</td>
|
|
658
|
+
</tr>
|
|
659
|
+
</table>
|
|
660
|
+
</div>
|
|
636
661
|
|
|
637
662
|
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
<
|
|
641
|
-
|
|
642
|
-
<
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
</
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
663
|
+
<span id="indexed=-instance_method"></span>
|
|
664
|
+
<div class="method_details ">
|
|
665
|
+
<h3 class="signature " id="indexed-instance_method">
|
|
666
|
+
|
|
667
|
+
#<strong>indexed</strong> ⇒ <tt>Boolean</tt>
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
</h3>
|
|
674
|
+
<div class="docstring">
|
|
675
|
+
<div class="discussion">
|
|
676
|
+
<p class="note private">
|
|
677
|
+
<strong>This method is part of a private API.</strong>
|
|
678
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
679
|
+
</p>
|
|
680
|
+
|
|
681
|
+
<p>Returns true if this column is indexed</p>
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
</div>
|
|
685
|
+
</div>
|
|
686
|
+
<div class="tags">
|
|
687
|
+
|
|
688
|
+
<p class="tag_title">Returns:</p>
|
|
689
|
+
<ul class="return">
|
|
690
|
+
|
|
691
|
+
<li>
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
—
|
|
699
|
+
<div class='inline'>
|
|
700
|
+
<p>Returns true if this column is indexed</p>
|
|
701
|
+
</div>
|
|
702
|
+
|
|
703
|
+
</li>
|
|
704
|
+
|
|
705
|
+
</ul>
|
|
706
|
+
|
|
707
|
+
</div>
|
|
708
|
+
<table class="source_code">
|
|
709
|
+
<tr>
|
|
710
|
+
<td>
|
|
711
|
+
<pre class="lines">
|
|
665
712
|
|
|
666
713
|
|
|
667
714
|
72
|
|
668
715
|
73
|
|
669
716
|
74</pre>
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
717
|
+
</td>
|
|
718
|
+
<td>
|
|
719
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/dictionary.rb', line 72</span>
|
|
673
720
|
|
|
674
721
|
<span class='kw'>def</span> <span class='id identifier rubyid_indexed'>indexed</span>
|
|
675
722
|
<span class='ivar'>@indexed</span>
|
|
676
723
|
<span class='kw'>end</span></pre>
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
</table>
|
|
680
|
-
</div>
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
<span id=""></span>
|
|
684
|
-
<div class="method_details ">
|
|
685
|
-
<h3 class="signature " id="name-instance_method">
|
|
686
|
-
|
|
687
|
-
#<strong>name</strong> ⇒ <tt>Symbol</tt> <span class="extras">(readonly)</span>
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
</h3><div class="docstring">
|
|
694
|
-
<div class="discussion">
|
|
695
|
-
<p class="note private">
|
|
696
|
-
<strong>This method is part of a private API.</strong>
|
|
697
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
698
|
-
</p>
|
|
699
|
-
|
|
700
|
-
<p>Returns Column name.</p>
|
|
724
|
+
</td>
|
|
725
|
+
</tr>
|
|
726
|
+
</table>
|
|
727
|
+
</div>
|
|
701
728
|
|
|
702
729
|
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
<
|
|
706
|
-
|
|
707
|
-
<
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
</
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
+
<span id=""></span>
|
|
731
|
+
<div class="method_details ">
|
|
732
|
+
<h3 class="signature " id="name-instance_method">
|
|
733
|
+
|
|
734
|
+
#<strong>name</strong> ⇒ <tt>Symbol</tt> <span class="extras">(readonly)</span>
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
</h3>
|
|
741
|
+
<div class="docstring">
|
|
742
|
+
<div class="discussion">
|
|
743
|
+
<p class="note private">
|
|
744
|
+
<strong>This method is part of a private API.</strong>
|
|
745
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
746
|
+
</p>
|
|
747
|
+
|
|
748
|
+
<p>Returns Column name.</p>
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
</div>
|
|
752
|
+
</div>
|
|
753
|
+
<div class="tags">
|
|
754
|
+
|
|
755
|
+
<p class="tag_title">Returns:</p>
|
|
756
|
+
<ul class="return">
|
|
757
|
+
|
|
758
|
+
<li>
|
|
759
|
+
|
|
760
|
+
|
|
761
|
+
<span class='type'>(<tt>Symbol</tt>)</span>
|
|
762
|
+
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
—
|
|
766
|
+
<div class='inline'>
|
|
767
|
+
<p>Column name.</p>
|
|
768
|
+
</div>
|
|
769
|
+
|
|
770
|
+
</li>
|
|
771
|
+
|
|
772
|
+
</ul>
|
|
773
|
+
|
|
774
|
+
</div>
|
|
775
|
+
<table class="source_code">
|
|
776
|
+
<tr>
|
|
777
|
+
<td>
|
|
778
|
+
<pre class="lines">
|
|
730
779
|
|
|
731
780
|
|
|
732
781
|
66
|
|
733
782
|
67
|
|
734
783
|
68</pre>
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
784
|
+
</td>
|
|
785
|
+
<td>
|
|
786
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/dictionary.rb', line 66</span>
|
|
738
787
|
|
|
739
788
|
<span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
|
|
740
789
|
<span class='ivar'>@name</span>
|
|
741
790
|
<span class='kw'>end</span></pre>
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
</table>
|
|
745
|
-
</div>
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
<span id=""></span>
|
|
749
|
-
<div class="method_details ">
|
|
750
|
-
<h3 class="signature " id="set_if-instance_method">
|
|
751
|
-
|
|
752
|
-
#<strong>set_if</strong> ⇒ <tt>nil</tt>, ... <span class="extras">(readonly)</span>
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
</h3><div class="docstring">
|
|
759
|
-
<div class="discussion">
|
|
760
|
-
<p class="note private">
|
|
761
|
-
<strong>This method is part of a private API.</strong>
|
|
762
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
763
|
-
</p>
|
|
764
|
-
|
|
765
|
-
<p>Returns Defined for columns of type :set, nil otherwise. If true, then
|
|
766
|
-
default is set unconditionally, otherwise the method symbol sent to the
|
|
767
|
-
input hash value that must evaluate to a truthy value.</p>
|
|
791
|
+
</td>
|
|
792
|
+
</tr>
|
|
793
|
+
</table>
|
|
794
|
+
</div>
|
|
768
795
|
|
|
769
796
|
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
<
|
|
773
|
-
|
|
774
|
-
<
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
</
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
797
|
+
<span id=""></span>
|
|
798
|
+
<div class="method_details ">
|
|
799
|
+
<h3 class="signature " id="set_if-instance_method">
|
|
800
|
+
|
|
801
|
+
#<strong>set_if</strong> ⇒ <tt>nil</tt>, ... <span class="extras">(readonly)</span>
|
|
802
|
+
|
|
803
|
+
|
|
804
|
+
|
|
805
|
+
|
|
806
|
+
|
|
807
|
+
</h3>
|
|
808
|
+
<div class="docstring">
|
|
809
|
+
<div class="discussion">
|
|
810
|
+
<p class="note private">
|
|
811
|
+
<strong>This method is part of a private API.</strong>
|
|
812
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
813
|
+
</p>
|
|
814
|
+
|
|
815
|
+
<p>Returns Defined for columns of type :set, nil otherwise. If true, then
|
|
816
|
+
default is set unconditionally, otherwise the method symbol sent to the
|
|
817
|
+
input hash value that must evaluate to a truthy value.</p>
|
|
818
|
+
|
|
819
|
+
|
|
820
|
+
</div>
|
|
821
|
+
</div>
|
|
822
|
+
<div class="tags">
|
|
823
|
+
|
|
824
|
+
<p class="tag_title">Returns:</p>
|
|
825
|
+
<ul class="return">
|
|
826
|
+
|
|
827
|
+
<li>
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
<span class='type'>(<tt>nil</tt>, <tt>true</tt>, <tt>Symbol</tt>)</span>
|
|
831
|
+
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
—
|
|
835
|
+
<div class='inline'>
|
|
836
|
+
<p>Defined for columns of type :set, nil otherwise. If true, then default is
|
|
837
|
+
set unconditionally, otherwise the method symbol sent to the input hash
|
|
838
|
+
value that must evaluate to a truthy value.</p>
|
|
839
|
+
</div>
|
|
840
|
+
|
|
841
|
+
</li>
|
|
842
|
+
|
|
843
|
+
</ul>
|
|
844
|
+
|
|
845
|
+
</div>
|
|
846
|
+
<table class="source_code">
|
|
847
|
+
<tr>
|
|
848
|
+
<td>
|
|
849
|
+
<pre class="lines">
|
|
799
850
|
|
|
800
851
|
|
|
801
852
|
81
|
|
802
853
|
82
|
|
803
854
|
83</pre>
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
855
|
+
</td>
|
|
856
|
+
<td>
|
|
857
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/dictionary.rb', line 81</span>
|
|
807
858
|
|
|
808
859
|
<span class='kw'>def</span> <span class='id identifier rubyid_set_if'>set_if</span>
|
|
809
860
|
<span class='ivar'>@set_if</span>
|
|
810
861
|
<span class='kw'>end</span></pre>
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
</table>
|
|
814
|
-
</div>
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
</h3
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
862
|
+
</td>
|
|
863
|
+
</tr>
|
|
864
|
+
</table>
|
|
865
|
+
</div>
|
|
866
|
+
|
|
867
|
+
|
|
868
|
+
<span id=""></span>
|
|
869
|
+
<div class="method_details ">
|
|
870
|
+
<h3 class="signature " id="type-instance_method">
|
|
871
|
+
|
|
872
|
+
#<strong>type</strong> ⇒ <tt>Symbol</tt> <span class="extras">(readonly)</span>
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
|
|
878
|
+
</h3>
|
|
879
|
+
<div class="docstring">
|
|
880
|
+
<div class="discussion">
|
|
881
|
+
<p class="note private">
|
|
882
|
+
<strong>This method is part of a private API.</strong>
|
|
883
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
884
|
+
</p>
|
|
885
|
+
|
|
886
|
+
<p>Returns Column type.</p>
|
|
887
|
+
|
|
888
|
+
|
|
889
|
+
</div>
|
|
890
|
+
</div>
|
|
891
|
+
<div class="tags">
|
|
892
|
+
|
|
893
|
+
<p class="tag_title">Returns:</p>
|
|
894
|
+
<ul class="return">
|
|
895
|
+
|
|
896
|
+
<li>
|
|
897
|
+
|
|
898
|
+
|
|
899
|
+
<span class='type'>(<tt>Symbol</tt>)</span>
|
|
835
900
|
|
|
836
901
|
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
<div class=
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
<div class='inline'>
|
|
853
|
-
<p>Column type.</p>
|
|
854
|
-
</div>
|
|
855
|
-
|
|
856
|
-
</li>
|
|
857
|
-
|
|
858
|
-
</ul>
|
|
859
|
-
|
|
860
|
-
</div><table class="source_code">
|
|
861
|
-
<tr>
|
|
862
|
-
<td>
|
|
863
|
-
<pre class="lines">
|
|
902
|
+
|
|
903
|
+
—
|
|
904
|
+
<div class='inline'>
|
|
905
|
+
<p>Column type.</p>
|
|
906
|
+
</div>
|
|
907
|
+
|
|
908
|
+
</li>
|
|
909
|
+
|
|
910
|
+
</ul>
|
|
911
|
+
|
|
912
|
+
</div>
|
|
913
|
+
<table class="source_code">
|
|
914
|
+
<tr>
|
|
915
|
+
<td>
|
|
916
|
+
<pre class="lines">
|
|
864
917
|
|
|
865
918
|
|
|
866
919
|
69
|
|
867
920
|
70
|
|
868
921
|
71</pre>
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
922
|
+
</td>
|
|
923
|
+
<td>
|
|
924
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/dictionary.rb', line 69</span>
|
|
872
925
|
|
|
873
926
|
<span class='kw'>def</span> <span class='id identifier rubyid_type'>type</span>
|
|
874
927
|
<span class='ivar'>@type</span>
|
|
875
928
|
<span class='kw'>end</span></pre>
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
</table>
|
|
879
|
-
</div>
|
|
880
|
-
|
|
881
|
-
</div>
|
|
929
|
+
</td>
|
|
930
|
+
</tr>
|
|
931
|
+
</table>
|
|
932
|
+
</div>
|
|
882
933
|
|
|
934
|
+
</div>
|
|
883
935
|
|
|
884
|
-
<div id="class_method_details" class="method_details_list">
|
|
885
|
-
<h2>Class Method Details</h2>
|
|
886
936
|
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
<h3 class="signature first" id="create-class_method">
|
|
890
|
-
|
|
891
|
-
.<strong>create</strong>(name:, type:) ⇒ <tt><span class='object_link'><a href="" title="CSVDecision::Dictionary::Entry (class)">Entry</a></span></tt>
|
|
892
|
-
|
|
937
|
+
<div id="class_method_details" class="method_details_list">
|
|
938
|
+
<h2>Class Method Details</h2>
|
|
893
939
|
|
|
894
|
-
|
|
895
940
|
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
<div class="discussion">
|
|
899
|
-
<p class="note private">
|
|
900
|
-
<strong>This method is part of a private API.</strong>
|
|
901
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
902
|
-
</p>
|
|
941
|
+
<div class="method_details first">
|
|
942
|
+
<h3 class="signature first" id="create-class_method">
|
|
903
943
|
|
|
904
|
-
|
|
905
|
-
|
|
944
|
+
.<strong>create</strong>(name:, type:) ⇒ <tt><span class='object_link'><a href=""
|
|
945
|
+
title="CSVDecision2::Dictionary::Entry (class)">Entry</a></span></tt>
|
|
906
946
|
|
|
907
947
|
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
<
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
<
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
</
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
948
|
+
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
</h3>
|
|
952
|
+
<div class="docstring">
|
|
953
|
+
<div class="discussion">
|
|
954
|
+
<p class="note private">
|
|
955
|
+
<strong>This method is part of a private API.</strong>
|
|
956
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
957
|
+
</p>
|
|
958
|
+
|
|
959
|
+
<p>Create a new column dictionary entry defaulting attributes from the column
|
|
960
|
+
type, which is looked up in the above table.</p>
|
|
961
|
+
|
|
962
|
+
|
|
963
|
+
</div>
|
|
964
|
+
</div>
|
|
965
|
+
<div class="tags">
|
|
966
|
+
<p class="tag_title">Parameters:</p>
|
|
967
|
+
<ul class="param">
|
|
968
|
+
|
|
969
|
+
<li>
|
|
970
|
+
|
|
971
|
+
<span class='name'>name</span>
|
|
972
|
+
|
|
973
|
+
|
|
974
|
+
<span class='type'>(<tt>Symbol</tt>)</span>
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
|
|
978
|
+
—
|
|
979
|
+
<div class='inline'>
|
|
980
|
+
<p>Column name.</p>
|
|
981
|
+
</div>
|
|
982
|
+
|
|
983
|
+
</li>
|
|
984
|
+
|
|
985
|
+
<li>
|
|
986
|
+
|
|
987
|
+
<span class='name'>type</span>
|
|
988
|
+
|
|
989
|
+
|
|
990
|
+
<span class='type'>(<tt>Symbol</tt>)</span>
|
|
991
|
+
|
|
992
|
+
|
|
993
|
+
|
|
994
|
+
—
|
|
995
|
+
<div class='inline'>
|
|
996
|
+
<p>Column type.</p>
|
|
997
|
+
</div>
|
|
998
|
+
|
|
999
|
+
</li>
|
|
1000
|
+
|
|
1001
|
+
</ul>
|
|
1002
|
+
|
|
1003
|
+
<p class="tag_title">Returns:</p>
|
|
1004
|
+
<ul class="return">
|
|
1005
|
+
|
|
1006
|
+
<li>
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
<span class='type'>(<tt><span class='object_link'><a href=""
|
|
1010
|
+
title="CSVDecision2::Dictionary::Entry (class)">Entry</a></span></tt>)</span>
|
|
1011
|
+
|
|
1012
|
+
|
|
1013
|
+
|
|
1014
|
+
—
|
|
1015
|
+
<div class='inline'>
|
|
1016
|
+
<p>Column dictionary entry.</p>
|
|
1017
|
+
</div>
|
|
1018
|
+
|
|
1019
|
+
</li>
|
|
1020
|
+
|
|
1021
|
+
</ul>
|
|
1022
|
+
|
|
1023
|
+
</div>
|
|
1024
|
+
<table class="source_code">
|
|
1025
|
+
<tr>
|
|
1026
|
+
<td>
|
|
1027
|
+
<pre class="lines">
|
|
971
1028
|
|
|
972
1029
|
|
|
973
1030
|
51
|
|
@@ -978,9 +1035,9 @@ type, which is looked up in the above table.</p>
|
|
|
978
1035
|
56
|
|
979
1036
|
57
|
|
980
1037
|
58</pre>
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
1038
|
+
</td>
|
|
1039
|
+
<td>
|
|
1040
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/dictionary.rb', line 51</span>
|
|
984
1041
|
|
|
985
1042
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='label'>name:</span><span class='comma'>,</span> <span class='label'>type:</span><span class='rparen'>)</span>
|
|
986
1043
|
<span class='id identifier rubyid_entry'>entry</span> <span class='op'>=</span> <span class='const'>ENTRY</span><span class='lbracket'>[</span><span class='id identifier rubyid_type'>type</span><span class='rbracket'>]</span>
|
|
@@ -990,121 +1047,125 @@ type, which is looked up in the above table.</p>
|
|
|
990
1047
|
</span> <span class='label'>set_if:</span> <span class='id identifier rubyid_entry'>entry</span><span class='lbracket'>[</span><span class='symbol'>:set_if</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='comment'># Set if the column has a conditional default
|
|
991
1048
|
</span> <span class='label'>indexed:</span> <span class='id identifier rubyid_entry'>entry</span><span class='lbracket'>[</span><span class='symbol'>:type</span><span class='rbracket'>]</span> <span class='op'>!=</span> <span class='symbol'>:guard</span><span class='rparen'>)</span> <span class='comment'># A guard column cannot be indexed.
|
|
992
1049
|
</span><span class='kw'>end</span></pre>
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
</table>
|
|
996
|
-
</div>
|
|
997
|
-
|
|
998
|
-
|
|
1050
|
+
</td>
|
|
1051
|
+
</tr>
|
|
1052
|
+
</table>
|
|
1053
|
+
</div>
|
|
1054
|
+
|
|
1055
|
+
</div>
|
|
999
1056
|
|
|
1000
|
-
|
|
1001
|
-
|
|
1057
|
+
<div id="instance_method_details" class="method_details_list">
|
|
1058
|
+
<h2>Instance Method Details</h2>
|
|
1002
1059
|
|
|
1003
|
-
|
|
1004
|
-
<div class="method_details first">
|
|
1005
|
-
<h3 class="signature first" id="ins?-instance_method">
|
|
1006
|
-
|
|
1007
|
-
#<strong>ins?</strong> ⇒ <tt>Boolean</tt>
|
|
1008
|
-
|
|
1009
1060
|
|
|
1010
|
-
|
|
1061
|
+
<div class="method_details first">
|
|
1062
|
+
<h3 class="signature first" id="ins?-instance_method">
|
|
1011
1063
|
|
|
1012
|
-
|
|
1013
|
-
</h3><div class="docstring">
|
|
1014
|
-
<div class="discussion">
|
|
1015
|
-
<p class="note private">
|
|
1016
|
-
<strong>This method is part of a private API.</strong>
|
|
1017
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
1018
|
-
</p>
|
|
1064
|
+
#<strong>ins?</strong> ⇒ <tt>Boolean</tt>
|
|
1019
1065
|
|
|
1020
|
-
<p>Return true is this is an input column, false otherwise.</p>
|
|
1021
1066
|
|
|
1022
1067
|
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
<
|
|
1028
|
-
<
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1068
|
+
|
|
1069
|
+
|
|
1070
|
+
</h3>
|
|
1071
|
+
<div class="docstring">
|
|
1072
|
+
<div class="discussion">
|
|
1073
|
+
<p class="note private">
|
|
1074
|
+
<strong>This method is part of a private API.</strong>
|
|
1075
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
1076
|
+
</p>
|
|
1077
|
+
|
|
1078
|
+
<p>Return true is this is an input column, false otherwise.</p>
|
|
1079
|
+
|
|
1080
|
+
|
|
1081
|
+
</div>
|
|
1082
|
+
</div>
|
|
1083
|
+
<div class="tags">
|
|
1084
|
+
|
|
1085
|
+
<p class="tag_title">Returns:</p>
|
|
1086
|
+
<ul class="return">
|
|
1087
|
+
|
|
1088
|
+
<li>
|
|
1089
|
+
|
|
1090
|
+
|
|
1091
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
1092
|
+
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
—
|
|
1096
|
+
<div class='inline'>
|
|
1097
|
+
<p>Return true is this is an input column, false otherwise.</p>
|
|
1098
|
+
</div>
|
|
1099
|
+
|
|
1100
|
+
</li>
|
|
1101
|
+
|
|
1102
|
+
</ul>
|
|
1103
|
+
|
|
1104
|
+
</div>
|
|
1105
|
+
<table class="source_code">
|
|
1106
|
+
<tr>
|
|
1107
|
+
<td>
|
|
1108
|
+
<pre class="lines">
|
|
1050
1109
|
|
|
1051
1110
|
|
|
1052
1111
|
61
|
|
1053
1112
|
62
|
|
1054
1113
|
63</pre>
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1114
|
+
</td>
|
|
1115
|
+
<td>
|
|
1116
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/dictionary.rb', line 61</span>
|
|
1058
1117
|
|
|
1059
1118
|
<span class='kw'>def</span> <span class='id identifier rubyid_ins?'>ins?</span>
|
|
1060
1119
|
<span class='ivar'>@ins</span>
|
|
1061
1120
|
<span class='kw'>end</span></pre>
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
</table>
|
|
1065
|
-
</div>
|
|
1066
|
-
|
|
1067
|
-
<div class="method_details ">
|
|
1068
|
-
<h3 class="signature " id="to_h-instance_method">
|
|
1069
|
-
|
|
1070
|
-
#<strong>to_h</strong> ⇒ <tt>Hash{Symbol=>[nil, Boolean, Symbol]}</tt>
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
</h3><div class="docstring">
|
|
1077
|
-
<div class="discussion">
|
|
1078
|
-
<p class="note private">
|
|
1079
|
-
<strong>This method is part of a private API.</strong>
|
|
1080
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
1081
|
-
</p>
|
|
1082
|
-
|
|
1083
|
-
<p>Convert the object's attributes to a hash.</p>
|
|
1121
|
+
</td>
|
|
1122
|
+
</tr>
|
|
1123
|
+
</table>
|
|
1124
|
+
</div>
|
|
1084
1125
|
|
|
1126
|
+
<div class="method_details ">
|
|
1127
|
+
<h3 class="signature " id="to_h-instance_method">
|
|
1085
1128
|
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
</div
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1129
|
+
#<strong>to_h</strong> ⇒ <tt>Hash{Symbol=>[nil, Boolean, Symbol]}</tt>
|
|
1130
|
+
|
|
1131
|
+
|
|
1132
|
+
|
|
1133
|
+
|
|
1134
|
+
|
|
1135
|
+
</h3>
|
|
1136
|
+
<div class="docstring">
|
|
1137
|
+
<div class="discussion">
|
|
1138
|
+
<p class="note private">
|
|
1139
|
+
<strong>This method is part of a private API.</strong>
|
|
1140
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
|
1141
|
+
</p>
|
|
1142
|
+
|
|
1143
|
+
<p>Convert the object's attributes to a hash.</p>
|
|
1144
|
+
|
|
1145
|
+
|
|
1146
|
+
</div>
|
|
1147
|
+
</div>
|
|
1148
|
+
<div class="tags">
|
|
1149
|
+
|
|
1150
|
+
<p class="tag_title">Returns:</p>
|
|
1151
|
+
<ul class="return">
|
|
1152
|
+
|
|
1153
|
+
<li>
|
|
1154
|
+
|
|
1155
|
+
|
|
1156
|
+
<span class='type'>(<tt>Hash{Symbol=>[nil, Boolean, Symbol]}</tt>)</span>
|
|
1157
|
+
|
|
1158
|
+
|
|
1159
|
+
|
|
1160
|
+
</li>
|
|
1161
|
+
|
|
1162
|
+
</ul>
|
|
1163
|
+
|
|
1164
|
+
</div>
|
|
1165
|
+
<table class="source_code">
|
|
1166
|
+
<tr>
|
|
1167
|
+
<td>
|
|
1168
|
+
<pre class="lines">
|
|
1108
1169
|
|
|
1109
1170
|
|
|
1110
1171
|
105
|
|
@@ -1115,9 +1176,9 @@ type, which is looked up in the above table.</p>
|
|
|
1115
1176
|
110
|
|
1116
1177
|
111
|
|
1117
1178
|
112</pre>
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1179
|
+
</td>
|
|
1180
|
+
<td>
|
|
1181
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/dictionary.rb', line 105</span>
|
|
1121
1182
|
|
|
1122
1183
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_h'>to_h</span>
|
|
1123
1184
|
<span class='lbrace'>{</span>
|
|
@@ -1127,21 +1188,22 @@ type, which is looked up in the above table.</p>
|
|
|
1127
1188
|
<span class='label'>set_if:</span> <span class='ivar'>@set_if</span>
|
|
1128
1189
|
<span class='rbrace'>}</span>
|
|
1129
1190
|
<span class='kw'>end</span></pre>
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
</table>
|
|
1133
|
-
</div>
|
|
1134
|
-
|
|
1135
|
-
</div>
|
|
1191
|
+
</td>
|
|
1192
|
+
</tr>
|
|
1193
|
+
</table>
|
|
1194
|
+
</div>
|
|
1136
1195
|
|
|
1137
|
-
</div>
|
|
1196
|
+
</div>
|
|
1138
1197
|
|
|
1139
|
-
|
|
1140
|
-
Generated on Sun Feb 11 10:26:09 2018 by
|
|
1141
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1142
|
-
0.9.12 (ruby-2.4.0).
|
|
1143
|
-
</div>
|
|
1198
|
+
</div>
|
|
1144
1199
|
|
|
1200
|
+
<div id="footer">
|
|
1201
|
+
Generated on Sun Feb 11 10:26:09 2018 by
|
|
1202
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1203
|
+
0.9.12 (ruby-2.4.0).
|
|
1145
1204
|
</div>
|
|
1146
|
-
|
|
1147
|
-
</
|
|
1205
|
+
|
|
1206
|
+
</div>
|
|
1207
|
+
</body>
|
|
1208
|
+
|
|
1209
|
+
</html>
|