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::Scan::InputHashes
|
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::Scan::InputHashes";
|
20
|
+
relpath = '../../';
|
21
|
+
</script>
|
21
22
|
|
22
23
|
|
23
24
|
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
@@ -25,300 +26,315 @@
|
|
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 (I)</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="../Scan.html" title="CSVDecision2::Scan (class)">Scan</a></span></span>
|
45
|
+
»
|
46
|
+
<span class="title">InputHashes</span>
|
47
|
+
|
48
|
+
</div>
|
49
|
+
|
50
|
+
<div id="search">
|
51
|
+
|
52
|
+
<a class="full_list_link" id="class_list_link" href="../../class_list.html">
|
53
|
+
|
54
|
+
<svg width="24" height="24">
|
55
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
56
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
57
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
58
|
+
</svg>
|
59
|
+
</a>
|
60
|
+
|
61
|
+
</div>
|
62
|
+
<div class="clear"></div>
|
33
63
|
</div>
|
34
64
|
|
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
|
-
|
65
|
+
<div id="content">
|
66
|
+
<h1>Class: CSVDecision2::Scan::InputHashes
|
67
|
+
|
68
|
+
|
69
|
+
<span class="private note title">Private</span>
|
70
|
+
</h1>
|
71
|
+
<div class="box_info">
|
72
|
+
|
73
|
+
<dl>
|
74
|
+
<dt>Inherits:</dt>
|
75
|
+
<dd>
|
76
|
+
<span class="inheritName">Object</span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next">CSVDecision2::Scan::InputHashes</li>
|
82
|
+
|
83
|
+
</ul>
|
84
|
+
<a href="#" class="inheritanceTree">show all</a>
|
85
|
+
|
86
|
+
</dd>
|
87
|
+
</dl>
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
<dl>
|
100
|
+
<dt>Defined in:</dt>
|
101
|
+
<dd>lib/csv_decision2/scan.rb</dd>
|
102
|
+
</dl>
|
103
|
+
|
60
104
|
</div>
|
61
105
|
|
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::Scan::InputHashes</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/scan.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>Derive the parsed input hash, using a cache for speed.</p>
|
106
|
+
<h2>Overview</h2>
|
107
|
+
<div class="docstring">
|
108
|
+
<div class="discussion">
|
109
|
+
<p class="note private">
|
110
|
+
<strong>This class is part of a private API.</strong>
|
111
|
+
You should avoid using this class if possible, as it may be removed or be changed in the future.
|
112
|
+
</p>
|
110
113
|
|
114
|
+
<p>Derive the parsed input hash, using a cache for speed.</p>
|
111
115
|
|
112
|
-
</div>
|
113
|
-
</div>
|
114
|
-
<div class="tags">
|
115
|
-
|
116
116
|
|
117
|
-
</div>
|
117
|
+
</div>
|
118
|
+
</div>
|
119
|
+
<div class="tags">
|
120
|
+
|
121
|
+
|
122
|
+
</div>
|
123
|
+
|
118
124
|
|
119
125
|
|
120
126
|
|
121
127
|
|
122
128
|
|
123
129
|
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
130
|
+
<h2>
|
131
|
+
Instance Method Summary
|
132
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
133
|
+
</h2>
|
134
|
+
|
135
|
+
<ul class="summary">
|
129
136
|
|
130
|
-
<ul class="summary">
|
131
|
-
|
132
137
|
<li class="public ">
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
<
|
151
|
-
|
152
|
-
|
153
|
-
</
|
154
|
-
|
155
|
-
|
138
|
+
<span class="summary_signature">
|
139
|
+
|
140
|
+
<a href="#data-instance_method" title="#data (instance method)">#<strong>data</strong>(table:, path:,
|
141
|
+
input:) ⇒ Hash{Symbol=>Object} </a>
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
</span>
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
<span class="private note title">private</span>
|
153
|
+
|
154
|
+
|
155
|
+
<span class="summary_desc">
|
156
|
+
<div class='inline'>
|
157
|
+
<p>Parsed input hash.</p>
|
158
|
+
</div>
|
159
|
+
</span>
|
160
|
+
|
161
|
+
</li>
|
162
|
+
|
163
|
+
|
156
164
|
<li class="public ">
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
<span class="private note title">private</span>
|
173
|
-
|
174
|
-
|
175
|
-
<span class="summary_desc"><div class='inline'>
|
176
|
-
<p>A new instance of InputHashes.</p>
|
177
|
-
</div></span>
|
178
|
-
|
179
|
-
</li>
|
180
|
-
|
181
|
-
|
182
|
-
</ul>
|
183
|
-
|
184
|
-
|
185
|
-
<div id="constructor_details" class="method_details_list">
|
186
|
-
<h2>Constructor Details</h2>
|
187
|
-
|
188
|
-
<div class="method_details first">
|
189
|
-
<h3 class="signature first" id="initialize-instance_method">
|
190
|
-
|
191
|
-
#<strong>initialize</strong> ⇒ <tt><span class='object_link'><a href="" title="CSVDecision::Scan::InputHashes (class)">InputHashes</a></span></tt>
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
</h3><div class="docstring">
|
198
|
-
<div class="discussion">
|
199
|
-
<p class="note private">
|
200
|
-
<strong>This method is part of a private API.</strong>
|
201
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
202
|
-
</p>
|
203
|
-
|
204
|
-
<p>Returns a new instance of InputHashes</p>
|
165
|
+
<span class="summary_signature">
|
166
|
+
|
167
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>
|
168
|
+
⇒ InputHashes </a>
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
</span>
|
173
|
+
|
174
|
+
|
175
|
+
<span class="note title constructor">constructor</span>
|
205
176
|
|
206
177
|
|
207
|
-
</div>
|
208
|
-
</div>
|
209
|
-
<div class="tags">
|
210
|
-
|
211
178
|
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
179
|
+
|
180
|
+
|
181
|
+
<span class="private note title">private</span>
|
182
|
+
|
183
|
+
|
184
|
+
<span class="summary_desc">
|
185
|
+
<div class='inline'>
|
186
|
+
<p>A new instance of InputHashes.</p>
|
187
|
+
</div>
|
188
|
+
</span>
|
189
|
+
|
190
|
+
</li>
|
191
|
+
|
192
|
+
|
193
|
+
</ul>
|
194
|
+
|
195
|
+
|
196
|
+
<div id="constructor_details" class="method_details_list">
|
197
|
+
<h2>Constructor Details</h2>
|
198
|
+
|
199
|
+
<div class="method_details first">
|
200
|
+
<h3 class="signature first" id="initialize-instance_method">
|
201
|
+
|
202
|
+
#<strong>initialize</strong> ⇒ <tt><span class='object_link'><a href=""
|
203
|
+
title="CSVDecision2::Scan::InputHashes (class)">InputHashes</a></span></tt>
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
</h3>
|
210
|
+
<div class="docstring">
|
211
|
+
<div class="discussion">
|
212
|
+
<p class="note private">
|
213
|
+
<strong>This method is part of a private API.</strong>
|
214
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
215
|
+
</p>
|
216
|
+
|
217
|
+
<p>Returns a new instance of InputHashes</p>
|
218
|
+
|
219
|
+
|
220
|
+
</div>
|
221
|
+
</div>
|
222
|
+
<div class="tags">
|
223
|
+
|
224
|
+
|
225
|
+
</div>
|
226
|
+
<table class="source_code">
|
227
|
+
<tr>
|
228
|
+
<td>
|
229
|
+
<pre class="lines">
|
216
230
|
|
217
231
|
|
218
232
|
71
|
219
233
|
72
|
220
234
|
73</pre>
|
221
|
-
|
222
|
-
|
223
|
-
|
235
|
+
</td>
|
236
|
+
<td>
|
237
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/scan.rb', line 71</span>
|
224
238
|
|
225
239
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
226
240
|
<span class='ivar'>@input_hashes</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
227
241
|
<span class='kw'>end</span></pre>
|
228
|
-
|
229
|
-
|
230
|
-
</table>
|
231
|
-
</div>
|
232
|
-
|
233
|
-
</div>
|
242
|
+
</td>
|
243
|
+
</tr>
|
244
|
+
</table>
|
245
|
+
</div>
|
246
|
+
|
247
|
+
</div>
|
234
248
|
|
235
249
|
|
236
|
-
|
237
|
-
|
250
|
+
<div id="instance_method_details" class="method_details_list">
|
251
|
+
<h2>Instance Method Details</h2>
|
238
252
|
|
239
|
-
|
240
|
-
<div class="method_details first">
|
241
|
-
<h3 class="signature first" id="data-instance_method">
|
242
|
-
|
243
|
-
#<strong>data</strong>(table:, path:, input:) ⇒ <tt>Hash{Symbol=>Object}</tt>
|
244
|
-
|
245
253
|
|
246
|
-
|
254
|
+
<div class="method_details first">
|
255
|
+
<h3 class="signature first" id="data-instance_method">
|
247
256
|
|
248
|
-
|
249
|
-
</h3><div class="docstring">
|
250
|
-
<div class="discussion">
|
251
|
-
<p class="note private">
|
252
|
-
<strong>This method is part of a private API.</strong>
|
253
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
254
|
-
</p>
|
257
|
+
#<strong>data</strong>(table:, path:, input:) ⇒ <tt>Hash{Symbol=>Object}</tt>
|
255
258
|
|
256
|
-
<p>Returns Parsed input hash.</p>
|
257
259
|
|
258
260
|
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
<
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
<
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
<
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
261
|
+
|
262
|
+
|
263
|
+
</h3>
|
264
|
+
<div class="docstring">
|
265
|
+
<div class="discussion">
|
266
|
+
<p class="note private">
|
267
|
+
<strong>This method is part of a private API.</strong>
|
268
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
269
|
+
</p>
|
270
|
+
|
271
|
+
<p>Returns Parsed input hash.</p>
|
272
|
+
|
273
|
+
|
274
|
+
</div>
|
275
|
+
</div>
|
276
|
+
<div class="tags">
|
277
|
+
<p class="tag_title">Parameters:</p>
|
278
|
+
<ul class="param">
|
279
|
+
|
280
|
+
<li>
|
281
|
+
|
282
|
+
<span class='name'>path</span>
|
283
|
+
|
284
|
+
|
285
|
+
<span class='type'>(<tt>Array<Symbol] Path for the input hash.</tt>)</span>
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
—
|
290
|
+
<div class='inline'>
|
291
|
+
<p>ath [Array<Symbol] Path for the input hash.</p>
|
292
|
+
</div>
|
293
|
+
|
294
|
+
</li>
|
295
|
+
|
296
|
+
<li>
|
297
|
+
|
298
|
+
<span class='name'>input</span>
|
299
|
+
|
300
|
+
|
301
|
+
<span class='type'>(<tt>Hash{Symbol=>Object}</tt>)</span>
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
—
|
306
|
+
<div class='inline'>
|
307
|
+
<p>Input hash.</p>
|
308
|
+
</div>
|
309
|
+
|
310
|
+
</li>
|
311
|
+
|
312
|
+
</ul>
|
313
|
+
|
314
|
+
<p class="tag_title">Returns:</p>
|
315
|
+
<ul class="return">
|
316
|
+
|
317
|
+
<li>
|
318
|
+
|
319
|
+
|
320
|
+
<span class='type'>(<tt>Hash{Symbol=>Object}</tt>)</span>
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
—
|
325
|
+
<div class='inline'>
|
326
|
+
<p>Parsed input hash.</p>
|
327
|
+
</div>
|
328
|
+
|
329
|
+
</li>
|
330
|
+
|
331
|
+
</ul>
|
332
|
+
|
333
|
+
</div>
|
334
|
+
<table class="source_code">
|
335
|
+
<tr>
|
336
|
+
<td>
|
337
|
+
<pre class="lines">
|
322
338
|
|
323
339
|
|
324
340
|
78
|
@@ -333,9 +349,9 @@
|
|
333
349
|
87
|
334
350
|
88
|
335
351
|
89</pre>
|
336
|
-
|
337
|
-
|
338
|
-
|
352
|
+
</td>
|
353
|
+
<td>
|
354
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision2/scan.rb', line 78</span>
|
339
355
|
|
340
356
|
<span class='kw'>def</span> <span class='id identifier rubyid_data'>data</span><span class='lparen'>(</span><span class='label'>table:</span><span class='comma'>,</span> <span class='label'>path:</span><span class='comma'>,</span> <span class='label'>input:</span><span class='rparen'>)</span>
|
341
357
|
<span class='kw'>return</span> <span class='ivar'>@input_hashes</span><span class='lbracket'>[</span><span class='id identifier rubyid_path'>path</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='ivar'>@input_hashes</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
@@ -344,26 +360,27 @@
|
|
344
360
|
</span> <span class='id identifier rubyid_hash'>hash</span> <span class='op'>=</span> <span class='id identifier rubyid_path'>path</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span> <span class='op'>?</span> <span class='id identifier rubyid_input'>input</span> <span class='op'>:</span> <span class='id identifier rubyid_input'>input</span><span class='period'>.</span><span class='id identifier rubyid_dig'>dig</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
345
361
|
|
346
362
|
<span class='comment'># Parse and transform the hash supplied as input
|
347
|
-
</span> <span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='id identifier rubyid_hash'>hash</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span> <span class='op'>?</span> <span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='op'>:</span> <span class='const'><span class='object_link'><a href="../Input.html" title="
|
363
|
+
</span> <span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='id identifier rubyid_hash'>hash</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span> <span class='op'>?</span> <span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='op'>:</span> <span class='const'><span class='object_link'><a href="../Input.html" title="CSVDecision2::Input (module)">Input</a></span></span><span class='period'>.</span><span class='id identifier rubyid_parse_data'><span class='object_link'><a href="../Input.html#parse_data-class_method" title="CSVDecision2::Input.parse_data (method)">parse_data</a></span></span><span class='lparen'>(</span><span class='label'>table:</span> <span class='id identifier rubyid_table'>table</span><span class='comma'>,</span> <span class='label'>input:</span> <span class='id identifier rubyid_hash'>hash</span><span class='rparen'>)</span>
|
348
364
|
|
349
365
|
<span class='comment'># Cache the parsed input hash data for this path
|
350
366
|
</span> <span class='ivar'>@input_hashes</span><span class='lbracket'>[</span><span class='id identifier rubyid_path'>path</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_data'>data</span>
|
351
367
|
<span class='kw'>end</span></pre>
|
352
|
-
|
353
|
-
|
354
|
-
</table>
|
355
|
-
</div>
|
356
|
-
|
357
|
-
</div>
|
368
|
+
</td>
|
369
|
+
</tr>
|
370
|
+
</table>
|
371
|
+
</div>
|
358
372
|
|
359
|
-
</div>
|
373
|
+
</div>
|
360
374
|
|
361
|
-
|
362
|
-
Generated on Sun Feb 11 10:26:07 2018 by
|
363
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
364
|
-
0.9.12 (ruby-2.4.0).
|
365
|
-
</div>
|
375
|
+
</div>
|
366
376
|
|
377
|
+
<div id="footer">
|
378
|
+
Generated on Sun Feb 11 10:26:07 2018 by
|
379
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
380
|
+
0.9.12 (ruby-2.4.0).
|
367
381
|
</div>
|
368
|
-
|
369
|
-
</
|
382
|
+
|
383
|
+
</div>
|
384
|
+
</body>
|
385
|
+
|
386
|
+
</html>
|