csv_decision 0.0.8 → 0.0.9
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/.rubocop.yml +3 -0
- data/CHANGELOG.md +4 -0
- data/README.md +62 -28
- data/csv_decision.gemspec +1 -1
- data/doc/CSVDecision/CellValidationError.html +2 -2
- data/doc/CSVDecision/Columns/Dictionary.html +114 -20
- data/doc/CSVDecision/Columns/Entry.html +2 -2
- data/doc/CSVDecision/Columns.html +109 -27
- data/doc/CSVDecision/Data.html +2 -2
- data/doc/CSVDecision/Decide.html +2 -2
- data/doc/CSVDecision/Decision.html +21 -21
- data/doc/CSVDecision/Dictionary/Entry.html +508 -0
- data/doc/CSVDecision/Dictionary.html +265 -0
- data/doc/CSVDecision/Error.html +2 -2
- data/doc/CSVDecision/FileError.html +3 -3
- data/doc/CSVDecision/Header.html +37 -136
- data/doc/CSVDecision/Input.html +2 -2
- data/doc/CSVDecision/Load.html +2 -2
- data/doc/CSVDecision/Matchers/Constant.html +2 -2
- data/doc/CSVDecision/Matchers/Function.html +2 -2
- data/doc/CSVDecision/Matchers/Guard.html +92 -25
- data/doc/CSVDecision/Matchers/Matcher.html +14 -18
- data/doc/CSVDecision/Matchers/Numeric.html +2 -2
- data/doc/CSVDecision/Matchers/Pattern.html +2 -2
- data/doc/CSVDecision/Matchers/Range.html +2 -2
- data/doc/CSVDecision/Matchers/Symbol.html +2 -2
- data/doc/CSVDecision/Matchers.html +5 -5
- data/doc/CSVDecision/Options.html +2 -2
- data/doc/CSVDecision/Parse.html +6 -4
- data/doc/CSVDecision/Result.html +944 -0
- data/doc/CSVDecision/ScanRow.html +70 -80
- data/doc/CSVDecision/Table.html +134 -54
- data/doc/CSVDecision.html +5 -5
- data/doc/_index.html +18 -4
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +132 -62
- data/doc/index.html +132 -62
- data/doc/method_list.html +156 -60
- data/doc/top-level-namespace.html +2 -2
- data/lib/csv_decision/columns.rb +1 -8
- data/lib/csv_decision/decision.rb +45 -96
- data/lib/csv_decision/dictionary.rb +149 -0
- data/lib/csv_decision/header.rb +6 -133
- data/lib/csv_decision/matchers.rb +1 -2
- data/lib/csv_decision/parse.rb +18 -7
- data/lib/csv_decision/result.rb +180 -0
- data/lib/csv_decision/scan_row.rb +13 -7
- data/lib/csv_decision/table.rb +6 -5
- data/lib/csv_decision.rb +3 -1
- data/spec/csv_decision/columns_spec.rb +25 -4
- data/spec/csv_decision/examples_spec.rb +25 -0
- data/spec/csv_decision/matchers/guard_spec.rb +26 -9
- data/spec/csv_decision/table_spec.rb +48 -2
- metadata +7 -2
@@ -0,0 +1,265 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Module: CSVDecision::Dictionary
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.12
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
pathId = "CSVDecision::Dictionary";
|
19
|
+
relpath = '../';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
24
|
+
|
25
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
38
|
+
|
39
|
+
<a href="../_index.html">Index (D)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../CSVDecision.html" title="CSVDecision (module)">CSVDecision</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">Dictionary</span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="search">
|
47
|
+
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
49
|
+
href="../class_list.html">
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="content"><h1>Module: CSVDecision::Dictionary
|
63
|
+
|
64
|
+
|
65
|
+
<span class="private note title">Private</span>
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<dl>
|
80
|
+
<dt>Defined in:</dt>
|
81
|
+
<dd>lib/csv_decision/dictionary.rb</dd>
|
82
|
+
</dl>
|
83
|
+
|
84
|
+
</div>
|
85
|
+
|
86
|
+
<h2>Overview</h2><div class="docstring">
|
87
|
+
<div class="discussion">
|
88
|
+
<p class="note private">
|
89
|
+
<strong>This module is part of a private API.</strong>
|
90
|
+
You should avoid using this module if possible, as it may be removed or be changed in the future.
|
91
|
+
</p>
|
92
|
+
|
93
|
+
<p>Parse the CSV file's header row. These methods are only required at
|
94
|
+
table load time.</p>
|
95
|
+
|
96
|
+
|
97
|
+
</div>
|
98
|
+
</div>
|
99
|
+
<div class="tags">
|
100
|
+
|
101
|
+
|
102
|
+
</div><h2>Defined Under Namespace</h2>
|
103
|
+
<p class="children">
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Dictionary/Entry.html" title="CSVDecision::Dictionary::Entry (class)">Entry</a></span>
|
109
|
+
|
110
|
+
|
111
|
+
</p>
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
<h2>
|
121
|
+
Class Method Summary
|
122
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
123
|
+
</h2>
|
124
|
+
|
125
|
+
<ul class="summary">
|
126
|
+
|
127
|
+
<li class="public ">
|
128
|
+
<span class="summary_signature">
|
129
|
+
|
130
|
+
<a href="#build-class_method" title="build (class method)">.<strong>build</strong>(header:, dictionary:) ⇒ Hash<Hash> </a>
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
</span>
|
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>Classify and build a dictionary of all input and output columns by parsing
|
146
|
+
the header row.</p>
|
147
|
+
</div></span>
|
148
|
+
|
149
|
+
</li>
|
150
|
+
|
151
|
+
|
152
|
+
</ul>
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
<div id="class_method_details" class="method_details_list">
|
158
|
+
<h2>Class Method Details</h2>
|
159
|
+
|
160
|
+
|
161
|
+
<div class="method_details first">
|
162
|
+
<h3 class="signature first" id="build-class_method">
|
163
|
+
|
164
|
+
.<strong>build</strong>(header:, dictionary:) ⇒ <tt>Hash<Hash></tt>
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
</h3><div class="docstring">
|
171
|
+
<div class="discussion">
|
172
|
+
<p class="note private">
|
173
|
+
<strong>This method is part of a private API.</strong>
|
174
|
+
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
175
|
+
</p>
|
176
|
+
|
177
|
+
<p>Classify and build a dictionary of all input and output columns by parsing
|
178
|
+
the header row.</p>
|
179
|
+
|
180
|
+
|
181
|
+
</div>
|
182
|
+
</div>
|
183
|
+
<div class="tags">
|
184
|
+
<p class="tag_title">Parameters:</p>
|
185
|
+
<ul class="param">
|
186
|
+
|
187
|
+
<li>
|
188
|
+
|
189
|
+
<span class='name'>header</span>
|
190
|
+
|
191
|
+
|
192
|
+
<span class='type'>(<tt>Array<String></tt>)</span>
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
—
|
197
|
+
<div class='inline'>
|
198
|
+
<p>The header row after removing any empty columns.</p>
|
199
|
+
</div>
|
200
|
+
|
201
|
+
</li>
|
202
|
+
|
203
|
+
</ul>
|
204
|
+
|
205
|
+
<p class="tag_title">Returns:</p>
|
206
|
+
<ul class="return">
|
207
|
+
|
208
|
+
<li>
|
209
|
+
|
210
|
+
|
211
|
+
<span class='type'>(<tt>Hash<Hash></tt>)</span>
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
—
|
216
|
+
<div class='inline'>
|
217
|
+
<p>Column dictionary is a hash of hashes.</p>
|
218
|
+
</div>
|
219
|
+
|
220
|
+
</li>
|
221
|
+
|
222
|
+
</ul>
|
223
|
+
|
224
|
+
</div><table class="source_code">
|
225
|
+
<tr>
|
226
|
+
<td>
|
227
|
+
<pre class="lines">
|
228
|
+
|
229
|
+
|
230
|
+
40
|
231
|
+
41
|
232
|
+
42
|
233
|
+
43
|
234
|
+
44
|
235
|
+
45
|
236
|
+
46</pre>
|
237
|
+
</td>
|
238
|
+
<td>
|
239
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision/dictionary.rb', line 40</span>
|
240
|
+
|
241
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_build'>build</span><span class='lparen'>(</span><span class='label'>header:</span><span class='comma'>,</span> <span class='label'>dictionary:</span><span class='rparen'>)</span>
|
242
|
+
<span class='id identifier rubyid_header'>header</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>
|
243
|
+
<span class='id identifier rubyid_dictionary'>dictionary</span> <span class='op'>=</span> <span class='id identifier rubyid_parse_cell'>parse_cell</span><span class='lparen'>(</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='comma'>,</span> <span class='label'>dictionary:</span> <span class='id identifier rubyid_dictionary'>dictionary</span><span class='rparen'>)</span>
|
244
|
+
<span class='kw'>end</span>
|
245
|
+
|
246
|
+
<span class='id identifier rubyid_validate'>validate</span><span class='lparen'>(</span><span class='id identifier rubyid_dictionary'>dictionary</span><span class='rparen'>)</span>
|
247
|
+
<span class='kw'>end</span></pre>
|
248
|
+
</td>
|
249
|
+
</tr>
|
250
|
+
</table>
|
251
|
+
</div>
|
252
|
+
|
253
|
+
</div>
|
254
|
+
|
255
|
+
</div>
|
256
|
+
|
257
|
+
<div id="footer">
|
258
|
+
Generated on Fri Jan 5 21:44:00 2018 by
|
259
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
260
|
+
0.9.12 (ruby-2.4.0).
|
261
|
+
</div>
|
262
|
+
|
263
|
+
</div>
|
264
|
+
</body>
|
265
|
+
</html>
|
data/doc/CSVDecision/Error.html
CHANGED
@@ -129,9 +129,9 @@
|
|
129
129
|
</div>
|
130
130
|
|
131
131
|
<div id="footer">
|
132
|
-
Generated on
|
132
|
+
Generated on Fri Jan 5 21:44:00 2018 by
|
133
133
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
134
|
-
0.9.12 (ruby-2.
|
134
|
+
0.9.12 (ruby-2.4.0).
|
135
135
|
</div>
|
136
136
|
|
137
137
|
</div>
|
@@ -106,7 +106,7 @@
|
|
106
106
|
<h2>Overview</h2><div class="docstring">
|
107
107
|
<div class="discussion">
|
108
108
|
|
109
|
-
<p>Table parsing error message enhanced to include the file being processed
|
109
|
+
<p>Table parsing error message enhanced to include the file being processed.</p>
|
110
110
|
|
111
111
|
|
112
112
|
</div>
|
@@ -133,9 +133,9 @@
|
|
133
133
|
</div>
|
134
134
|
|
135
135
|
<div id="footer">
|
136
|
-
Generated on
|
136
|
+
Generated on Fri Jan 5 21:44:00 2018 by
|
137
137
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
138
|
-
0.9.12 (ruby-2.
|
138
|
+
0.9.12 (ruby-2.4.0).
|
139
139
|
</div>
|
140
140
|
|
141
141
|
</div>
|
data/doc/CSVDecision/Header.html
CHANGED
@@ -122,7 +122,7 @@ table load time.</p>
|
|
122
122
|
</div>
|
123
123
|
</dt>
|
124
124
|
<dd><pre class="code"><span class='tstring'><span class='regexp_beg'>%r{</span><span class='tstring_content'>
|
125
|
-
\A(?<type>in|out|in/text|out/text|guard)
|
125
|
+
\A(?<type>in|out|in/text|out/text|guard|if)
|
126
126
|
\s*:\s*(?<name>\S?.*)\z
|
127
127
|
</span><span class='regexp_end'>}xi</span></span></pre></dd>
|
128
128
|
|
@@ -147,6 +147,26 @@ method name - note any spaces will have been replaced with underscores.</p>
|
|
147
147
|
</dt>
|
148
148
|
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\\w[\\w:/!?]*</span><span class='tstring_end'>"</span></span></pre></dd>
|
149
149
|
|
150
|
+
<dt id="COLUMN_NAME_RE-constant" class="">COLUMN_NAME_RE =
|
151
|
+
<div class="docstring">
|
152
|
+
<div class="discussion">
|
153
|
+
<p class="note private">
|
154
|
+
<strong>This constant is part of a private API.</strong>
|
155
|
+
You should avoid using this constant if possible, as it may be removed or be changed in the future.
|
156
|
+
</p>
|
157
|
+
|
158
|
+
<p>Regular expression for matching a column name.</p>
|
159
|
+
|
160
|
+
|
161
|
+
</div>
|
162
|
+
</div>
|
163
|
+
<div class="tags">
|
164
|
+
|
165
|
+
|
166
|
+
</div>
|
167
|
+
</dt>
|
168
|
+
<dd><pre class="code"><span class='const'><span class='object_link'><a href="Matchers.html" title="CSVDecision::Matchers (class)">Matchers</a></span></span><span class='period'>.</span><span class='id identifier rubyid_regexp'><span class='object_link'><a href="Matchers.html#regexp-class_method" title="CSVDecision::Matchers.regexp (method)">regexp</a></span></span><span class='lparen'>(</span><span class='const'>Header</span><span class='op'>::</span><span class='const'><span class='object_link'><a href="#COLUMN_NAME-constant" title="CSVDecision::Header::COLUMN_NAME (constant)">COLUMN_NAME</a></span></span><span class='rparen'>)</span></pre></dd>
|
169
|
+
|
150
170
|
</dl>
|
151
171
|
|
152
172
|
|
@@ -166,30 +186,6 @@ method name - note any spaces will have been replaced with underscores.</p>
|
|
166
186
|
<li class="public ">
|
167
187
|
<span class="summary_signature">
|
168
188
|
|
169
|
-
<a href="#dictionary-class_method" title="dictionary (class method)">.<strong>dictionary</strong>(row:) ⇒ Hash<Hash> </a>
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
</span>
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
<span class="private note title">private</span>
|
181
|
-
|
182
|
-
|
183
|
-
<span class="summary_desc"><div class='inline'>
|
184
|
-
<p>Classify and build a dictionary of all input and output columns.</p>
|
185
|
-
</div></span>
|
186
|
-
|
187
|
-
</li>
|
188
|
-
|
189
|
-
|
190
|
-
<li class="public ">
|
191
|
-
<span class="summary_signature">
|
192
|
-
|
193
189
|
<a href="#row%3F-class_method" title="row? (class method)">.<strong>row?</strong>(row) ⇒ Boolean </a>
|
194
190
|
|
195
191
|
|
@@ -245,102 +241,7 @@ method name - note any spaces will have been replaced with underscores.</p>
|
|
245
241
|
|
246
242
|
|
247
243
|
<div class="method_details first">
|
248
|
-
<h3 class="signature first" id="
|
249
|
-
|
250
|
-
.<strong>dictionary</strong>(row:) ⇒ <tt>Hash<Hash></tt>
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
</h3><div class="docstring">
|
257
|
-
<div class="discussion">
|
258
|
-
<p class="note private">
|
259
|
-
<strong>This method is part of a private API.</strong>
|
260
|
-
You should avoid using this method if possible, as it may be removed or be changed in the future.
|
261
|
-
</p>
|
262
|
-
|
263
|
-
<p>Classify and build a dictionary of all input and output columns.</p>
|
264
|
-
|
265
|
-
|
266
|
-
</div>
|
267
|
-
</div>
|
268
|
-
<div class="tags">
|
269
|
-
<p class="tag_title">Parameters:</p>
|
270
|
-
<ul class="param">
|
271
|
-
|
272
|
-
<li>
|
273
|
-
|
274
|
-
<span class='name'>row</span>
|
275
|
-
|
276
|
-
|
277
|
-
<span class='type'>(<tt>Array<String></tt>)</span>
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
—
|
282
|
-
<div class='inline'>
|
283
|
-
<p>The header row after removing any empty columns.</p>
|
284
|
-
</div>
|
285
|
-
|
286
|
-
</li>
|
287
|
-
|
288
|
-
</ul>
|
289
|
-
|
290
|
-
<p class="tag_title">Returns:</p>
|
291
|
-
<ul class="return">
|
292
|
-
|
293
|
-
<li>
|
294
|
-
|
295
|
-
|
296
|
-
<span class='type'>(<tt>Hash<Hash></tt>)</span>
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
—
|
301
|
-
<div class='inline'>
|
302
|
-
<p>Column dictionary is a hash of hashes.</p>
|
303
|
-
</div>
|
304
|
-
|
305
|
-
</li>
|
306
|
-
|
307
|
-
</ul>
|
308
|
-
|
309
|
-
</div><table class="source_code">
|
310
|
-
<tr>
|
311
|
-
<td>
|
312
|
-
<pre class="lines">
|
313
|
-
|
314
|
-
|
315
|
-
63
|
316
|
-
64
|
317
|
-
65
|
318
|
-
66
|
319
|
-
67
|
320
|
-
68
|
321
|
-
69
|
322
|
-
70
|
323
|
-
71</pre>
|
324
|
-
</td>
|
325
|
-
<td>
|
326
|
-
<pre class="code"><span class="info file"># File 'lib/csv_decision/header.rb', line 63</span>
|
327
|
-
|
328
|
-
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_dictionary'>dictionary</span><span class='lparen'>(</span><span class='label'>row:</span><span class='rparen'>)</span>
|
329
|
-
<span class='id identifier rubyid_dictionary'>dictionary</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Columns.html" title="CSVDecision::Columns (class)">Columns</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Columns/Dictionary.html" title="CSVDecision::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="CSVDecision::Columns::Dictionary#initialize (method)">new</a></span></span>
|
330
|
-
|
331
|
-
<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>
|
332
|
-
<span class='id identifier rubyid_dictionary'>dictionary</span> <span class='op'>=</span> <span class='id identifier rubyid_parse_cell'>parse_cell</span><span class='lparen'>(</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='comma'>,</span> <span class='label'>dictionary:</span> <span class='id identifier rubyid_dictionary'>dictionary</span><span class='rparen'>)</span>
|
333
|
-
<span class='kw'>end</span>
|
334
|
-
|
335
|
-
<span class='id identifier rubyid_validate'>validate</span><span class='lparen'>(</span><span class='label'>dictionary:</span> <span class='id identifier rubyid_dictionary'>dictionary</span><span class='rparen'>)</span>
|
336
|
-
<span class='kw'>end</span></pre>
|
337
|
-
</td>
|
338
|
-
</tr>
|
339
|
-
</table>
|
340
|
-
</div>
|
341
|
-
|
342
|
-
<div class="method_details ">
|
343
|
-
<h3 class="signature " id="row?-class_method">
|
244
|
+
<h3 class="signature first" id="row?-class_method">
|
344
245
|
|
345
246
|
.<strong>row?</strong>(row) ⇒ <tt>Boolean</tt>
|
346
247
|
|
@@ -407,15 +308,15 @@ method name - note any spaces will have been replaced with underscores.</p>
|
|
407
308
|
<pre class="lines">
|
408
309
|
|
409
310
|
|
410
|
-
|
411
|
-
|
412
|
-
|
311
|
+
35
|
312
|
+
36
|
313
|
+
37</pre>
|
413
314
|
</td>
|
414
315
|
<td>
|
415
|
-
<pre class="code"><span class="info file"># File 'lib/csv_decision/header.rb', line
|
316
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision/header.rb', line 35</span>
|
416
317
|
|
417
318
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_row?'>row?</span><span class='lparen'>(</span><span class='id identifier rubyid_row'>row</span><span class='rparen'>)</span>
|
418
|
-
<span class='id identifier rubyid_row'>row</span><span class='period'>.</span><span class='id identifier
|
319
|
+
<span class='id identifier rubyid_row'>row</span><span class='period'>.</span><span class='id identifier rubyid_any?'>any?</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_cell'>cell</span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="#COLUMN_TYPE-constant" title="CSVDecision::Header::COLUMN_TYPE (constant)">COLUMN_TYPE</a></span></span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
419
320
|
<span class='kw'>end</span></pre>
|
420
321
|
</td>
|
421
322
|
</tr>
|
@@ -490,16 +391,16 @@ method name - note any spaces will have been replaced with underscores.</p>
|
|
490
391
|
<pre class="lines">
|
491
392
|
|
492
393
|
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
394
|
+
44
|
395
|
+
45
|
396
|
+
46
|
397
|
+
47
|
398
|
+
48
|
399
|
+
49
|
400
|
+
50</pre>
|
500
401
|
</td>
|
501
402
|
<td>
|
502
|
-
<pre class="code"><span class="info file"># File 'lib/csv_decision/header.rb', line
|
403
|
+
<pre class="code"><span class="info file"># File 'lib/csv_decision/header.rb', line 44</span>
|
503
404
|
|
504
405
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_strip_empty_columns'>strip_empty_columns</span><span class='lparen'>(</span><span class='label'>rows:</span><span class='rparen'>)</span>
|
505
406
|
<span class='id identifier rubyid_empty_cols'>empty_cols</span> <span class='op'>=</span> <span class='id identifier rubyid_empty_columns?'>empty_columns?</span><span class='lparen'>(</span><span class='label'>row:</span> <span class='id identifier rubyid_rows'>rows</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='rparen'>)</span>
|
@@ -518,9 +419,9 @@ method name - note any spaces will have been replaced with underscores.</p>
|
|
518
419
|
</div>
|
519
420
|
|
520
421
|
<div id="footer">
|
521
|
-
Generated on
|
422
|
+
Generated on Fri Jan 5 21:44:00 2018 by
|
522
423
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
523
|
-
0.9.12 (ruby-2.
|
424
|
+
0.9.12 (ruby-2.4.0).
|
524
425
|
</div>
|
525
426
|
|
526
427
|
</div>
|
data/doc/CSVDecision/Input.html
CHANGED
@@ -303,9 +303,9 @@ column. Defaults to nil if the key is missing in the input hash.</p>
|
|
303
303
|
</div>
|
304
304
|
|
305
305
|
<div id="footer">
|
306
|
-
Generated on
|
306
|
+
Generated on Fri Jan 5 21:44:00 2018 by
|
307
307
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
308
|
-
0.9.12 (ruby-2.
|
308
|
+
0.9.12 (ruby-2.4.0).
|
309
309
|
</div>
|
310
310
|
|
311
311
|
</div>
|
data/doc/CSVDecision/Load.html
CHANGED
@@ -281,9 +281,9 @@
|
|
281
281
|
</div>
|
282
282
|
|
283
283
|
<div id="footer">
|
284
|
-
Generated on
|
284
|
+
Generated on Fri Jan 5 21:44:00 2018 by
|
285
285
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
286
|
-
0.9.12 (ruby-2.
|
286
|
+
0.9.12 (ruby-2.4.0).
|
287
287
|
</div>
|
288
288
|
|
289
289
|
</div>
|
@@ -499,9 +499,9 @@ some type of function.</p>
|
|
499
499
|
</div>
|
500
500
|
|
501
501
|
<div id="footer">
|
502
|
-
Generated on
|
502
|
+
Generated on Fri Jan 5 21:44:01 2018 by
|
503
503
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
504
|
-
0.9.12 (ruby-2.
|
504
|
+
0.9.12 (ruby-2.4.0).
|
505
505
|
</div>
|
506
506
|
|
507
507
|
</div>
|
@@ -501,9 +501,9 @@ some type of function.</p>
|
|
501
501
|
</div>
|
502
502
|
|
503
503
|
<div id="footer">
|
504
|
-
Generated on
|
504
|
+
Generated on Fri Jan 5 21:44:01 2018 by
|
505
505
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
506
|
-
0.9.12 (ruby-2.
|
506
|
+
0.9.12 (ruby-2.4.0).
|
507
507
|
</div>
|
508
508
|
|
509
509
|
</div>
|