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.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/Dockerfile +1 -1
  3. data/README.md +16 -16
  4. data/benchmarks/rufus_decision.rb +5 -7
  5. data/csv_decision2.gemspec +2 -2
  6. data/doc/CSVDecision/CellValidationError.html +117 -110
  7. data/doc/CSVDecision/Columns/Default.html +537 -508
  8. data/doc/CSVDecision/Columns/Dictionary.html +729 -686
  9. data/doc/CSVDecision/Columns/Entry.html +457 -433
  10. data/doc/CSVDecision/Columns.html +1134 -1051
  11. data/doc/CSVDecision/Constant.html +205 -191
  12. data/doc/CSVDecision/Data.html +423 -398
  13. data/doc/CSVDecision/Decide.html +236 -225
  14. data/doc/CSVDecision/Decision.html +872 -825
  15. data/doc/CSVDecision/Defaults.html +243 -230
  16. data/doc/CSVDecision/Dictionary/Entry.html +1026 -964
  17. data/doc/CSVDecision/Dictionary.html +377 -355
  18. data/doc/CSVDecision/Error.html +116 -105
  19. data/doc/CSVDecision/FileError.html +117 -110
  20. data/doc/CSVDecision/Function.html +181 -168
  21. data/doc/CSVDecision/Guard.html +200 -185
  22. data/doc/CSVDecision/Header.html +557 -523
  23. data/doc/CSVDecision/Index.html +652 -617
  24. data/doc/CSVDecision/Input.html +329 -312
  25. data/doc/CSVDecision/Load.html +232 -220
  26. data/doc/CSVDecision/Matchers/Constant.html +432 -399
  27. data/doc/CSVDecision/Matchers/Function.html +451 -415
  28. data/doc/CSVDecision/Matchers/Guard.html +459 -424
  29. data/doc/CSVDecision/Matchers/Matcher.html +470 -426
  30. data/doc/CSVDecision/Matchers/Numeric.html +375 -346
  31. data/doc/CSVDecision/Matchers/Pattern.html +429 -396
  32. data/doc/CSVDecision/Matchers/Proc.html +617 -575
  33. data/doc/CSVDecision/Matchers/Range.html +331 -302
  34. data/doc/CSVDecision/Matchers/Symbol.html +386 -353
  35. data/doc/CSVDecision/Matchers.html +1509 -1393
  36. data/doc/CSVDecision/Numeric.html +201 -188
  37. data/doc/CSVDecision/Options.html +376 -357
  38. data/doc/CSVDecision/Parse.html +217 -204
  39. data/doc/CSVDecision/Paths.html +664 -629
  40. data/doc/CSVDecision/Result.html +1076 -1005
  41. data/doc/CSVDecision/Scan/InputHashes.html +305 -288
  42. data/doc/CSVDecision/Scan.html +262 -249
  43. data/doc/CSVDecision/ScanRow.html +749 -705
  44. data/doc/CSVDecision/Symbol.html +204 -191
  45. data/doc/CSVDecision/Table.html +1391 -1305
  46. data/doc/CSVDecision/TableValidationError.html +117 -110
  47. data/doc/CSVDecision/Validate.html +353 -337
  48. data/doc/CSVDecision.html +623 -552
  49. data/doc/_index.html +488 -448
  50. data/doc/class_list.html +250 -45
  51. data/doc/file.README.html +304 -278
  52. data/doc/index.html +304 -278
  53. data/doc/method_list.html +1159 -1017
  54. data/doc/top-level-namespace.html +79 -75
  55. data/lib/{csv_decision → csv_decision2}/columns.rb +7 -7
  56. data/lib/{csv_decision → csv_decision2}/data.rb +1 -1
  57. data/lib/{csv_decision → csv_decision2}/decision.rb +5 -5
  58. data/lib/{csv_decision → csv_decision2}/defaults.rb +2 -2
  59. data/lib/{csv_decision → csv_decision2}/dictionary.rb +2 -2
  60. data/lib/{csv_decision → csv_decision2}/header.rb +5 -5
  61. data/lib/{csv_decision → csv_decision2}/index.rb +5 -5
  62. data/lib/{csv_decision → csv_decision2}/input.rb +3 -3
  63. data/lib/{csv_decision → csv_decision2}/load.rb +6 -6
  64. data/lib/{csv_decision → csv_decision2}/matchers/constant.rb +2 -2
  65. data/lib/{csv_decision → csv_decision2}/matchers/function.rb +2 -2
  66. data/lib/{csv_decision → csv_decision2}/matchers/guard.rb +2 -2
  67. data/lib/{csv_decision → csv_decision2}/matchers/numeric.rb +2 -2
  68. data/lib/{csv_decision → csv_decision2}/matchers/pattern.rb +2 -2
  69. data/lib/{csv_decision → csv_decision2}/matchers/range.rb +2 -2
  70. data/lib/{csv_decision → csv_decision2}/matchers/symbol.rb +2 -2
  71. data/lib/{csv_decision → csv_decision2}/matchers.rb +5 -5
  72. data/lib/{csv_decision → csv_decision2}/options.rb +3 -3
  73. data/lib/{csv_decision → csv_decision2}/parse.rb +14 -14
  74. data/lib/{csv_decision → csv_decision2}/paths.rb +5 -5
  75. data/lib/{csv_decision → csv_decision2}/result.rb +2 -2
  76. data/lib/{csv_decision → csv_decision2}/scan.rb +3 -3
  77. data/lib/{csv_decision → csv_decision2}/scan_row.rb +2 -2
  78. data/lib/{csv_decision → csv_decision2}/table.rb +8 -8
  79. data/lib/{csv_decision → csv_decision2}/validate.rb +2 -2
  80. data/lib/csv_decision2.rb +45 -0
  81. data/spec/{csv_decision → csv_decision2}/columns_spec.rb +44 -44
  82. data/spec/{csv_decision → csv_decision2}/constant_spec.rb +4 -4
  83. data/spec/{csv_decision → csv_decision2}/data_spec.rb +11 -11
  84. data/spec/{csv_decision → csv_decision2}/decision_spec.rb +6 -6
  85. data/spec/{csv_decision → csv_decision2}/examples_spec.rb +14 -14
  86. data/spec/{csv_decision → csv_decision2}/index_spec.rb +8 -8
  87. data/spec/{csv_decision → csv_decision2}/input_spec.rb +9 -9
  88. data/spec/{csv_decision → csv_decision2}/load_spec.rb +8 -8
  89. data/spec/{csv_decision → csv_decision2}/matchers/function_spec.rb +7 -7
  90. data/spec/{csv_decision → csv_decision2}/matchers/guard_spec.rb +14 -14
  91. data/spec/{csv_decision → csv_decision2}/matchers/numeric_spec.rb +5 -5
  92. data/spec/{csv_decision → csv_decision2}/matchers/pattern_spec.rb +6 -6
  93. data/spec/{csv_decision → csv_decision2}/matchers/range_spec.rb +5 -5
  94. data/spec/{csv_decision → csv_decision2}/matchers/symbol_spec.rb +6 -6
  95. data/spec/{csv_decision → csv_decision2}/options_spec.rb +18 -18
  96. data/spec/csv_decision2/parse_spec.rb +44 -0
  97. data/spec/{csv_decision → csv_decision2}/table_spec.rb +17 -17
  98. data/spec/csv_decision2_spec.rb +7 -0
  99. metadata +64 -64
  100. data/lib/csv_decision.rb +0 -45
  101. data/spec/csv_decision/parse_spec.rb +0 -44
  102. data/spec/csv_decision_spec.rb +0 -7
