csv_decision2 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +1 -1
- data/README.md +16 -16
- data/benchmarks/rufus_decision.rb +5 -7
- data/csv_decision2.gemspec +2 -2
- data/doc/CSVDecision/CellValidationError.html +117 -110
- data/doc/CSVDecision/Columns/Default.html +537 -508
- data/doc/CSVDecision/Columns/Dictionary.html +729 -686
- data/doc/CSVDecision/Columns/Entry.html +457 -433
- data/doc/CSVDecision/Columns.html +1134 -1051
- data/doc/CSVDecision/Constant.html +205 -191
- data/doc/CSVDecision/Data.html +423 -398
- data/doc/CSVDecision/Decide.html +236 -225
- data/doc/CSVDecision/Decision.html +872 -825
- data/doc/CSVDecision/Defaults.html +243 -230
- data/doc/CSVDecision/Dictionary/Entry.html +1026 -964
- data/doc/CSVDecision/Dictionary.html +377 -355
- data/doc/CSVDecision/Error.html +116 -105
- data/doc/CSVDecision/FileError.html +117 -110
- data/doc/CSVDecision/Function.html +181 -168
- data/doc/CSVDecision/Guard.html +200 -185
- data/doc/CSVDecision/Header.html +557 -523
- data/doc/CSVDecision/Index.html +652 -617
- data/doc/CSVDecision/Input.html +329 -312
- data/doc/CSVDecision/Load.html +232 -220
- data/doc/CSVDecision/Matchers/Constant.html +432 -399
- data/doc/CSVDecision/Matchers/Function.html +451 -415
- data/doc/CSVDecision/Matchers/Guard.html +459 -424
- data/doc/CSVDecision/Matchers/Matcher.html +470 -426
- data/doc/CSVDecision/Matchers/Numeric.html +375 -346
- data/doc/CSVDecision/Matchers/Pattern.html +429 -396
- data/doc/CSVDecision/Matchers/Proc.html +617 -575
- data/doc/CSVDecision/Matchers/Range.html +331 -302
- data/doc/CSVDecision/Matchers/Symbol.html +386 -353
- data/doc/CSVDecision/Matchers.html +1509 -1393
- data/doc/CSVDecision/Numeric.html +201 -188
- data/doc/CSVDecision/Options.html +376 -357
- data/doc/CSVDecision/Parse.html +217 -204
- data/doc/CSVDecision/Paths.html +664 -629
- data/doc/CSVDecision/Result.html +1076 -1005
- data/doc/CSVDecision/Scan/InputHashes.html +305 -288
- data/doc/CSVDecision/Scan.html +262 -249
- data/doc/CSVDecision/ScanRow.html +749 -705
- data/doc/CSVDecision/Symbol.html +204 -191
- data/doc/CSVDecision/Table.html +1391 -1305
- data/doc/CSVDecision/TableValidationError.html +117 -110
- data/doc/CSVDecision/Validate.html +353 -337
- data/doc/CSVDecision.html +623 -552
- data/doc/_index.html +488 -448
- data/doc/class_list.html +250 -45
- data/doc/file.README.html +304 -278
- data/doc/index.html +304 -278
- data/doc/method_list.html +1159 -1017
- data/doc/top-level-namespace.html +79 -75
- data/lib/{csv_decision → csv_decision2}/columns.rb +7 -7
- data/lib/{csv_decision → csv_decision2}/data.rb +1 -1
- data/lib/{csv_decision → csv_decision2}/decision.rb +5 -5
- data/lib/{csv_decision → csv_decision2}/defaults.rb +2 -2
- data/lib/{csv_decision → csv_decision2}/dictionary.rb +2 -2
- data/lib/{csv_decision → csv_decision2}/header.rb +5 -5
- data/lib/{csv_decision → csv_decision2}/index.rb +5 -5
- data/lib/{csv_decision → csv_decision2}/input.rb +3 -3
- data/lib/{csv_decision → csv_decision2}/load.rb +6 -6
- data/lib/{csv_decision → csv_decision2}/matchers/constant.rb +2 -2
- data/lib/{csv_decision → csv_decision2}/matchers/function.rb +2 -2
- data/lib/{csv_decision → csv_decision2}/matchers/guard.rb +2 -2
- data/lib/{csv_decision → csv_decision2}/matchers/numeric.rb +2 -2
- data/lib/{csv_decision → csv_decision2}/matchers/pattern.rb +2 -2
- data/lib/{csv_decision → csv_decision2}/matchers/range.rb +2 -2
- data/lib/{csv_decision → csv_decision2}/matchers/symbol.rb +2 -2
- data/lib/{csv_decision → csv_decision2}/matchers.rb +5 -5
- data/lib/{csv_decision → csv_decision2}/options.rb +3 -3
- data/lib/{csv_decision → csv_decision2}/parse.rb +14 -14
- data/lib/{csv_decision → csv_decision2}/paths.rb +5 -5
- data/lib/{csv_decision → csv_decision2}/result.rb +2 -2
- data/lib/{csv_decision → csv_decision2}/scan.rb +3 -3
- data/lib/{csv_decision → csv_decision2}/scan_row.rb +2 -2
- data/lib/{csv_decision → csv_decision2}/table.rb +8 -8
- data/lib/{csv_decision → csv_decision2}/validate.rb +2 -2
- data/lib/csv_decision2.rb +45 -0
- data/spec/{csv_decision → csv_decision2}/columns_spec.rb +44 -44
- data/spec/{csv_decision → csv_decision2}/constant_spec.rb +4 -4
- data/spec/{csv_decision → csv_decision2}/data_spec.rb +11 -11
- data/spec/{csv_decision → csv_decision2}/decision_spec.rb +6 -6
- data/spec/{csv_decision → csv_decision2}/examples_spec.rb +14 -14
- data/spec/{csv_decision → csv_decision2}/index_spec.rb +8 -8
- data/spec/{csv_decision → csv_decision2}/input_spec.rb +9 -9
- data/spec/{csv_decision → csv_decision2}/load_spec.rb +8 -8
- data/spec/{csv_decision → csv_decision2}/matchers/function_spec.rb +7 -7
- data/spec/{csv_decision → csv_decision2}/matchers/guard_spec.rb +14 -14
- data/spec/{csv_decision → csv_decision2}/matchers/numeric_spec.rb +5 -5
- data/spec/{csv_decision → csv_decision2}/matchers/pattern_spec.rb +6 -6
- data/spec/{csv_decision → csv_decision2}/matchers/range_spec.rb +5 -5
- data/spec/{csv_decision → csv_decision2}/matchers/symbol_spec.rb +6 -6
- data/spec/{csv_decision → csv_decision2}/options_spec.rb +18 -18
- data/spec/csv_decision2/parse_spec.rb +44 -0
- data/spec/{csv_decision → csv_decision2}/table_spec.rb +17 -17
- data/spec/csv_decision2_spec.rb +7 -0
- metadata +64 -64
- data/lib/csv_decision.rb +0 -45
- data/spec/csv_decision/parse_spec.rb +0 -44
- data/spec/csv_decision_spec.rb +0 -7
@@ -1,23 +1,24 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html>
|
3
|
-
|
4
|
-
|
5
|
-
<meta
|
6
|
-
<
|
7
|
-
|
8
|
-
|
3
|
+
|
4
|
+
<head>
|
5
|
+
<meta charset="utf-8">
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7
|
+
<title>
|
8
|
+
Class: CSVDecision2::Columns
|
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::Columns";
|
20
|
+
relpath = '../';
|
21
|
+
</script>
|
21
22
|
|
22
23
|
|
23
24
|
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
@@ -25,480 +26,528 @@
|
|
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 (C)</a> »
|
42
|
+
<span class='title'><span class='object_link'><a href="../CSVDecision2.html"
|
43
|
+
title="CSVDecision (module)">CSVDecision</a></span></span>
|
44
|
+
»
|
45
|
+
<span class="title">Columns</span>
|
46
|
+
|
47
|
+
</div>
|
48
|
+
|
49
|
+
<div id="search">
|
50
|
+
|
51
|
+
<a class="full_list_link" id="class_list_link" href="../class_list.html">
|
52
|
+
|
53
|
+
<svg width="24" height="24">
|
54
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
56
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
57
|
+
</svg>
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
33
62
|
</div>
|
34
63
|
|
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
|
-
|
64
|
+
<div id="content">
|
65
|
+
<h1>Class: CSVDecision2::Columns
|
66
|
+
|
67
|
+
|
68
|
+
<span class="private note title">Private</span>
|
69
|
+
</h1>
|
70
|
+
<div class="box_info">
|
71
|
+
|
72
|
+
<dl>
|
73
|
+
<dt>Inherits:</dt>
|
74
|
+
<dd>
|
75
|
+
<span class="inheritName">Object</span>
|
76
|
+
|
77
|
+
<ul class="fullTree">
|
78
|
+
<li>Object</li>
|
79
|
+
|
80
|
+
<li class="next">CSVDecision2::Columns</li>
|
81
|
+
|
82
|
+
</ul>
|
83
|
+
<a href="#" class="inheritanceTree">show all</a>
|
84
|
+
|
85
|
+
</dd>
|
86
|
+
</dl>
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
<dl>
|
99
|
+
<dt>Defined in:</dt>
|
100
|
+
<dd>lib/csv_decision2/columns.rb</dd>
|
101
|
+
</dl>
|
102
|
+
|
60
103
|
</div>
|
61
104
|
|
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::Columns</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/columns.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>Dictionary of all this table's columns - inputs, outputs etc.</p>
|
105
|
+
<h2>Overview</h2>
|
106
|
+
<div class="docstring">
|
107
|
+
<div class="discussion">
|
108
|
+
<p class="note private">
|
109
|
+
<strong>This class is part of a private API.</strong>
|
110
|
+
You should avoid using this class if possible, as it may be removed or be changed in the future.
|
111
|
+
</p>
|
110
112
|
|
113
|
+
<p>Dictionary of all this table's columns - inputs, outputs etc.</p>
|
114
|
+
|
115
|
+
|
116
|
+
</div>
|
117
|
+
</div>
|
118
|
+
<div class="tags">
|
119
|
+
|
120
|
+
|
121
|
+
</div>
|
122
|
+
<h2>Defined Under Namespace</h2>
|
123
|
+
<p class="children">
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Columns/Dictionary.html"
|
129
|
+
title="CSVDecision2::Columns::Dictionary (class)">Dictionary</a></span>
|
130
|
+
|
131
|
+
|
132
|
+
</p>
|
111
133
|
|
112
|
-
</div>
|
113
|
-
</div>
|
114
|
-
<div class="tags">
|
115
|
-
|
116
134
|
|
117
|
-
</div><h2>Defined Under Namespace</h2>
|
118
|
-
<p class="children">
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Columns/Dictionary.html" title="CSVDecision::Columns::Dictionary (class)">Dictionary</a></span>
|
124
|
-
|
125
|
-
|
126
|
-
</p>
|
127
135
|
|
128
136
|
|
129
137
|
|
130
138
|
|
131
139
|
|
132
140
|
|
141
|
+
<h2>
|
142
|
+
Class Method Summary
|
143
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
144
|
+
</h2>
|
133
145
|
|
134
|
-
|
135
|
-
<h2>
|
136
|
-
Class Method Summary
|
137
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
138
|
-
</h2>
|
146
|
+
<ul class="summary">
|
139
147
|
|
140
|
-
<ul class="summary">
|
141
|
-
|
142
148
|
<li class="public ">
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
149
|
+
<span class="summary_signature">
|
150
|
+
|
151
|
+
<a href="#ins_cell_dictionary-class_method"
|
152
|
+
title="ins_cell_dictionary (class method)">.<strong>ins_cell_dictionary</strong>(columns:, cell:) ⇒
|
153
|
+
void </a>
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
</span>
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
<span class="private note title">private</span>
|
165
|
+
|
166
|
+
|
167
|
+
<span class="summary_desc">
|
168
|
+
<div class='inline'></div>
|
169
|
+
</span>
|
170
|
+
|
171
|
+
</li>
|
172
|
+
|
173
|
+
|
164
174
|
<li class="public ">
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
175
|
+
<span class="summary_signature">
|
176
|
+
|
177
|
+
<a href="#ins_dictionary-class_method"
|
178
|
+
title="ins_dictionary (class method)">.<strong>ins_dictionary</strong>(columns:, row:) ⇒ void </a>
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
</span>
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
<span class="private note title">private</span>
|
190
|
+
|
191
|
+
|
192
|
+
<span class="summary_desc">
|
193
|
+
<div class='inline'></div>
|
194
|
+
</span>
|
195
|
+
|
196
|
+
</li>
|
197
|
+
|
198
|
+
|
186
199
|
<li class="public ">
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
200
|
+
<span class="summary_signature">
|
201
|
+
|
202
|
+
<a href="#outs_dictionary-class_method"
|
203
|
+
title="outs_dictionary (class method)">.<strong>outs_dictionary</strong>(columns:, row:) ⇒ void
|
204
|
+
</a>
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
</span>
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
<span class="private note title">private</span>
|
216
|
+
|
217
|
+
|
218
|
+
<span class="summary_desc">
|
219
|
+
<div class='inline'></div>
|
220
|
+
</span>
|
221
|
+
|
222
|
+
</li>
|
223
|
+
|
224
|
+
|
225
|
+
</ul>
|
226
|
+
|
227
|
+
<h2>
|
228
|
+
Instance Method Summary
|
229
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
230
|
+
</h2>
|
231
|
+
|
232
|
+
<ul class="summary">
|
233
|
+
|
217
234
|
<li class="public ">
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
<
|
236
|
-
|
237
|
-
|
238
|
-
</
|
239
|
-
|
240
|
-
|
235
|
+
<span class="summary_signature">
|
236
|
+
|
237
|
+
<a href="#defaults-instance_method" title="#defaults (instance method)">#<strong>defaults</strong> ⇒
|
238
|
+
Object </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">
|
253
|
+
<div class='inline'>
|
254
|
+
<p>Input columns with defaults specified.</p>
|
255
|
+
</div>
|
256
|
+
</span>
|
257
|
+
|
258
|
+
</li>
|
259
|
+
|
260
|
+
|
241
261
|
<li class="public ">
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
<
|
260
|
-
|
261
|
-
|
262
|
-
</
|
263
|
-
|
264
|
-
|
262
|
+
<span class="summary_signature">
|
263
|
+
|
264
|
+
<a href="#defaults=-instance_method" title="#defaults= (instance method)">#<strong>defaults=</strong>(value)
|
265
|
+
⇒ Object </a>
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
</span>
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
<span class="private note title">private</span>
|
277
|
+
|
278
|
+
|
279
|
+
<span class="summary_desc">
|
280
|
+
<div class='inline'>
|
281
|
+
<p>Set defaults for columns with defaults specified.</p>
|
282
|
+
</div>
|
283
|
+
</span>
|
284
|
+
|
285
|
+
</li>
|
286
|
+
|
287
|
+
|
265
288
|
<li class="public ">
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
<
|
284
|
-
|
285
|
-
|
286
|
-
</
|
287
|
-
|
288
|
-
|
289
|
+
<span class="summary_signature">
|
290
|
+
|
291
|
+
<a href="#dictionary-instance_method" title="#dictionary (instance method)">#<strong>dictionary</strong>
|
292
|
+
⇒ Hash{Symbol=>[false, Integer]} </a>
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
</span>
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
<span class="private note title">private</span>
|
304
|
+
|
305
|
+
|
306
|
+
<span class="summary_desc">
|
307
|
+
<div class='inline'>
|
308
|
+
<p>Dictionary of all input and output column names.</p>
|
309
|
+
</div>
|
310
|
+
</span>
|
311
|
+
|
312
|
+
</li>
|
313
|
+
|
314
|
+
|
289
315
|
<li class="public ">
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
<
|
308
|
-
|
309
|
-
|
310
|
-
</
|
311
|
-
|
312
|
-
|
316
|
+
<span class="summary_signature">
|
317
|
+
|
318
|
+
<a href="#ifs-instance_method" title="#ifs (instance method)">#<strong>ifs</strong> ⇒
|
319
|
+
Hash{Index=>Entry} </a>
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
</span>
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
|
330
|
+
<span class="private note title">private</span>
|
331
|
+
|
332
|
+
|
333
|
+
<span class="summary_desc">
|
334
|
+
<div class='inline'>
|
335
|
+
<p>if: columns hash keyed by column index.</p>
|
336
|
+
</div>
|
337
|
+
</span>
|
338
|
+
|
339
|
+
</li>
|
340
|
+
|
341
|
+
|
313
342
|
<li class="public ">
|
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
|
-
|
343
|
+
<span class="summary_signature">
|
344
|
+
|
345
|
+
<a href="#initialize-instance_method"
|
346
|
+
title="#initialize (instance method)">#<strong>initialize</strong>(table) ⇒ Columns </a>
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
</span>
|
351
|
+
|
352
|
+
|
353
|
+
<span class="note title constructor">constructor</span>
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
<span class="private note title">private</span>
|
360
|
+
|
361
|
+
|
362
|
+
<span class="summary_desc">
|
363
|
+
<div class='inline'>
|
364
|
+
<p>A new instance of Columns.</p>
|
365
|
+
</div>
|
366
|
+
</span>
|
367
|
+
|
368
|
+
</li>
|
369
|
+
|
370
|
+
|
339
371
|
<li class="public ">
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
<
|
358
|
-
|
359
|
-
|
360
|
-
</
|
361
|
-
|
362
|
-
|
372
|
+
<span class="summary_signature">
|
373
|
+
|
374
|
+
<a href="#input_keys-instance_method" title="#input_keys (instance method)">#<strong>input_keys</strong>
|
375
|
+
⇒ Array<Symbol> </a>
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
</span>
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
|
384
|
+
|
385
|
+
|
386
|
+
<span class="private note title">private</span>
|
387
|
+
|
388
|
+
|
389
|
+
<span class="summary_desc">
|
390
|
+
<div class='inline'>
|
391
|
+
<p>All input column symbols.</p>
|
392
|
+
</div>
|
393
|
+
</span>
|
394
|
+
|
395
|
+
</li>
|
396
|
+
|
397
|
+
|
363
398
|
<li class="public ">
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
<
|
382
|
-
|
383
|
-
|
384
|
-
</
|
385
|
-
|
386
|
-
|
399
|
+
<span class="summary_signature">
|
400
|
+
|
401
|
+
<a href="#ins-instance_method" title="#ins (instance method)">#<strong>ins</strong> ⇒
|
402
|
+
Hash{Index=>Entry} </a>
|
403
|
+
|
404
|
+
|
405
|
+
|
406
|
+
</span>
|
407
|
+
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
|
412
|
+
|
413
|
+
<span class="private note title">private</span>
|
414
|
+
|
415
|
+
|
416
|
+
<span class="summary_desc">
|
417
|
+
<div class='inline'>
|
418
|
+
<p>Input columns hash keyed by column index.</p>
|
419
|
+
</div>
|
420
|
+
</span>
|
421
|
+
|
422
|
+
</li>
|
423
|
+
|
424
|
+
|
387
425
|
<li class="public ">
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
<
|
406
|
-
|
407
|
-
|
408
|
-
</
|
409
|
-
|
410
|
-
|
426
|
+
<span class="summary_signature">
|
427
|
+
|
428
|
+
<a href="#outs-instance_method" title="#outs (instance method)">#<strong>outs</strong> ⇒
|
429
|
+
Hash{Index=>Entry} </a>
|
430
|
+
|
431
|
+
|
432
|
+
|
433
|
+
</span>
|
434
|
+
|
435
|
+
|
436
|
+
|
437
|
+
|
438
|
+
|
439
|
+
|
440
|
+
<span class="private note title">private</span>
|
441
|
+
|
442
|
+
|
443
|
+
<span class="summary_desc">
|
444
|
+
<div class='inline'>
|
445
|
+
<p>Output columns hash keyed by column index.</p>
|
446
|
+
</div>
|
447
|
+
</span>
|
448
|
+
|
449
|
+
</li>
|
450
|
+
|
451
|
+
|
411
452
|
<li class="public ">
|
412
|
-
|
413
|
-
|
414
|
-
<a href="#paths-instance_method" title="#paths (instance method)">#<strong>paths</strong> ⇒ Hash{Index=>Entry} </a>
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
</span>
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
<span class="private note title">private</span>
|
426
|
-
|
427
|
-
|
428
|
-
<span class="summary_desc"><div class='inline'>
|
429
|
-
<p>path: columns hash keyed by column index.</p>
|
430
|
-
</div></span>
|
431
|
-
|
432
|
-
</li>
|
433
|
-
|
434
|
-
|
435
|
-
</ul>
|
436
|
-
|
437
|
-
|
438
|
-
<div id="constructor_details" class="method_details_list">
|
439
|
-
<h2>Constructor Details</h2>
|
440
|
-
|
441
|
-
<div class="method_details first">
|
442
|
-
<h3 class="signature first" id="initialize-instance_method">
|
443
|
-
|
444
|
-
#<strong>initialize</strong>(table) ⇒ <tt><span class='object_link'><a href="" title="CSVDecision::Columns (class)">Columns</a></span></tt>
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
</h3><div class="docstring">
|
451
|
-
<div class="discussion">
|
452
|
-
<p class="note private">
|
453
|
-
<strong>This method is part of a private API.</strong>
|
454
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
455
|
-
</p>
|
456
|
-
|
457
|
-
<p>Returns a new instance of Columns</p>
|
453
|
+
<span class="summary_signature">
|
458
454
|
|
455
|
+
<a href="#paths-instance_method" title="#paths (instance method)">#<strong>paths</strong> ⇒
|
456
|
+
Hash{Index=>Entry} </a>
|
459
457
|
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
</
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
<
|
485
|
-
<
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
458
|
+
|
459
|
+
|
460
|
+
</span>
|
461
|
+
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
|
466
|
+
|
467
|
+
<span class="private note title">private</span>
|
468
|
+
|
469
|
+
|
470
|
+
<span class="summary_desc">
|
471
|
+
<div class='inline'>
|
472
|
+
<p>path: columns hash keyed by column index.</p>
|
473
|
+
</div>
|
474
|
+
</span>
|
475
|
+
|
476
|
+
</li>
|
477
|
+
|
478
|
+
|
479
|
+
</ul>
|
480
|
+
|
481
|
+
|
482
|
+
<div id="constructor_details" class="method_details_list">
|
483
|
+
<h2>Constructor Details</h2>
|
484
|
+
|
485
|
+
<div class="method_details first">
|
486
|
+
<h3 class="signature first" id="initialize-instance_method">
|
487
|
+
|
488
|
+
#<strong>initialize</strong>(table) ⇒ <tt><span class='object_link'><a href=""
|
489
|
+
title="CSVDecision2::Columns (class)">Columns</a></span></tt>
|
490
|
+
|
491
|
+
|
492
|
+
|
493
|
+
|
494
|
+
|
495
|
+
</h3>
|
496
|
+
<div class="docstring">
|
497
|
+
<div class="discussion">
|
498
|
+
<p class="note private">
|
499
|
+
<strong>This method is part of a private API.</strong>
|
500
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
501
|
+
</p>
|
502
|
+
|
503
|
+
<p>Returns a new instance of Columns</p>
|
504
|
+
|
505
|
+
|
506
|
+
</div>
|
507
|
+
</div>
|
508
|
+
<div class="tags">
|
509
|
+
<p class="tag_title">Parameters:</p>
|
510
|
+
<ul class="param">
|
511
|
+
|
512
|
+
<li>
|
513
|
+
|
514
|
+
<span class='name'>table</span>
|
515
|
+
|
516
|
+
|
517
|
+
<span class='type'>(<tt><span class='object_link'><a href="Table.html"
|
518
|
+
title="CSVDecision2::Table (class)">Table</a></span></tt>)</span>
|
519
|
+
|
520
|
+
|
521
|
+
|
522
|
+
—
|
523
|
+
<div class='inline'>
|
524
|
+
<p>Decision table being constructed.</p>
|
525
|
+
</div>
|
526
|
+
|
527
|
+
</li>
|
528
|
+
|
529
|
+
</ul>
|
530
|
+
|
531
|
+
<p class="tag_title">Raises:</p>
|
532
|
+
<ul class="raise">
|
533
|
+
|
534
|
+
<li>
|
535
|
+
|
536
|
+
|
537
|
+
<span class='type'>(<tt><span class='object_link'><a href="TableValidationError.html"
|
538
|
+
title="CSVDecision2::TableValidationError (class)">TableValidationError</a></span></tt>)</span>
|
539
|
+
|
540
|
+
|
541
|
+
|
542
|
+
</li>
|
543
|
+
|
544
|
+
</ul>
|
545
|
+
|
546
|
+
</div>
|
547
|
+
<table class="source_code">
|
548
|
+
<tr>
|
549
|
+
<td>
|
550
|
+
<pre class="lines">
|
502
551
|
|
503
552
|
|
504
553
|
178
|
@@ -514,97 +563,100 @@
|
|
514
563
|
188
|
515
564
|
189
|
516
565
|
190</pre>
|
517
|
-
|
518
|
-
|
519
|
-
|
566
|
+
</td>
|
567
|
+
<td>
|
568
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/columns.rb', line 178</span>
|
520
569
|
|
521
570
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_table'>table</span><span class='rparen'>)</span>
|
522
571
|
<span class='comment'># If a column does not have a valid header cell, then it's empty of data.
|
523
572
|
</span> <span class='comment'># Return the stripped header row, and remove it from the data array.
|
524
|
-
</span> <span class='id identifier rubyid_row'>row</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Header.html" title="
|
573
|
+
</span> <span class='id identifier rubyid_row'>row</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Header.html" title="CSVDecision2::Header (module)">Header</a></span></span><span class='period'>.</span><span class='id identifier rubyid_strip_empty_columns'><span class='object_link'><a href="Header.html#strip_empty_columns-class_method" title="CSVDecision2::Header.strip_empty_columns (method)">strip_empty_columns</a></span></span><span class='lparen'>(</span><span class='label'>rows:</span> <span class='id identifier rubyid_table'>table</span><span class='period'>.</span><span class='id identifier rubyid_rows'>rows</span><span class='rparen'>)</span>
|
525
574
|
|
526
575
|
<span class='comment'># No header row found?
|
527
|
-
</span> <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="TableValidationError.html" title="
|
576
|
+
</span> <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="TableValidationError.html" title="CSVDecision2::TableValidationError (class)">TableValidationError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>table has no header row</span><span class='tstring_end'>'</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_row'>row</span>
|
528
577
|
|
529
578
|
<span class='comment'># Build a dictionary of all valid data columns from the header row.
|
530
|
-
</span> <span class='ivar'>@dictionary</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../
|
579
|
+
</span> <span class='ivar'>@dictionary</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../CSVDecision2.html" title="CSVDecision (module)">CSVDecision</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Dictionary.html" title="CSVDecision2::Dictionary (module)">Dictionary</a></span></span><span class='period'>.</span><span class='id identifier rubyid_build'><span class='object_link'><a href="Dictionary.html#build-class_method" title="CSVDecision2::Dictionary.build (method)">build</a></span></span><span class='lparen'>(</span><span class='label'>header:</span> <span class='id identifier rubyid_row'>row</span><span class='comma'>,</span> <span class='label'>dictionary:</span> <span class='const'><span class='object_link'><a href="Columns/Dictionary.html" title="CSVDecision2::Columns::Dictionary (class)">Dictionary</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Columns/Dictionary.html#initialize-instance_method" title="CSVDecision2::Columns::Dictionary#initialize (method)">new</a></span></span><span class='rparen'>)</span>
|
531
580
|
|
532
581
|
<span class='id identifier rubyid_freeze'>freeze</span>
|
533
582
|
<span class='kw'>end</span></pre>
|
534
|
-
|
535
|
-
|
536
|
-
</table>
|
537
|
-
</div>
|
538
|
-
|
539
|
-
</div>
|
540
|
-
|
541
|
-
|
542
|
-
<div id="class_method_details" class="method_details_list">
|
543
|
-
<h2>Class Method Details</h2>
|
544
|
-
|
545
|
-
|
546
|
-
<div class="method_details first">
|
547
|
-
<h3 class="signature first" id="ins_cell_dictionary-class_method">
|
548
|
-
|
549
|
-
.<strong>ins_cell_dictionary</strong>(columns:, cell:) ⇒ <tt>void</tt>
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
</h3><div class="docstring">
|
556
|
-
<div class="discussion">
|
557
|
-
<p class="note private">
|
558
|
-
<strong>This method is part of a private API.</strong>
|
559
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
560
|
-
</p>
|
561
|
-
<p class="note returns_void">This method returns an undefined value.</p>
|
583
|
+
</td>
|
584
|
+
</tr>
|
585
|
+
</table>
|
586
|
+
</div>
|
562
587
|
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
<
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
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
|
-
<
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
588
|
+
</div>
|
589
|
+
|
590
|
+
|
591
|
+
<div id="class_method_details" class="method_details_list">
|
592
|
+
<h2>Class Method Details</h2>
|
593
|
+
|
594
|
+
|
595
|
+
<div class="method_details first">
|
596
|
+
<h3 class="signature first" id="ins_cell_dictionary-class_method">
|
597
|
+
|
598
|
+
.<strong>ins_cell_dictionary</strong>(columns:, cell:) ⇒ <tt>void</tt>
|
599
|
+
|
600
|
+
|
601
|
+
|
602
|
+
|
603
|
+
|
604
|
+
</h3>
|
605
|
+
<div class="docstring">
|
606
|
+
<div class="discussion">
|
607
|
+
<p class="note private">
|
608
|
+
<strong>This method is part of a private API.</strong>
|
609
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
610
|
+
</p>
|
611
|
+
<p class="note returns_void">This method returns an undefined value.</p>
|
612
|
+
|
613
|
+
</div>
|
614
|
+
</div>
|
615
|
+
<div class="tags">
|
616
|
+
<p class="tag_title">Parameters:</p>
|
617
|
+
<ul class="param">
|
618
|
+
|
619
|
+
<li>
|
620
|
+
|
621
|
+
<span class='name'>columns</span>
|
622
|
+
|
623
|
+
|
624
|
+
<span class='type'>(<tt><span class='object_link'><a href=""
|
625
|
+
title="CSVDecision2::Columns (class)">CSVDecision2::Columns</a></span></tt>)</span>
|
626
|
+
|
627
|
+
|
628
|
+
|
629
|
+
—
|
630
|
+
<div class='inline'>
|
631
|
+
<p>Table's columns dictionary.</p>
|
632
|
+
</div>
|
633
|
+
|
634
|
+
</li>
|
635
|
+
|
636
|
+
<li>
|
637
|
+
|
638
|
+
<span class='name'>cell</span>
|
639
|
+
|
640
|
+
|
641
|
+
<span class='type'>(<tt>Object</tt>)</span>
|
642
|
+
|
643
|
+
|
644
|
+
|
645
|
+
—
|
646
|
+
<div class='inline'>
|
647
|
+
<p>Data row cell.</p>
|
648
|
+
</div>
|
649
|
+
|
650
|
+
</li>
|
651
|
+
|
652
|
+
</ul>
|
653
|
+
|
654
|
+
|
655
|
+
</div>
|
656
|
+
<table class="source_code">
|
657
|
+
<tr>
|
658
|
+
<td>
|
659
|
+
<pre class="lines">
|
608
660
|
|
609
661
|
|
610
662
|
30
|
@@ -613,162 +665,168 @@
|
|
613
665
|
33
|
614
666
|
34
|
615
667
|
35</pre>
|
616
|
-
|
617
|
-
|
618
|
-
|
668
|
+
</td>
|
669
|
+
<td>
|
670
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/columns.rb', line 30</span>
|
619
671
|
|
620
672
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_ins_cell_dictionary'>ins_cell_dictionary</span><span class='lparen'>(</span><span class='label'>columns:</span><span class='comma'>,</span> <span class='label'>cell:</span><span class='rparen'>)</span>
|
621
|
-
<span class='kw'>return</span> <span class='kw'>unless</span> <span class='id identifier rubyid_cell'>cell</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="Matchers.html" title="
|
673
|
+
<span class='kw'>return</span> <span class='kw'>unless</span> <span class='id identifier rubyid_cell'>cell</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="Matchers.html" title="CSVDecision2::Matchers (class)">Matchers</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Matchers/Proc.html" title="CSVDecision2::Matchers::Proc (class)">Proc</a></span></span><span class='rparen'>)</span>
|
622
674
|
<span class='kw'>return</span> <span class='kw'>if</span> <span class='id identifier rubyid_cell'>cell</span><span class='period'>.</span><span class='id identifier rubyid_symbols'>symbols</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
623
675
|
|
624
676
|
<span class='id identifier rubyid_add_ins_symbols'>add_ins_symbols</span><span class='lparen'>(</span><span class='label'>columns:</span> <span class='id identifier rubyid_columns'>columns</span><span class='comma'>,</span> <span class='label'>cell:</span> <span class='id identifier rubyid_cell'>cell</span><span class='rparen'>)</span>
|
625
677
|
<span class='kw'>end</span></pre>
|
626
|
-
|
627
|
-
|
628
|
-
</table>
|
629
|
-
</div>
|
630
|
-
|
631
|
-
<div class="method_details ">
|
632
|
-
<h3 class="signature " id="ins_dictionary-class_method">
|
633
|
-
|
634
|
-
.<strong>ins_dictionary</strong>(columns:, row:) ⇒ <tt>void</tt>
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
</h3><div class="docstring">
|
641
|
-
<div class="discussion">
|
642
|
-
<p class="note private">
|
643
|
-
<strong>This method is part of a private API.</strong>
|
644
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
645
|
-
</p>
|
646
|
-
<p class="note returns_void">This method returns an undefined value.</p>
|
678
|
+
</td>
|
679
|
+
</tr>
|
680
|
+
</table>
|
681
|
+
</div>
|
647
682
|
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
</div>
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
683
|
+
<div class="method_details ">
|
684
|
+
<h3 class="signature " id="ins_dictionary-class_method">
|
685
|
+
|
686
|
+
.<strong>ins_dictionary</strong>(columns:, row:) ⇒ <tt>void</tt>
|
687
|
+
|
688
|
+
|
689
|
+
|
690
|
+
|
691
|
+
|
692
|
+
</h3>
|
693
|
+
<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
|
+
<p class="note returns_void">This method returns an undefined value.</p>
|
700
|
+
|
701
|
+
</div>
|
702
|
+
</div>
|
703
|
+
<div class="tags">
|
704
|
+
<p class="tag_title">Parameters:</p>
|
705
|
+
<ul class="param">
|
706
|
+
|
707
|
+
<li>
|
708
|
+
|
709
|
+
<span class='name'>columns</span>
|
710
|
+
|
711
|
+
|
712
|
+
<span class='type'>(<tt><span class='object_link'><a href=""
|
713
|
+
title="CSVDecision2::Columns (class)">CSVDecision2::Columns</a></span></tt>)</span>
|
714
|
+
|
715
|
+
|
716
|
+
|
717
|
+
—
|
718
|
+
<div class='inline'>
|
719
|
+
<p>Table's columns dictionary.</p>
|
720
|
+
</div>
|
721
|
+
|
722
|
+
</li>
|
723
|
+
|
724
|
+
<li>
|
725
|
+
|
726
|
+
<span class='name'>row</span>
|
727
|
+
|
728
|
+
|
729
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
730
|
+
|
731
|
+
|
732
|
+
|
733
|
+
—
|
734
|
+
<div class='inline'>
|
735
|
+
<p>Data row.</p>
|
736
|
+
</div>
|
737
|
+
|
738
|
+
</li>
|
739
|
+
|
740
|
+
</ul>
|
741
|
+
|
742
|
+
|
743
|
+
</div>
|
744
|
+
<table class="source_code">
|
745
|
+
<tr>
|
746
|
+
<td>
|
747
|
+
<pre class="lines">
|
693
748
|
|
694
749
|
|
695
750
|
23
|
696
751
|
24
|
697
752
|
25</pre>
|
698
|
-
|
699
|
-
|
700
|
-
|
753
|
+
</td>
|
754
|
+
<td>
|
755
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/columns.rb', line 23</span>
|
701
756
|
|
702
757
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_ins_dictionary'>ins_dictionary</span><span class='lparen'>(</span><span class='label'>columns:</span><span class='comma'>,</span> <span class='label'>row:</span><span class='rparen'>)</span>
|
703
758
|
<span class='id identifier rubyid_row'>row</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_cell'>cell</span><span class='op'>|</span> <span class='id identifier rubyid_ins_cell_dictionary'>ins_cell_dictionary</span><span class='lparen'>(</span><span class='label'>columns:</span> <span class='id identifier rubyid_columns'>columns</span><span class='comma'>,</span> <span class='label'>cell:</span> <span class='id identifier rubyid_cell'>cell</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
704
759
|
<span class='kw'>end</span></pre>
|
705
|
-
|
706
|
-
|
707
|
-
</table>
|
708
|
-
</div>
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
</h3
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
760
|
+
</td>
|
761
|
+
</tr>
|
762
|
+
</table>
|
763
|
+
</div>
|
764
|
+
|
765
|
+
<div class="method_details ">
|
766
|
+
<h3 class="signature " id="outs_dictionary-class_method">
|
767
|
+
|
768
|
+
.<strong>outs_dictionary</strong>(columns:, row:) ⇒ <tt>void</tt>
|
769
|
+
|
770
|
+
|
771
|
+
|
772
|
+
|
773
|
+
|
774
|
+
</h3>
|
775
|
+
<div class="docstring">
|
776
|
+
<div class="discussion">
|
777
|
+
<p class="note private">
|
778
|
+
<strong>This method is part of a private API.</strong>
|
779
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
780
|
+
</p>
|
781
|
+
<p class="note returns_void">This method returns an undefined value.</p>
|
782
|
+
|
783
|
+
</div>
|
784
|
+
</div>
|
785
|
+
<div class="tags">
|
786
|
+
<p class="tag_title">Parameters:</p>
|
787
|
+
<ul class="param">
|
788
|
+
|
789
|
+
<li>
|
790
|
+
|
791
|
+
<span class='name'>columns</span>
|
792
|
+
|
793
|
+
|
794
|
+
<span class='type'>(<tt><span class='object_link'><a href=""
|
795
|
+
title="CSVDecision2::Columns (class)">CSVDecision2::Columns</a></span></tt>)</span>
|
726
796
|
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
<
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
<p>Data row.</p>
|
761
|
-
</div>
|
762
|
-
|
763
|
-
</li>
|
764
|
-
|
765
|
-
</ul>
|
766
|
-
|
767
|
-
|
768
|
-
</div><table class="source_code">
|
769
|
-
<tr>
|
770
|
-
<td>
|
771
|
-
<pre class="lines">
|
797
|
+
|
798
|
+
|
799
|
+
—
|
800
|
+
<div class='inline'>
|
801
|
+
<p>Table's columns dictionary.</p>
|
802
|
+
</div>
|
803
|
+
|
804
|
+
</li>
|
805
|
+
|
806
|
+
<li>
|
807
|
+
|
808
|
+
<span class='name'>row</span>
|
809
|
+
|
810
|
+
|
811
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
812
|
+
|
813
|
+
|
814
|
+
|
815
|
+
—
|
816
|
+
<div class='inline'>
|
817
|
+
<p>Data row.</p>
|
818
|
+
</div>
|
819
|
+
|
820
|
+
</li>
|
821
|
+
|
822
|
+
</ul>
|
823
|
+
|
824
|
+
|
825
|
+
</div>
|
826
|
+
<table class="source_code">
|
827
|
+
<tr>
|
828
|
+
<td>
|
829
|
+
<pre class="lines">
|
772
830
|
|
773
831
|
|
774
832
|
14
|
@@ -776,484 +834,509 @@
|
|
776
834
|
16
|
777
835
|
17
|
778
836
|
18</pre>
|
779
|
-
|
780
|
-
|
781
|
-
|
837
|
+
</td>
|
838
|
+
<td>
|
839
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/columns.rb', line 14</span>
|
782
840
|
|
783
841
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_outs_dictionary'>outs_dictionary</span><span class='lparen'>(</span><span class='label'>columns:</span><span class='comma'>,</span> <span class='label'>row:</span><span class='rparen'>)</span>
|
784
842
|
<span class='id identifier rubyid_row'>row</span><span class='period'>.</span><span class='id identifier rubyid_each_with_index'>each_with_index</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_cell'>cell</span><span class='comma'>,</span> <span class='id identifier rubyid_index'>index</span><span class='op'>|</span>
|
785
843
|
<span class='id identifier rubyid_outs_check_cell'>outs_check_cell</span><span class='lparen'>(</span><span class='label'>columns:</span> <span class='id identifier rubyid_columns'>columns</span><span class='comma'>,</span> <span class='label'>cell:</span> <span class='id identifier rubyid_cell'>cell</span><span class='comma'>,</span> <span class='label'>index:</span> <span class='id identifier rubyid_index'>index</span><span class='rparen'>)</span>
|
786
844
|
<span class='kw'>end</span>
|
787
845
|
<span class='kw'>end</span></pre>
|
788
|
-
|
789
|
-
|
790
|
-
</table>
|
791
|
-
</div>
|
792
|
-
|
793
|
-
</div>
|
846
|
+
</td>
|
847
|
+
</tr>
|
848
|
+
</table>
|
849
|
+
</div>
|
794
850
|
|
795
|
-
|
796
|
-
<h2>Instance Method Details</h2>
|
851
|
+
</div>
|
797
852
|
|
798
|
-
|
799
|
-
|
800
|
-
<h3 class="signature first" id="defaults-instance_method">
|
801
|
-
|
802
|
-
#<strong>defaults</strong> ⇒ <tt>Object</tt>
|
803
|
-
|
853
|
+
<div id="instance_method_details" class="method_details_list">
|
854
|
+
<h2>Instance Method Details</h2>
|
804
855
|
|
805
|
-
|
806
856
|
|
807
|
-
|
808
|
-
|
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>
|
857
|
+
<div class="method_details first">
|
858
|
+
<h3 class="signature first" id="defaults-instance_method">
|
814
859
|
|
815
|
-
|
860
|
+
#<strong>defaults</strong> ⇒ <tt>Object</tt>
|
816
861
|
|
817
862
|
|
818
|
-
</div>
|
819
|
-
</div>
|
820
|
-
<div class="tags">
|
821
|
-
|
822
863
|
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
864
|
+
|
865
|
+
|
866
|
+
</h3>
|
867
|
+
<div class="docstring">
|
868
|
+
<div class="discussion">
|
869
|
+
<p class="note private">
|
870
|
+
<strong>This method is part of a private API.</strong>
|
871
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
872
|
+
</p>
|
873
|
+
|
874
|
+
<p>Input columns with defaults specified</p>
|
875
|
+
|
876
|
+
|
877
|
+
</div>
|
878
|
+
</div>
|
879
|
+
<div class="tags">
|
880
|
+
|
881
|
+
|
882
|
+
</div>
|
883
|
+
<table class="source_code">
|
884
|
+
<tr>
|
885
|
+
<td>
|
886
|
+
<pre class="lines">
|
827
887
|
|
828
888
|
|
829
889
|
133
|
830
890
|
134
|
831
891
|
135</pre>
|
832
|
-
|
833
|
-
|
834
|
-
|
892
|
+
</td>
|
893
|
+
<td>
|
894
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/columns.rb', line 133</span>
|
835
895
|
|
836
896
|
<span class='kw'>def</span> <span class='id identifier rubyid_defaults'>defaults</span>
|
837
897
|
<span class='ivar'>@dictionary</span><span class='op'>&.</span><span class='id identifier rubyid_defaults'>defaults</span>
|
838
898
|
<span class='kw'>end</span></pre>
|
839
|
-
|
840
|
-
|
841
|
-
</table>
|
842
|
-
</div>
|
843
|
-
|
844
|
-
<div class="method_details ">
|
845
|
-
<h3 class="signature " id="defaults=-instance_method">
|
846
|
-
|
847
|
-
#<strong>defaults=</strong>(value) ⇒ <tt>Object</tt>
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
</h3><div class="docstring">
|
854
|
-
<div class="discussion">
|
855
|
-
<p class="note private">
|
856
|
-
<strong>This method is part of a private API.</strong>
|
857
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
858
|
-
</p>
|
859
|
-
|
860
|
-
<p>Set defaults for columns with defaults specified</p>
|
899
|
+
</td>
|
900
|
+
</tr>
|
901
|
+
</table>
|
902
|
+
</div>
|
861
903
|
|
904
|
+
<div class="method_details ">
|
905
|
+
<h3 class="signature " id="defaults=-instance_method">
|
862
906
|
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
907
|
+
#<strong>defaults=</strong>(value) ⇒ <tt>Object</tt>
|
908
|
+
|
909
|
+
|
910
|
+
|
911
|
+
|
912
|
+
|
913
|
+
</h3>
|
914
|
+
<div class="docstring">
|
915
|
+
<div class="discussion">
|
916
|
+
<p class="note private">
|
917
|
+
<strong>This method is part of a private API.</strong>
|
918
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
919
|
+
</p>
|
867
920
|
|
868
|
-
</
|
869
|
-
|
870
|
-
|
871
|
-
|
921
|
+
<p>Set defaults for columns with defaults specified</p>
|
922
|
+
|
923
|
+
|
924
|
+
</div>
|
925
|
+
</div>
|
926
|
+
<div class="tags">
|
927
|
+
|
928
|
+
|
929
|
+
</div>
|
930
|
+
<table class="source_code">
|
931
|
+
<tr>
|
932
|
+
<td>
|
933
|
+
<pre class="lines">
|
872
934
|
|
873
935
|
|
874
936
|
138
|
875
937
|
139
|
876
938
|
140</pre>
|
877
|
-
|
878
|
-
|
879
|
-
|
939
|
+
</td>
|
940
|
+
<td>
|
941
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/columns.rb', line 138</span>
|
880
942
|
|
881
943
|
<span class='kw'>def</span> <span class='id identifier rubyid_defaults='>defaults=</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
882
944
|
<span class='ivar'>@dictionary</span><span class='period'>.</span><span class='id identifier rubyid_defaults'>defaults</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
|
883
945
|
<span class='kw'>end</span></pre>
|
884
|
-
|
885
|
-
|
886
|
-
</table>
|
887
|
-
</div>
|
888
|
-
|
889
|
-
<div class="method_details ">
|
890
|
-
<h3 class="signature " id="dictionary-instance_method">
|
891
|
-
|
892
|
-
#<strong>dictionary</strong> ⇒ <tt>Hash{Symbol=>[false, Integer]}</tt>
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
</h3><div class="docstring">
|
899
|
-
<div class="discussion">
|
900
|
-
<p class="note private">
|
901
|
-
<strong>This method is part of a private API.</strong>
|
902
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
903
|
-
</p>
|
904
|
-
|
905
|
-
<p>Returns Dictionary of all input and output column names.</p>
|
946
|
+
</td>
|
947
|
+
</tr>
|
948
|
+
</table>
|
949
|
+
</div>
|
906
950
|
|
951
|
+
<div class="method_details ">
|
952
|
+
<h3 class="signature " id="dictionary-instance_method">
|
907
953
|
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
</div>
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
954
|
+
#<strong>dictionary</strong> ⇒ <tt>Hash{Symbol=>[false, Integer]}</tt>
|
955
|
+
|
956
|
+
|
957
|
+
|
958
|
+
|
959
|
+
|
960
|
+
</h3>
|
961
|
+
<div class="docstring">
|
962
|
+
<div class="discussion">
|
963
|
+
<p class="note private">
|
964
|
+
<strong>This method is part of a private API.</strong>
|
965
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
966
|
+
</p>
|
967
|
+
|
968
|
+
<p>Returns Dictionary of all input and output column names.</p>
|
969
|
+
|
970
|
+
|
971
|
+
</div>
|
972
|
+
</div>
|
973
|
+
<div class="tags">
|
974
|
+
|
975
|
+
<p class="tag_title">Returns:</p>
|
976
|
+
<ul class="return">
|
977
|
+
|
978
|
+
<li>
|
979
|
+
|
980
|
+
|
981
|
+
<span class='type'>(<tt>Hash{Symbol=>[false, Integer]}</tt>)</span>
|
982
|
+
|
983
|
+
|
984
|
+
|
985
|
+
—
|
986
|
+
<div class='inline'>
|
987
|
+
<p>Dictionary of all input and output column names.</p>
|
988
|
+
</div>
|
989
|
+
|
990
|
+
</li>
|
991
|
+
|
992
|
+
</ul>
|
993
|
+
|
994
|
+
</div>
|
995
|
+
<table class="source_code">
|
996
|
+
<tr>
|
997
|
+
<td>
|
998
|
+
<pre class="lines">
|
935
999
|
|
936
1000
|
|
937
1001
|
144
|
938
1002
|
145
|
939
1003
|
146</pre>
|
940
|
-
|
941
|
-
|
942
|
-
|
1004
|
+
</td>
|
1005
|
+
<td>
|
1006
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/columns.rb', line 144</span>
|
943
1007
|
|
944
1008
|
<span class='kw'>def</span> <span class='id identifier rubyid_dictionary'>dictionary</span>
|
945
1009
|
<span class='ivar'>@dictionary</span><span class='period'>.</span><span class='id identifier rubyid_columns'>columns</span>
|
946
1010
|
<span class='kw'>end</span></pre>
|
947
|
-
|
948
|
-
|
949
|
-
</table>
|
950
|
-
</div>
|
951
|
-
|
952
|
-
<div class="method_details ">
|
953
|
-
<h3 class="signature " id="ifs-instance_method">
|
954
|
-
|
955
|
-
#<strong>ifs</strong> ⇒ <tt>Hash{<span class='object_link'><a href="Index.html" title="CSVDecision::Index (class)">Index</a></span>=>Entry}</tt>
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
</h3><div class="docstring">
|
962
|
-
<div class="discussion">
|
963
|
-
<p class="note private">
|
964
|
-
<strong>This method is part of a private API.</strong>
|
965
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
966
|
-
</p>
|
967
|
-
|
968
|
-
<p>if: columns hash keyed by column index.</p>
|
1011
|
+
</td>
|
1012
|
+
</tr>
|
1013
|
+
</table>
|
1014
|
+
</div>
|
969
1015
|
|
1016
|
+
<div class="method_details ">
|
1017
|
+
<h3 class="signature " id="ifs-instance_method">
|
970
1018
|
|
971
|
-
|
972
|
-
</
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
</div
|
990
|
-
|
991
|
-
|
992
|
-
|
1019
|
+
#<strong>ifs</strong> ⇒ <tt>Hash{<span class='object_link'><a href="Index.html"
|
1020
|
+
title="CSVDecision2::Index (class)">Index</a></span>=>Entry}</tt>
|
1021
|
+
|
1022
|
+
|
1023
|
+
|
1024
|
+
|
1025
|
+
|
1026
|
+
</h3>
|
1027
|
+
<div class="docstring">
|
1028
|
+
<div class="discussion">
|
1029
|
+
<p class="note private">
|
1030
|
+
<strong>This method is part of a private API.</strong>
|
1031
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
1032
|
+
</p>
|
1033
|
+
|
1034
|
+
<p>if: columns hash keyed by column index.</p>
|
1035
|
+
|
1036
|
+
|
1037
|
+
</div>
|
1038
|
+
</div>
|
1039
|
+
<div class="tags">
|
1040
|
+
|
1041
|
+
<p class="tag_title">Returns:</p>
|
1042
|
+
<ul class="return">
|
1043
|
+
|
1044
|
+
<li>
|
1045
|
+
|
1046
|
+
|
1047
|
+
<span class='type'>(<tt>Hash{<span class='object_link'><a href="Index.html"
|
1048
|
+
title="CSVDecision2::Index (class)">Index</a></span>=>Entry}</tt>)</span>
|
1049
|
+
|
1050
|
+
|
1051
|
+
|
1052
|
+
</li>
|
1053
|
+
|
1054
|
+
</ul>
|
1055
|
+
|
1056
|
+
</div>
|
1057
|
+
<table class="source_code">
|
1058
|
+
<tr>
|
1059
|
+
<td>
|
1060
|
+
<pre class="lines">
|
993
1061
|
|
994
1062
|
|
995
1063
|
162
|
996
1064
|
163
|
997
1065
|
164</pre>
|
998
|
-
|
999
|
-
|
1000
|
-
|
1066
|
+
</td>
|
1067
|
+
<td>
|
1068
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/columns.rb', line 162</span>
|
1001
1069
|
|
1002
1070
|
<span class='kw'>def</span> <span class='id identifier rubyid_ifs'>ifs</span>
|
1003
1071
|
<span class='ivar'>@dictionary</span><span class='period'>.</span><span class='id identifier rubyid_ifs'>ifs</span>
|
1004
1072
|
<span class='kw'>end</span></pre>
|
1005
|
-
|
1006
|
-
|
1007
|
-
</table>
|
1008
|
-
</div>
|
1009
|
-
|
1010
|
-
<div class="method_details ">
|
1011
|
-
<h3 class="signature " id="input_keys-instance_method">
|
1012
|
-
|
1013
|
-
#<strong>input_keys</strong> ⇒ <tt>Array<Symbol></tt>
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
</h3><div class="docstring">
|
1020
|
-
<div class="discussion">
|
1021
|
-
<p class="note private">
|
1022
|
-
<strong>This method is part of a private API.</strong>
|
1023
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
1024
|
-
</p>
|
1025
|
-
|
1026
|
-
<p>Returns All input column symbols.</p>
|
1073
|
+
</td>
|
1074
|
+
</tr>
|
1075
|
+
</table>
|
1076
|
+
</div>
|
1027
1077
|
|
1078
|
+
<div class="method_details ">
|
1079
|
+
<h3 class="signature " id="input_keys-instance_method">
|
1028
1080
|
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
</div>
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1081
|
+
#<strong>input_keys</strong> ⇒ <tt>Array<Symbol></tt>
|
1082
|
+
|
1083
|
+
|
1084
|
+
|
1085
|
+
|
1086
|
+
|
1087
|
+
</h3>
|
1088
|
+
<div class="docstring">
|
1089
|
+
<div class="discussion">
|
1090
|
+
<p class="note private">
|
1091
|
+
<strong>This method is part of a private API.</strong>
|
1092
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
1093
|
+
</p>
|
1094
|
+
|
1095
|
+
<p>Returns All input column symbols.</p>
|
1096
|
+
|
1097
|
+
|
1098
|
+
</div>
|
1099
|
+
</div>
|
1100
|
+
<div class="tags">
|
1101
|
+
|
1102
|
+
<p class="tag_title">Returns:</p>
|
1103
|
+
<ul class="return">
|
1104
|
+
|
1105
|
+
<li>
|
1106
|
+
|
1107
|
+
|
1108
|
+
<span class='type'>(<tt>Array<Symbol></tt>)</span>
|
1109
|
+
|
1110
|
+
|
1111
|
+
|
1112
|
+
—
|
1113
|
+
<div class='inline'>
|
1114
|
+
<p>All input column symbols.</p>
|
1115
|
+
</div>
|
1116
|
+
|
1117
|
+
</li>
|
1118
|
+
|
1119
|
+
</ul>
|
1120
|
+
|
1121
|
+
</div>
|
1122
|
+
<table class="source_code">
|
1123
|
+
<tr>
|
1124
|
+
<td>
|
1125
|
+
<pre class="lines">
|
1056
1126
|
|
1057
1127
|
|
1058
1128
|
173
|
1059
1129
|
174
|
1060
1130
|
175</pre>
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1131
|
+
</td>
|
1132
|
+
<td>
|
1133
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/columns.rb', line 173</span>
|
1064
1134
|
|
1065
1135
|
<span class='kw'>def</span> <span class='id identifier rubyid_input_keys'>input_keys</span>
|
1066
1136
|
<span class='ivar'>@dictionary</span><span class='period'>.</span><span class='id identifier rubyid_columns'>columns</span><span class='period'>.</span><span class='id identifier rubyid_select'>select</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid__k'>_k</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='op'>|</span> <span class='id identifier rubyid_v'>v</span> <span class='op'>==</span> <span class='symbol'>:in</span> <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span>
|
1067
1137
|
<span class='kw'>end</span></pre>
|
1068
|
-
|
1069
|
-
|
1070
|
-
</table>
|
1071
|
-
</div>
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1138
|
+
</td>
|
1139
|
+
</tr>
|
1140
|
+
</table>
|
1141
|
+
</div>
|
1142
|
+
|
1143
|
+
<div class="method_details ">
|
1144
|
+
<h3 class="signature " id="ins-instance_method">
|
1145
|
+
|
1146
|
+
#<strong>ins</strong> ⇒ <tt>Hash{<span class='object_link'><a href="Index.html"
|
1147
|
+
title="CSVDecision2::Index (class)">Index</a></span>=>Entry}</tt>
|
1148
|
+
|
1149
|
+
|
1150
|
+
|
1151
|
+
|
1152
|
+
|
1153
|
+
</h3>
|
1154
|
+
<div class="docstring">
|
1155
|
+
<div class="discussion">
|
1156
|
+
<p class="note private">
|
1157
|
+
<strong>This method is part of a private API.</strong>
|
1158
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
1159
|
+
</p>
|
1160
|
+
|
1161
|
+
<p>Input columns hash keyed by column index.</p>
|
1162
|
+
|
1163
|
+
|
1164
|
+
</div>
|
1165
|
+
</div>
|
1166
|
+
<div class="tags">
|
1167
|
+
|
1168
|
+
<p class="tag_title">Returns:</p>
|
1169
|
+
<ul class="return">
|
1170
|
+
|
1171
|
+
<li>
|
1172
|
+
|
1173
|
+
|
1174
|
+
<span class='type'>(<tt>Hash{<span class='object_link'><a href="Index.html"
|
1175
|
+
title="CSVDecision2::Index (class)">Index</a></span>=>Entry}</tt>)</span>
|
1090
1176
|
|
1091
1177
|
|
1092
|
-
|
1093
|
-
</
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
<span class='type'>(<tt>Hash{<span class='object_link'><a href="Index.html" title="CSVDecision::Index (class)">Index</a></span>=>Entry}</tt>)</span>
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
</li>
|
1107
|
-
|
1108
|
-
</ul>
|
1109
|
-
|
1110
|
-
</div><table class="source_code">
|
1111
|
-
<tr>
|
1112
|
-
<td>
|
1113
|
-
<pre class="lines">
|
1178
|
+
|
1179
|
+
</li>
|
1180
|
+
|
1181
|
+
</ul>
|
1182
|
+
|
1183
|
+
</div>
|
1184
|
+
<table class="source_code">
|
1185
|
+
<tr>
|
1186
|
+
<td>
|
1187
|
+
<pre class="lines">
|
1114
1188
|
|
1115
1189
|
|
1116
1190
|
150
|
1117
1191
|
151
|
1118
1192
|
152</pre>
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1193
|
+
</td>
|
1194
|
+
<td>
|
1195
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/columns.rb', line 150</span>
|
1122
1196
|
|
1123
1197
|
<span class='kw'>def</span> <span class='id identifier rubyid_ins'>ins</span>
|
1124
1198
|
<span class='ivar'>@dictionary</span><span class='period'>.</span><span class='id identifier rubyid_ins'>ins</span>
|
1125
1199
|
<span class='kw'>end</span></pre>
|
1126
|
-
|
1127
|
-
|
1128
|
-
</table>
|
1129
|
-
</div>
|
1130
|
-
|
1131
|
-
<div class="method_details ">
|
1132
|
-
<h3 class="signature " id="outs-instance_method">
|
1133
|
-
|
1134
|
-
#<strong>outs</strong> ⇒ <tt>Hash{<span class='object_link'><a href="Index.html" title="CSVDecision::Index (class)">Index</a></span>=>Entry}</tt>
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
</h3><div class="docstring">
|
1141
|
-
<div class="discussion">
|
1142
|
-
<p class="note private">
|
1143
|
-
<strong>This method is part of a private API.</strong>
|
1144
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
1145
|
-
</p>
|
1146
|
-
|
1147
|
-
<p>Output columns hash keyed by column index.</p>
|
1200
|
+
</td>
|
1201
|
+
</tr>
|
1202
|
+
</table>
|
1203
|
+
</div>
|
1148
1204
|
|
1205
|
+
<div class="method_details ">
|
1206
|
+
<h3 class="signature " id="outs-instance_method">
|
1207
|
+
|
1208
|
+
#<strong>outs</strong> ⇒ <tt>Hash{<span class='object_link'><a href="Index.html"
|
1209
|
+
title="CSVDecision2::Index (class)">Index</a></span>=>Entry}</tt>
|
1210
|
+
|
1211
|
+
|
1212
|
+
|
1213
|
+
|
1214
|
+
|
1215
|
+
</h3>
|
1216
|
+
<div class="docstring">
|
1217
|
+
<div class="discussion">
|
1218
|
+
<p class="note private">
|
1219
|
+
<strong>This method is part of a private API.</strong>
|
1220
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
1221
|
+
</p>
|
1222
|
+
|
1223
|
+
<p>Output columns hash keyed by column index.</p>
|
1224
|
+
|
1225
|
+
|
1226
|
+
</div>
|
1227
|
+
</div>
|
1228
|
+
<div class="tags">
|
1229
|
+
|
1230
|
+
<p class="tag_title">Returns:</p>
|
1231
|
+
<ul class="return">
|
1232
|
+
|
1233
|
+
<li>
|
1149
1234
|
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1165
|
-
|
1166
|
-
</ul>
|
1167
|
-
|
1168
|
-
</div><table class="source_code">
|
1169
|
-
<tr>
|
1170
|
-
<td>
|
1171
|
-
<pre class="lines">
|
1235
|
+
|
1236
|
+
<span class='type'>(<tt>Hash{<span class='object_link'><a href="Index.html"
|
1237
|
+
title="CSVDecision2::Index (class)">Index</a></span>=>Entry}</tt>)</span>
|
1238
|
+
|
1239
|
+
|
1240
|
+
|
1241
|
+
</li>
|
1242
|
+
|
1243
|
+
</ul>
|
1244
|
+
|
1245
|
+
</div>
|
1246
|
+
<table class="source_code">
|
1247
|
+
<tr>
|
1248
|
+
<td>
|
1249
|
+
<pre class="lines">
|
1172
1250
|
|
1173
1251
|
|
1174
1252
|
156
|
1175
1253
|
157
|
1176
1254
|
158</pre>
|
1177
|
-
|
1178
|
-
|
1179
|
-
|
1255
|
+
</td>
|
1256
|
+
<td>
|
1257
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/columns.rb', line 156</span>
|
1180
1258
|
|
1181
1259
|
<span class='kw'>def</span> <span class='id identifier rubyid_outs'>outs</span>
|
1182
1260
|
<span class='ivar'>@dictionary</span><span class='op'>&.</span><span class='id identifier rubyid_outs'>outs</span>
|
1183
1261
|
<span class='kw'>end</span></pre>
|
1184
|
-
|
1185
|
-
|
1186
|
-
</table>
|
1187
|
-
</div>
|
1188
|
-
|
1189
|
-
<div class="method_details ">
|
1190
|
-
<h3 class="signature " id="paths-instance_method">
|
1191
|
-
|
1192
|
-
#<strong>paths</strong> ⇒ <tt>Hash{<span class='object_link'><a href="Index.html" title="CSVDecision::Index (class)">Index</a></span>=>Entry}</tt>
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
1197
|
-
|
1198
|
-
</h3><div class="docstring">
|
1199
|
-
<div class="discussion">
|
1200
|
-
<p class="note private">
|
1201
|
-
<strong>This method is part of a private API.</strong>
|
1202
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
1203
|
-
</p>
|
1204
|
-
|
1205
|
-
<p>path: columns hash keyed by column index.</p>
|
1262
|
+
</td>
|
1263
|
+
</tr>
|
1264
|
+
</table>
|
1265
|
+
</div>
|
1206
1266
|
|
1267
|
+
<div class="method_details ">
|
1268
|
+
<h3 class="signature " id="paths-instance_method">
|
1207
1269
|
|
1208
|
-
|
1209
|
-
</
|
1210
|
-
|
1211
|
-
|
1212
|
-
|
1213
|
-
|
1214
|
-
|
1215
|
-
|
1216
|
-
|
1217
|
-
|
1218
|
-
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
1222
|
-
|
1223
|
-
|
1224
|
-
|
1225
|
-
|
1226
|
-
</div
|
1227
|
-
|
1228
|
-
|
1229
|
-
|
1270
|
+
#<strong>paths</strong> ⇒ <tt>Hash{<span class='object_link'><a href="Index.html"
|
1271
|
+
title="CSVDecision2::Index (class)">Index</a></span>=>Entry}</tt>
|
1272
|
+
|
1273
|
+
|
1274
|
+
|
1275
|
+
|
1276
|
+
|
1277
|
+
</h3>
|
1278
|
+
<div class="docstring">
|
1279
|
+
<div class="discussion">
|
1280
|
+
<p class="note private">
|
1281
|
+
<strong>This method is part of a private API.</strong>
|
1282
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
1283
|
+
</p>
|
1284
|
+
|
1285
|
+
<p>path: columns hash keyed by column index.</p>
|
1286
|
+
|
1287
|
+
|
1288
|
+
</div>
|
1289
|
+
</div>
|
1290
|
+
<div class="tags">
|
1291
|
+
|
1292
|
+
<p class="tag_title">Returns:</p>
|
1293
|
+
<ul class="return">
|
1294
|
+
|
1295
|
+
<li>
|
1296
|
+
|
1297
|
+
|
1298
|
+
<span class='type'>(<tt>Hash{<span class='object_link'><a href="Index.html"
|
1299
|
+
title="CSVDecision2::Index (class)">Index</a></span>=>Entry}</tt>)</span>
|
1300
|
+
|
1301
|
+
|
1302
|
+
|
1303
|
+
</li>
|
1304
|
+
|
1305
|
+
</ul>
|
1306
|
+
|
1307
|
+
</div>
|
1308
|
+
<table class="source_code">
|
1309
|
+
<tr>
|
1310
|
+
<td>
|
1311
|
+
<pre class="lines">
|
1230
1312
|
|
1231
1313
|
|
1232
1314
|
168
|
1233
1315
|
169
|
1234
1316
|
170</pre>
|
1235
|
-
|
1236
|
-
|
1237
|
-
|
1317
|
+
</td>
|
1318
|
+
<td>
|
1319
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/columns.rb', line 168</span>
|
1238
1320
|
|
1239
1321
|
<span class='kw'>def</span> <span class='id identifier rubyid_paths'>paths</span>
|
1240
1322
|
<span class='ivar'>@dictionary</span><span class='period'>.</span><span class='id identifier rubyid_paths'>paths</span>
|
1241
1323
|
<span class='kw'>end</span></pre>
|
1242
|
-
|
1243
|
-
|
1244
|
-
</table>
|
1245
|
-
</div>
|
1246
|
-
|
1247
|
-
</div>
|
1324
|
+
</td>
|
1325
|
+
</tr>
|
1326
|
+
</table>
|
1327
|
+
</div>
|
1248
1328
|
|
1249
|
-
</div>
|
1329
|
+
</div>
|
1250
1330
|
|
1251
|
-
|
1252
|
-
Generated on Sun Feb 11 10:26:08 2018 by
|
1253
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1254
|
-
0.9.12 (ruby-2.4.0).
|
1255
|
-
</div>
|
1331
|
+
</div>
|
1256
1332
|
|
1333
|
+
<div id="footer">
|
1334
|
+
Generated on Sun Feb 11 10:26:08 2018 by
|
1335
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1336
|
+
0.9.12 (ruby-2.4.0).
|
1257
1337
|
</div>
|
1258
|
-
|
1259
|
-
</
|
1338
|
+
|
1339
|
+
</div>
|
1340
|
+
</body>
|
1341
|
+
|
1342
|
+
</html>
|