@@ -1,23 +1,24 @@
1
1
  <!DOCTYPE html>
2
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::Validate
8
-
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <title>
8
+ Module: CSVDecision2::Validate
9
+
9
10
  &mdash; 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
- pathId = "CSVDecision::Validate";
19
- relpath = '../';
20
- </script>
18
+ <script type="text/javascript" charset="utf-8">
19
+ pathId = "CSVDecision2::Validate";
20
+ relpath = '../';
21
+ </script>
21
22
 
22
23
 
23
24
  <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
@@ -25,234 +26,245 @@
25
26
  <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26
27
 
27
28
 
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="../class_list.html?1"></iframe>
32
- <div id="resizer"></div>
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 (V)</a> &raquo;
42
+ <span class='title'><span class='object_link'><a href="../CSVDecision2.html"
43
+ title="CSVDecision (module)">CSVDecision</a></span></span>
44
+ &raquo;
45
+ <span class="title">Validate</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="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="../_index.html">Index (V)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../CSVDecision.html" title="CSVDecision (module)">CSVDecision</a></span></span>
41
- &raquo;
42
- <span class="title">Validate</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>
64
+ <div id="content">
65
+ <h1>Module: CSVDecision2::Validate
66
+
67
+
68
+ <span class="private note title">Private</span>
69
+ </h1>
70
+ <div class="box_info">
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+ <dl>
83
+ <dt>Defined in:</dt>
84
+ <dd>lib/csv_decision2/validate.rb</dd>
85
+ </dl>
86
+
60
87
  </div>
61
88
 
62
- <div id="content"><h1>Module: CSVDecision::Validate
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/validate.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 and validate the column names in the header row. These methods are
94
- only required at table load time.</p>
89
+ <h2>Overview</h2>
90
+ <div class="docstring">
91
+ <div class="discussion">
92
+ <p class="note private">
93
+ <strong>This module is part of a private API.</strong>
94
+ You should avoid using this module if possible, as it may be removed or be changed in the future.
95
+ </p>
95
96
 
97
+ <p>Parse and validate the column names in the header row. These methods are
98
+ only required at table load time.</p>
96
99
 
97
- </div>
98
- </div>
99
- <div class="tags">
100
-
101
100
 
102
- </div>
101
+ </div>
102
+ </div>
103
+ <div class="tags">
104
+
105
+
106
+ </div>
103
107
 
104
108
 
105
109
 
106
110
 
107
111
 
108
112
 
109
-
110
- <h2>
111
- Class Method Summary
112
- <small><a href="#" class="summary_toggle">collapse</a></small>
113
- </h2>
114
113
 
115
- <ul class="summary">
116
-
114
+ <h2>
115
+ Class Method Summary
116
+ <small><a href="#" class="summary_toggle">collapse</a></small>
117
+ </h2>
118
+
119
+ <ul class="summary">
120
+
117
121
  <li class="public ">
118
- <span class="summary_signature">
119
-
120
- <a href="#column-class_method" title="column (class method)">.<strong>column</strong>(cell:, index:) &#x21d2; Array&lt;(Symbol, Symbol)&gt; </a>
121
-
122
-
123
-
124
- </span>
125
-
126
-
127
-
128
-
129
-
130
-
131
- <span class="private note title">private</span>
132
-
133
-
134
- <span class="summary_desc"><div class='inline'>
135
- <p>Validate a column header cell and return its type and name.</p>
136
- </div></span>
137
-
138
- </li>
139
-
140
-
122
+ <span class="summary_signature">
123
+
124
+ <a href="#column-class_method" title="column (class method)">.<strong>column</strong>(cell:, index:)
125
+ &#x21d2; Array&lt;(Symbol, Symbol)&gt; </a>
126
+
127
+
128
+
129
+ </span>
130
+
131
+
132
+
133
+
134
+
135
+
136
+ <span class="private note title">private</span>
137
+
138
+
139
+ <span class="summary_desc">
140
+ <div class='inline'>
141
+ <p>Validate a column header cell and return its type and name.</p>
142
+ </div>
143
+ </span>
144
+
145
+ </li>
146
+
147
+
141
148
  <li class="public ">
142
- <span class="summary_signature">
143
-
144
- <a href="#name-class_method" title="name (class method)">.<strong>name</strong>(columns:, name:, out:) &#x21d2; void </a>
145
-
149
+ <span class="summary_signature">
146
150
 
147
-
148
- </span>
149
-
150
-
151
-
152
-
153
-
154
-
155
- <span class="private note title">private</span>
151
+ <a href="#name-class_method" title="name (class method)">.<strong>name</strong>(columns:, name:, out:)
152
+ &#x21d2; void </a>
156
153
 
157
-
158
- <span class="summary_desc"><div class='inline'>
159
- <p>Validate the column name against the dictionary of column names.</p>
160
- </div></span>
161
-
162
- </li>
163
154
 
164
-
165
- </ul>
166
-
167
155
 
156
+ </span>
168
157
 
169
158
 
170
- <div id="class_method_details" class="method_details_list">
171
- <h2>Class Method Details</h2>
172
159
 
173
-
174
- <div class="method_details first">
175
- <h3 class="signature first" id="column-class_method">
176
-
177
- .<strong>column</strong>(cell:, index:) &#x21d2; <tt>Array&lt;(Symbol, Symbol)&gt;</tt>
178
-
179
160
 
180
-
181
161
 
182
-
183
- </h3><div class="docstring">
184
- <div class="discussion">
185
- <p class="note private">
186
- <strong>This method is part of a private API.</strong>
187
- You should avoid using this method if possible, as it may be removed or be changed in the future.
188
- </p>
189
162
 
190
- <p>Validate a column header cell and return its type and name.</p>
163
+ <span class="private note title">private</span>
191
164
 
192
165
 
193
- </div>
194
- </div>
195
- <div class="tags">
196
- <p class="tag_title">Parameters:</p>
197
- <ul class="param">
198
-
199
- <li>
200
-
201
- <span class='name'>cell</span>
202
-
203
-
204
- <span class='type'>(<tt>String</tt>)</span>
205
-
206
-
207
-
208
- &mdash;
209
- <div class='inline'>
210
- <p>Header cell.</p>
211
- </div>
212
-
213
- </li>
214
-
215
- <li>
216
-
217
- <span class='name'>index</span>
218
-
219
-
220
- <span class='type'>(<tt>Integer</tt>)</span>
221
-
222
-
223
-
224
- &mdash;
225
- <div class='inline'>
226
- <p>The header column&#39;s index.</p>
227
- </div>
228
-
229
- </li>
230
-
231
- </ul>
232
-
233
- <p class="tag_title">Returns:</p>
234
- <ul class="return">
235
-
236
- <li>
237
-
238
-
239
- <span class='type'>(<tt>Array&lt;(Symbol, Symbol)&gt;</tt>)</span>
240
-
241
-
242
-
243
- &mdash;
244
- <div class='inline'>
245
- <p>Column type and column name symbols.</p>
246
- </div>
247
-
248
- </li>
249
-
250
- </ul>
251
-
252
- </div><table class="source_code">
253
- <tr>
254
- <td>
255
- <pre class="lines">
166
+ <span class="summary_desc">
167
+ <div class='inline'>
168
+ <p>Validate the column name against the dictionary of column names.</p>
169
+ </div>
170
+ </span>
171
+
172
+ </li>
173
+
174
+
175
+ </ul>
176
+
177
+
178
+
179
+
180
+ <div id="class_method_details" class="method_details_list">
181
+ <h2>Class Method Details</h2>
182
+
183
+
184
+ <div class="method_details first">
185
+ <h3 class="signature first" id="column-class_method">
186
+
187
+ .<strong>column</strong>(cell:, index:) &#x21d2; <tt>Array&lt;(Symbol, Symbol)&gt;</tt>
188
+
189
+
190
+
191
+
192
+
193
+ </h3>
194
+ <div class="docstring">
195
+ <div class="discussion">
196
+ <p class="note private">
197
+ <strong>This method is part of a private API.</strong>
198
+ You should avoid using this method if possible, as it may be removed or be changed in the future.
199
+ </p>
200
+
201
+ <p>Validate a column header cell and return its type and name.</p>
202
+
203
+
204
+ </div>
205
+ </div>
206
+ <div class="tags">
207
+ <p class="tag_title">Parameters:</p>
208
+ <ul class="param">
209
+
210
+ <li>
211
+
212
+ <span class='name'>cell</span>
213
+
214
+
215
+ <span class='type'>(<tt>String</tt>)</span>
216
+
217
+
218
+
219
+ &mdash;
220
+ <div class='inline'>
221
+ <p>Header cell.</p>
222
+ </div>
223
+
224
+ </li>
225
+
226
+ <li>
227
+
228
+ <span class='name'>index</span>
229
+
230
+
231
+ <span class='type'>(<tt>Integer</tt>)</span>
232
+
233
+
234
+
235
+ &mdash;
236
+ <div class='inline'>
237
+ <p>The header column&#39;s index.</p>
238
+ </div>
239
+
240
+ </li>
241
+
242
+ </ul>
243
+
244
+ <p class="tag_title">Returns:</p>
245
+ <ul class="return">
246
+
247
+ <li>
248
+
249
+
250
+ <span class='type'>(<tt>Array&lt;(Symbol, Symbol)&gt;</tt>)</span>
251
+
252
+
253
+
254
+ &mdash;
255
+ <div class='inline'>
256
+ <p>Column type and column name symbols.</p>
257
+ </div>
258
+
259
+ </li>
260
+
261
+ </ul>
262
+
263
+ </div>
264
+ <table class="source_code">
265
+ <tr>
266
+ <td>
267
+ <pre class="lines">
256
268
 
257
269
 
258
270
  21
@@ -266,124 +278,127 @@ only required at table load time.</p>
266
278
  29
267
279
  30
268
280
  31</pre>
269
- </td>
270
- <td>
271
- <pre class="code"><span class="info file"># File 'lib/csv_decision/validate.rb', line 21</span>
281
+ </td>
282
+ <td>
283
+ <pre class="code"><span class="info file"># File 'lib/csv_decision2/validate.rb', line 21</span>
272
284
 
273
285
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_column'>column</span><span class='lparen'>(</span><span class='label'>cell:</span><span class='comma'>,</span> <span class='label'>index:</span><span class='rparen'>)</span>
274
- <span class='id identifier rubyid_match'>match</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Header.html" title="CSVDecision::Header (module)">Header</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Header.html#COLUMN_TYPE-constant" title="CSVDecision::Header::COLUMN_TYPE (constant)">COLUMN_TYPE</a></span></span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='id identifier rubyid_cell'>cell</span><span class='rparen'>)</span>
275
- <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="CellValidationError.html" title="CSVDecision::CellValidationError (class)">CellValidationError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>column name is not well formed</span><span class='tstring_end'>&#39;</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_match'>match</span>
286
+ <span class='id identifier rubyid_match'>match</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='op'>::</span><span class='const'><span class='object_link'><a href="Header.html#COLUMN_TYPE-constant" title="CSVDecision2::Header::COLUMN_TYPE (constant)">COLUMN_TYPE</a></span></span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='id identifier rubyid_cell'>cell</span><span class='rparen'>)</span>
287
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="CellValidationError.html" title="CSVDecision2::CellValidationError (class)">CellValidationError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>column name is not well formed</span><span class='tstring_end'>&#39;</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_match'>match</span>
276
288
 
277
289
  <span class='id identifier rubyid_column_type'>column_type</span> <span class='op'>=</span> <span class='id identifier rubyid_match'>match</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>type</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='op'>&amp;.</span><span class='id identifier rubyid_downcase'>downcase</span><span class='op'>&amp;.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
278
290
  <span class='id identifier rubyid_column_name'>column_name</span> <span class='op'>=</span> <span class='id identifier rubyid_column_name'>column_name</span><span class='lparen'>(</span><span class='label'>type:</span> <span class='id identifier rubyid_column_type'>column_type</span><span class='comma'>,</span> <span class='label'>name:</span> <span class='id identifier rubyid_match'>match</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>name</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>index:</span> <span class='id identifier rubyid_index'>index</span><span class='rparen'>)</span>
279
291
 
280
292
  <span class='lbracket'>[</span><span class='id identifier rubyid_column_type'>column_type</span><span class='comma'>,</span> <span class='id identifier rubyid_column_name'>column_name</span><span class='rbracket'>]</span>
281
- <span class='kw'>rescue</span> <span class='const'><span class='object_link'><a href="CellValidationError.html" title="CSVDecision::CellValidationError (class)">CellValidationError</a></span></span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_exp'>exp</span>
282
- <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="CellValidationError.html" title="CSVDecision::CellValidationError (class)">CellValidationError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>header column &#39;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_cell'>cell</span><span class='embexpr_end'>}</span><span class='tstring_content'>&#39; is not valid as the </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_exp'>exp</span><span class='period'>.</span><span class='id identifier rubyid_message'>message</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
293
+ <span class='kw'>rescue</span> <span class='const'><span class='object_link'><a href="CellValidationError.html" title="CSVDecision2::CellValidationError (class)">CellValidationError</a></span></span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_exp'>exp</span>
294
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="CellValidationError.html" title="CSVDecision2::CellValidationError (class)">CellValidationError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>header column &#39;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_cell'>cell</span><span class='embexpr_end'>}</span><span class='tstring_content'>&#39; is not valid as the </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_exp'>exp</span><span class='period'>.</span><span class='id identifier rubyid_message'>message</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
283
295
  <span class='kw'>end</span></pre>
284
- </td>
285
- </tr>
286
- </table>
287
- </div>
288
-
289
- <div class="method_details ">
290
- <h3 class="signature " id="name-class_method">
291
-
292
- .<strong>name</strong>(columns:, name:, out:) &#x21d2; <tt>void</tt>
293
-
294
-
295
-
296
-
297
-
298
- </h3><div class="docstring">
299
- <div class="discussion">
300
- <p class="note private">
301
- <strong>This method is part of a private API.</strong>
302
- You should avoid using this method if possible, as it may be removed or be changed in the future.
303
- </p>
304
- <p class="note returns_void">This method returns an undefined value.</p>
305
- <p>Validate the column name against the dictionary of column names.</p>
296
+ </td>
297
+ </tr>
298
+ </table>
299
+ </div>
306
300
 
301
+ <div class="method_details ">
302
+ <h3 class="signature " id="name-class_method">
303
+
304
+ .<strong>name</strong>(columns:, name:, out:) &#x21d2; <tt>void</tt>
305
+
306
+
307
+
308
+
309
+
310
+ </h3>
311
+ <div class="docstring">
312
+ <div class="discussion">
313
+ <p class="note private">
314
+ <strong>This method is part of a private API.</strong>
315
+ You should avoid using this method if possible, as it may be removed or be changed in the future.
316
+ </p>
317
+ <p class="note returns_void">This method returns an undefined value.</p>
318
+ <p>Validate the column name against the dictionary of column names.</p>
319
+
320
+
321
+ </div>
322
+ </div>
323
+ <div class="tags">
324
+ <p class="tag_title">Parameters:</p>
325
+ <ul class="param">
326
+
327
+ <li>
328
+
329
+ <span class='name'>columns</span>
330
+
331
+
332
+ <span class='type'>(<tt>Symbol=&gt;[false, Integer]</tt>)</span>
307
333
 
308
- </div>
309
- </div>
310
- <div class="tags">
311
- <p class="tag_title">Parameters:</p>
312
- <ul class="param">
313
-
314
- <li>
315
-
316
- <span class='name'>columns</span>
317
-
318
-
319
- <span class='type'>(<tt>Symbol=&gt;[false, Integer]</tt>)</span>
320
-
321
-
322
-
323
- &mdash;
324
- <div class='inline'>
325
- <p>Column name dictionary.</p>
326
- </div>
327
-
328
- </li>
329
-
330
- <li>
331
-
332
- <span class='name'>name</span>
333
-
334
-
335
- <span class='type'>(<tt>Symbol</tt>)</span>
336
-
337
-
338
-
339
- &mdash;
340
- <div class='inline'>
341
- <p>Column name.</p>
342
- </div>
343
-
344
- </li>
345
-
346
- <li>
347
-
348
- <span class='name'>out</span>
349
-
350
-
351
- <span class='type'>(<tt>false</tt>, <tt>Integer</tt>)</span>
352
-
353
-
354
-
355
- &mdash;
356
- <div class='inline'>
357
- <p>False if an input column, otherwise the column index of the output column.</p>
358
- </div>
359
-
360
- </li>
361
-
362
- </ul>
363
-
364
- <p class="tag_title">Raises:</p>
365
- <ul class="raise">
366
-
367
- <li>
368
-
369
-
370
- <span class='type'>(<tt><span class='object_link'><a href="CellValidationError.html" title="CSVDecision::CellValidationError (class)">CellValidationError</a></span></tt>)</span>
371
-
372
-
373
-
374
- &mdash;
375
- <div class='inline'>
376
- <p>Column name invalid.</p>
377
- </div>
378
-
379
- </li>
380
-
381
- </ul>
382
-
383
- </div><table class="source_code">
384
- <tr>
385
- <td>
386
- <pre class="lines">
334
+
335
+
336
+ &mdash;
337
+ <div class='inline'>
338
+ <p>Column name dictionary.</p>
339
+ </div>
340
+
341
+ </li>
342
+
343
+ <li>
344
+
345
+ <span class='name'>name</span>
346
+
347
+
348
+ <span class='type'>(<tt>Symbol</tt>)</span>
349
+
350
+
351
+
352
+ &mdash;
353
+ <div class='inline'>
354
+ <p>Column name.</p>
355
+ </div>
356
+
357
+ </li>
358
+
359
+ <li>
360
+
361
+ <span class='name'>out</span>
362
+
363
+
364
+ <span class='type'>(<tt>false</tt>, <tt>Integer</tt>)</span>
365
+
366
+
367
+
368
+ &mdash;
369
+ <div class='inline'>
370
+ <p>False if an input column, otherwise the column index of the output column.</p>
371
+ </div>
372
+
373
+ </li>
374
+
375
+ </ul>
376
+
377
+ <p class="tag_title">Raises:</p>
378
+ <ul class="raise">
379
+
380
+ <li>
381
+
382
+
383
+ <span class='type'>(<tt><span class='object_link'><a href="CellValidationError.html"
384
+ title="CSVDecision2::CellValidationError (class)">CellValidationError</a></span></tt>)</span>
385
+
386
+
387
+
388
+ &mdash;
389
+ <div class='inline'>
390
+ <p>Column name invalid.</p>
391
+ </div>
392
+
393
+ </li>
394
+
395
+ </ul>
396
+
397
+ </div>
398
+ <table class="source_code">
399
+ <tr>
400
+ <td>
401
+ <pre class="lines">
387
402
 
388
403
 
389
404
  41
@@ -392,9 +407,9 @@ only required at table load time.</p>
392
407
  44
393
408
  45
394
409
  46</pre>
395
- </td>
396
- <td>
397
- <pre class="code"><span class="info file"># File 'lib/csv_decision/validate.rb', line 41</span>
410
+ </td>
411
+ <td>
412
+ <pre class="code"><span class="info file"># File 'lib/csv_decision2/validate.rb', line 41</span>
398
413
 
399
414
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span><span class='lparen'>(</span><span class='label'>columns:</span><span class='comma'>,</span> <span class='label'>name:</span><span class='comma'>,</span> <span class='label'>out:</span><span class='rparen'>)</span>
400
415
  <span class='kw'>return</span> <span class='kw'>unless</span> <span class='lparen'>(</span><span class='id identifier rubyid_in_out'>in_out</span> <span class='op'>=</span> <span class='id identifier rubyid_columns'>columns</span><span class='lbracket'>[</span><span class='id identifier rubyid_name'>name</span><span class='rbracket'>]</span><span class='rparen'>)</span>
@@ -402,21 +417,22 @@ only required at table load time.</p>
402
417
  <span class='kw'>return</span> <span class='id identifier rubyid_validate_out_name'>validate_out_name</span><span class='lparen'>(</span><span class='label'>in_out:</span> <span class='id identifier rubyid_in_out'>in_out</span><span class='comma'>,</span> <span class='label'>name:</span> <span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_out'>out</span>
403
418
  <span class='id identifier rubyid_validate_in_name'>validate_in_name</span><span class='lparen'>(</span><span class='label'>in_out:</span> <span class='id identifier rubyid_in_out'>in_out</span><span class='comma'>,</span> <span class='label'>name:</span> <span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
404
419
  <span class='kw'>end</span></pre>
405
- </td>
406
- </tr>
407
- </table>
408
- </div>
409
-
410
- </div>
420
+ </td>
421
+ </tr>
422
+ </table>
423
+ </div>
411
424
 
412
- </div>
425
+ </div>
413
426
 
414
- <div id="footer">
415
- Generated on Sun Feb 11 10:26:07 2018 by
416
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
417
- 0.9.12 (ruby-2.4.0).
418
- </div>
427
+ </div>
419
428
 
429
+ <div id="footer">
430
+ Generated on Sun Feb 11 10:26:07 2018 by
431
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
432
+ 0.9.12 (ruby-2.4.0).
420
433
  </div>
421
- </body>
422
- </html>
434
+
435
+ </div>
436
+ </body>
437
+
438
+ </html>