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
- Class: CSVDecision::Paths
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::Paths
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::Paths";
19
- relpath = '../';
20
- </script>
18
+ <script type="text/javascript" charset="utf-8">
19
+ pathId = "CSVDecision2::Paths";
20
+ relpath = '../';
21
+ </script>
21
22
 
22
23
 
23
24
  <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
@@ -25,323 +26,345 @@
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 (P)</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">Paths</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 (P)</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">Paths</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>Class: CSVDecision2::Paths
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::Paths</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/paths.rb</dd>
101
+ </dl>
102
+
60
103
  </div>
61
104
 
62
- <div id="content"><h1>Class: CSVDecision::Paths
63
-
64
-
65
- <span class="private note title">Private</span>
66
- </h1>
67
- <div class="box_info">
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::Paths</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/paths.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>Build an index for a decision table with one or more input columns
110
- designated as keys</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>
111
112
 
113
+ <p>Build an index for a decision table with one or more input columns
114
+ designated as keys</p>
115
+
116
+
117
+ </div>
118
+ </div>
119
+ <div class="tags">
120
+
121
+
122
+ </div>
123
+
124
+
125
+
126
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
127
+ <ul class="summary">
112
128
 
113
- </div>
114
- </div>
115
- <div class="tags">
116
-
117
-
118
- </div>
119
-
120
-
121
-
122
- <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
123
- <ul class="summary">
124
-
125
- <li class="public ">
126
- <span class="summary_signature">
127
-
128
- <a href="#paths-instance_method" title="#paths (instance method)">#<strong>paths</strong> &#x21d2; Hash </a>
129
-
130
-
131
-
132
- </span>
133
-
134
-
135
-
136
-
137
- <span class="note title readonly">readonly</span>
138
-
139
-
140
-
141
-
142
-
143
-
144
- <span class="private note title">private</span>
145
-
146
-
147
- <span class="summary_desc"><div class='inline'>
148
- <p>The index hash mapping in input values to one or more data array row
149
- indexes.</p>
150
- </div></span>
151
-
152
- </li>
153
-
154
-
155
- </ul>
156
-
157
-
158
-
159
-
160
-
161
- <h2>
162
- Class Method Summary
163
- <small><a href="#" class="summary_toggle">collapse</a></small>
164
- </h2>
165
-
166
- <ul class="summary">
167
-
168
129
  <li class="public ">
169
- <span class="summary_signature">
170
-
171
- <a href="#scan-class_method" title="scan (class method)">.<strong>scan</strong>(table:) &#x21d2; CSVDecision::Paths </a>
172
-
173
-
174
-
175
- </span>
176
-
177
-
178
-
179
-
180
-
181
-
182
- <span class="private note title">private</span>
183
-
184
-
185
- <span class="summary_desc"><div class='inline'>
186
- <p>Build the index of paths.</p>
187
- </div></span>
188
-
189
- </li>
190
-
191
-
130
+ <span class="summary_signature">
131
+
132
+ <a href="#paths-instance_method" title="#paths (instance method)">#<strong>paths</strong> &#x21d2; Hash </a>
133
+
134
+
135
+
136
+ </span>
137
+
138
+
139
+
140
+
141
+ <span class="note title readonly">readonly</span>
142
+
143
+
144
+
145
+
146
+
147
+
148
+ <span class="private note title">private</span>
149
+
150
+
151
+ <span class="summary_desc">
152
+ <div class='inline'>
153
+ <p>The index hash mapping in input values to one or more data array row
154
+ indexes.</p>
155
+ </div>
156
+ </span>
157
+
158
+ </li>
159
+
160
+
161
+ </ul>
162
+
163
+
164
+
165
+
166
+
167
+ <h2>
168
+ Class Method Summary
169
+ <small><a href="#" class="summary_toggle">collapse</a></small>
170
+ </h2>
171
+
172
+ <ul class="summary">
173
+
192
174
  <li class="public ">
193
- <span class="summary_signature">
194
-
195
- <a href="#symbol-class_method" title="symbol (class method)">.<strong>symbol</strong>(value) &#x21d2; nil, Symbol </a>
196
-
197
-
198
-
199
- </span>
200
-
201
-
202
-
203
-
204
-
205
-
206
- <span class="private note title">private</span>
207
-
208
-
209
- <span class="summary_desc"><div class='inline'>
210
- <p>Non-empty string converted to a symbol.</p>
211
- </div></span>
212
-
213
- </li>
214
-
215
-
175
+ <span class="summary_signature">
176
+
177
+ <a href="#scan-class_method" title="scan (class method)">.<strong>scan</strong>(table:) &#x21d2;
178
+ CSVDecision2::Paths </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'>
194
+ <p>Build the index of paths.</p>
195
+ </div>
196
+ </span>
197
+
198
+ </li>
199
+
200
+
216
201
  <li class="public ">
217
- <span class="summary_signature">
218
-
219
- <a href="#value-class_method" title="value (class method)">.<strong>value</strong>(current_value, index) &#x21d2; Integer, Array </a>
220
-
221
-
222
-
223
- </span>
224
-
225
-
226
-
227
-
228
-
229
-
230
- <span class="private note title">private</span>
231
-
232
-
233
- <span class="summary_desc"><div class='inline'>
234
- <p>New path key value.</p>
235
- </div></span>
236
-
237
- </li>
238
-
239
-
240
- </ul>
241
-
242
- <h2>
243
- Instance Method Summary
244
- <small><a href="#" class="summary_toggle">collapse</a></small>
245
- </h2>
246
-
247
- <ul class="summary">
248
-
202
+ <span class="summary_signature">
203
+
204
+ <a href="#symbol-class_method" title="symbol (class method)">.<strong>symbol</strong>(value) &#x21d2; nil,
205
+ Symbol </a>
206
+
207
+
208
+
209
+ </span>
210
+
211
+
212
+
213
+
214
+
215
+
216
+ <span class="private note title">private</span>
217
+
218
+
219
+ <span class="summary_desc">
220
+ <div class='inline'>
221
+ <p>Non-empty string converted to a symbol.</p>
222
+ </div>
223
+ </span>
224
+
225
+ </li>
226
+
227
+
249
228
  <li class="public ">
250
- <span class="summary_signature">
251
-
252
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(table:, columns:) &#x21d2; Paths </a>
253
-
254
-
255
-
256
- </span>
257
-
258
-
259
- <span class="note title constructor">constructor</span>
260
-
261
-
262
-
263
-
264
-
265
- <span class="private note title">private</span>
266
-
267
-
268
- <span class="summary_desc"><div class='inline'>
269
- <p>A new instance of Paths.</p>
270
- </div></span>
271
-
272
- </li>
273
-
274
-
275
- </ul>
276
-
277
-
278
- <div id="constructor_details" class="method_details_list">
279
- <h2>Constructor Details</h2>
280
-
281
- <div class="method_details first">
282
- <h3 class="signature first" id="initialize-instance_method">
283
-
284
- #<strong>initialize</strong>(table:, columns:) &#x21d2; <tt><span class='object_link'><a href="" title="CSVDecision::Paths (class)">Paths</a></span></tt>
285
-
286
-
287
-
288
-
289
-
290
- </h3><div class="docstring">
291
- <div class="discussion">
292
- <p class="note private">
293
- <strong>This method is part of a private API.</strong>
294
- You should avoid using this method if possible, as it may be removed or be changed in the future.
295
- </p>
296
-
297
- <p>Returns a new instance of Paths</p>
229
+ <span class="summary_signature">
298
230
 
231
+ <a href="#value-class_method" title="value (class method)">.<strong>value</strong>(current_value, index)
232
+ &#x21d2; Integer, Array </a>
299
233
 
300
- </div>
301
- </div>
302
- <div class="tags">
303
- <p class="tag_title">Parameters:</p>
304
- <ul class="param">
305
-
306
- <li>
307
-
308
- <span class='name'>table</span>
309
-
310
-
311
- <span class='type'>(<tt><span class='object_link'><a href="Table.html" title="CSVDecision::Table (class)">CSVDecision::Table</a></span></tt>)</span>
312
-
313
-
314
-
315
- &mdash;
316
- <div class='inline'>
317
- <p>Decision table.</p>
318
- </div>
319
-
320
- </li>
321
-
322
- <li>
323
-
324
- <span class='name'>columns</span>
325
-
326
-
327
- <span class='type'>(<tt>Array&lt;<span class='object_link'><a href="Index.html" title="CSVDecision::Index (class)">Index</a></span>&gt;</tt>)</span>
328
-
329
-
330
-
331
- &mdash;
332
- <div class='inline'>
333
- <p>Array of column indexes to be indexed.</p>
334
- </div>
335
-
336
- </li>
337
-
338
- </ul>
339
-
340
-
341
- </div><table class="source_code">
342
- <tr>
343
- <td>
344
- <pre class="lines">
234
+
235
+
236
+ </span>
237
+
238
+
239
+
240
+
241
+
242
+
243
+ <span class="private note title">private</span>
244
+
245
+
246
+ <span class="summary_desc">
247
+ <div class='inline'>
248
+ <p>New path key value.</p>
249
+ </div>
250
+ </span>
251
+
252
+ </li>
253
+
254
+
255
+ </ul>
256
+
257
+ <h2>
258
+ Instance Method Summary
259
+ <small><a href="#" class="summary_toggle">collapse</a></small>
260
+ </h2>
261
+
262
+ <ul class="summary">
263
+
264
+ <li class="public ">
265
+ <span class="summary_signature">
266
+
267
+ <a href="#initialize-instance_method"
268
+ title="#initialize (instance method)">#<strong>initialize</strong>(table:, columns:) &#x21d2; Paths </a>
269
+
270
+
271
+
272
+ </span>
273
+
274
+
275
+ <span class="note title constructor">constructor</span>
276
+
277
+
278
+
279
+
280
+
281
+ <span class="private note title">private</span>
282
+
283
+
284
+ <span class="summary_desc">
285
+ <div class='inline'>
286
+ <p>A new instance of Paths.</p>
287
+ </div>
288
+ </span>
289
+
290
+ </li>
291
+
292
+
293
+ </ul>
294
+
295
+
296
+ <div id="constructor_details" class="method_details_list">
297
+ <h2>Constructor Details</h2>
298
+
299
+ <div class="method_details first">
300
+ <h3 class="signature first" id="initialize-instance_method">
301
+
302
+ #<strong>initialize</strong>(table:, columns:) &#x21d2; <tt><span class='object_link'><a href=""
303
+ title="CSVDecision2::Paths (class)">Paths</a></span></tt>
304
+
305
+
306
+
307
+
308
+
309
+ </h3>
310
+ <div class="docstring">
311
+ <div class="discussion">
312
+ <p class="note private">
313
+ <strong>This method is part of a private API.</strong>
314
+ You should avoid using this method if possible, as it may be removed or be changed in the future.
315
+ </p>
316
+
317
+ <p>Returns a new instance of Paths</p>
318
+
319
+
320
+ </div>
321
+ </div>
322
+ <div class="tags">
323
+ <p class="tag_title">Parameters:</p>
324
+ <ul class="param">
325
+
326
+ <li>
327
+
328
+ <span class='name'>table</span>
329
+
330
+
331
+ <span class='type'>(<tt><span class='object_link'><a href="Table.html"
332
+ title="CSVDecision2::Table (class)">CSVDecision2::Table</a></span></tt>)</span>
333
+
334
+
335
+
336
+ &mdash;
337
+ <div class='inline'>
338
+ <p>Decision table.</p>
339
+ </div>
340
+
341
+ </li>
342
+
343
+ <li>
344
+
345
+ <span class='name'>columns</span>
346
+
347
+
348
+ <span class='type'>(<tt>Array&lt;<span class='object_link'><a href="Index.html"
349
+ title="CSVDecision2::Index (class)">Index</a></span>&gt;</tt>)</span>
350
+
351
+
352
+
353
+ &mdash;
354
+ <div class='inline'>
355
+ <p>Array of column indexes to be indexed.</p>
356
+ </div>
357
+
358
+ </li>
359
+
360
+ </ul>
361
+
362
+
363
+ </div>
364
+ <table class="source_code">
365
+ <tr>
366
+ <td>
367
+ <pre class="lines">
345
368
 
346
369
 
347
370
  45
@@ -352,9 +375,9 @@ indexes.</p>
352
375
  50
353
376
  51
354
377
  52</pre>
355
- </td>
356
- <td>
357
- <pre class="code"><span class="info file"># File 'lib/csv_decision/paths.rb', line 45</span>
378
+ </td>
379
+ <td>
380
+ <pre class="code"><span class="info file"># File 'lib/csv_decision2/paths.rb', line 45</span>
358
381
 
359
382
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='label'>table:</span><span class='comma'>,</span> <span class='label'>columns:</span><span class='rparen'>)</span>
360
383
  <span class='ivar'>@paths</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
@@ -364,156 +387,163 @@ indexes.</p>
364
387
 
365
388
  <span class='id identifier rubyid_freeze'>freeze</span>
366
389
  <span class='kw'>end</span></pre>
367
- </td>
368
- </tr>
369
- </table>
370
- </div>
371
-
372
- </div>
373
-
374
- <div id="instance_attr_details" class="attr_details">
375
- <h2>Instance Attribute Details</h2>
376
-
377
-
378
- <span id=""></span>
379
- <div class="method_details first">
380
- <h3 class="signature first" id="paths-instance_method">
381
-
382
- #<strong>paths</strong> &#x21d2; <tt>Hash</tt> <span class="extras">(readonly)</span>
383
-
384
-
385
-
386
-
387
-
388
- </h3><div class="docstring">
389
- <div class="discussion">
390
- <p class="note private">
391
- <strong>This method is part of a private API.</strong>
392
- You should avoid using this method if possible, as it may be removed or be changed in the future.
393
- </p>
394
-
395
- <p>Returns The index hash mapping in input values to one or more data array
396
- row indexes.</p>
390
+ </td>
391
+ </tr>
392
+ </table>
393
+ </div>
397
394
 
395
+ </div>
398
396
 
399
- </div>
400
- </div>
401
- <div class="tags">
402
-
403
- <p class="tag_title">Returns:</p>
404
- <ul class="return">
405
-
406
- <li>
407
-
408
-
409
- <span class='type'>(<tt>Hash</tt>)</span>
410
-
411
-
412
-
413
- &mdash;
414
- <div class='inline'>
415
- <p>The index hash mapping in input values to one or more data array row
416
- indexes.</p>
417
- </div>
418
-
419
- </li>
420
-
421
- </ul>
422
-
423
- </div><table class="source_code">
424
- <tr>
425
- <td>
426
- <pre class="lines">
397
+ <div id="instance_attr_details" class="attr_details">
398
+ <h2>Instance Attribute Details</h2>
399
+
400
+
401
+ <span id=""></span>
402
+ <div class="method_details first">
403
+ <h3 class="signature first" id="paths-instance_method">
404
+
405
+ #<strong>paths</strong> &#x21d2; <tt>Hash</tt> <span class="extras">(readonly)</span>
406
+
407
+
408
+
409
+
410
+
411
+ </h3>
412
+ <div class="docstring">
413
+ <div class="discussion">
414
+ <p class="note private">
415
+ <strong>This method is part of a private API.</strong>
416
+ You should avoid using this method if possible, as it may be removed or be changed in the future.
417
+ </p>
418
+
419
+ <p>Returns The index hash mapping in input values to one or more data array
420
+ row indexes.</p>
421
+
422
+
423
+ </div>
424
+ </div>
425
+ <div class="tags">
426
+
427
+ <p class="tag_title">Returns:</p>
428
+ <ul class="return">
429
+
430
+ <li>
431
+
432
+
433
+ <span class='type'>(<tt>Hash</tt>)</span>
434
+
435
+
436
+
437
+ &mdash;
438
+ <div class='inline'>
439
+ <p>The index hash mapping in input values to one or more data array row
440
+ indexes.</p>
441
+ </div>
442
+
443
+ </li>
444
+
445
+ </ul>
446
+
447
+ </div>
448
+ <table class="source_code">
449
+ <tr>
450
+ <td>
451
+ <pre class="lines">
427
452
 
428
453
 
429
454
  41
430
455
  42
431
456
  43</pre>
432
- </td>
433
- <td>
434
- <pre class="code"><span class="info file"># File 'lib/csv_decision/paths.rb', line 41</span>
457
+ </td>
458
+ <td>
459
+ <pre class="code"><span class="info file"># File 'lib/csv_decision2/paths.rb', line 41</span>
435
460
 
436
461
  <span class='kw'>def</span> <span class='id identifier rubyid_paths'>paths</span>
437
462
  <span class='ivar'>@paths</span>
438
463
  <span class='kw'>end</span></pre>
439
- </td>
440
- </tr>
441
- </table>
442
- </div>
443
-
444
- </div>
464
+ </td>
465
+ </tr>
466
+ </table>
467
+ </div>
445
468
 
469
+ </div>
446
470
 
447
- <div id="class_method_details" class="method_details_list">
448
- <h2>Class Method Details</h2>
449
471
 
450
-
451
- <div class="method_details first">
452
- <h3 class="signature first" id="scan-class_method">
453
-
454
- .<strong>scan</strong>(table:) &#x21d2; <tt><span class='object_link'><a href="" title="CSVDecision::Paths (class)">CSVDecision::Paths</a></span></tt>
455
-
472
+ <div id="class_method_details" class="method_details_list">
473
+ <h2>Class Method Details</h2>
456
474
 
457
-
458
475
 
459
-
460
- </h3><div class="docstring">
461
- <div class="discussion">
462
- <p class="note private">
463
- <strong>This method is part of a private API.</strong>
464
- You should avoid using this method if possible, as it may be removed or be changed in the future.
465
- </p>
476
+ <div class="method_details first">
477
+ <h3 class="signature first" id="scan-class_method">
466
478
 
467
- <p>Build the index of paths</p>
479
+ .<strong>scan</strong>(table:) &#x21d2; <tt><span class='object_link'><a href=""
480
+ title="CSVDecision2::Paths (class)">CSVDecision2::Paths</a></span></tt>
468
481
 
469
482
 
470
- </div>
471
- </div>
472
- <div class="tags">
473
- <p class="tag_title">Parameters:</p>
474
- <ul class="param">
475
-
476
- <li>
477
-
478
- <span class='name'>table</span>
479
-
480
-
481
- <span class='type'>(<tt><span class='object_link'><a href="Table.html" title="CSVDecision::Table (class)">CSVDecision::Table</a></span></tt>)</span>
482
-
483
-
484
-
485
- &mdash;
486
- <div class='inline'>
487
- <p>Decision table being indexed.</p>
488
- </div>
489
-
490
- </li>
491
-
492
- </ul>
493
-
494
- <p class="tag_title">Returns:</p>
495
- <ul class="return">
496
-
497
- <li>
498
-
499
-
500
- <span class='type'>(<tt><span class='object_link'><a href="" title="CSVDecision::Paths (class)">CSVDecision::Paths</a></span></tt>)</span>
501
-
502
-
503
-
504
- &mdash;
505
- <div class='inline'>
506
- <p>The built index of paths.</p>
507
- </div>
508
-
509
- </li>
510
-
511
- </ul>
512
-
513
- </div><table class="source_code">
514
- <tr>
515
- <td>
516
- <pre class="lines">
483
+
484
+
485
+
486
+ </h3>
487
+ <div class="docstring">
488
+ <div class="discussion">
489
+ <p class="note private">
490
+ <strong>This method is part of a private API.</strong>
491
+ You should avoid using this method if possible, as it may be removed or be changed in the future.
492
+ </p>
493
+
494
+ <p>Build the index of paths</p>
495
+
496
+
497
+ </div>
498
+ </div>
499
+ <div class="tags">
500
+ <p class="tag_title">Parameters:</p>
501
+ <ul class="param">
502
+
503
+ <li>
504
+
505
+ <span class='name'>table</span>
506
+
507
+
508
+ <span class='type'>(<tt><span class='object_link'><a href="Table.html"
509
+ title="CSVDecision2::Table (class)">CSVDecision2::Table</a></span></tt>)</span>
510
+
511
+
512
+
513
+ &mdash;
514
+ <div class='inline'>
515
+ <p>Decision table being indexed.</p>
516
+ </div>
517
+
518
+ </li>
519
+
520
+ </ul>
521
+
522
+ <p class="tag_title">Returns:</p>
523
+ <ul class="return">
524
+
525
+ <li>
526
+
527
+
528
+ <span class='type'>(<tt><span class='object_link'><a href=""
529
+ title="CSVDecision2::Paths (class)">CSVDecision2::Paths</a></span></tt>)</span>
530
+
531
+
532
+
533
+ &mdash;
534
+ <div class='inline'>
535
+ <p>The built index of paths.</p>
536
+ </div>
537
+
538
+ </li>
539
+
540
+ </ul>
541
+
542
+ </div>
543
+ <table class="source_code">
544
+ <tr>
545
+ <td>
546
+ <pre class="lines">
517
547
 
518
548
 
519
549
  16
@@ -523,187 +553,191 @@ indexes.</p>
523
553
  20
524
554
  21
525
555
  22</pre>
526
- </td>
527
- <td>
528
- <pre class="code"><span class="info file"># File 'lib/csv_decision/paths.rb', line 16</span>
556
+ </td>
557
+ <td>
558
+ <pre class="code"><span class="info file"># File 'lib/csv_decision2/paths.rb', line 16</span>
529
559
 
530
560
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_scan'>scan</span><span class='lparen'>(</span><span class='label'>table:</span><span class='rparen'>)</span>
531
561
  <span class='comment'># Do we even have paths?
532
562
  </span> <span class='id identifier rubyid_columns'>columns</span> <span class='op'>=</span> <span class='id identifier rubyid_table'>table</span><span class='period'>.</span><span class='id identifier rubyid_columns'>columns</span><span class='period'>.</span><span class='id identifier rubyid_paths'>paths</span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span>
533
563
  <span class='kw'>return</span> <span class='lbracket'>[</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_columns'>columns</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
534
564
 
535
- <span class='id identifier rubyid_table'>table</span><span class='period'>.</span><span class='id identifier rubyid_paths'>paths</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="" title="CSVDecision::Paths (class)">Paths</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="CSVDecision::Paths#initialize (method)">new</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'>columns:</span> <span class='id identifier rubyid_columns'>columns</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_paths'><span class='object_link'><a href="#paths-instance_method" title="CSVDecision::Paths#paths (method)">paths</a></span></span>
565
+ <span class='id identifier rubyid_table'>table</span><span class='period'>.</span><span class='id identifier rubyid_paths'>paths</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="" title="CSVDecision2::Paths (class)">Paths</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="CSVDecision2::Paths#initialize (method)">new</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'>columns:</span> <span class='id identifier rubyid_columns'>columns</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_paths'><span class='object_link'><a href="#paths-instance_method" title="CSVDecision2::Paths#paths (method)">paths</a></span></span>
536
566
  <span class='kw'>end</span></pre>
537
- </td>
538
- </tr>
539
- </table>
540
- </div>
541
-
542
- <div class="method_details ">
543
- <h3 class="signature " id="symbol-class_method">
544
-
545
- .<strong>symbol</strong>(value) &#x21d2; <tt>nil</tt>, <tt>Symbol</tt>
546
-
547
-
548
-
549
-
550
-
551
- </h3><div class="docstring">
552
- <div class="discussion">
553
- <p class="note private">
554
- <strong>This method is part of a private API.</strong>
555
- You should avoid using this method if possible, as it may be removed or be changed in the future.
556
- </p>
557
-
558
- <p>Returns Non-empty string converted to a symbol.</p>
567
+ </td>
568
+ </tr>
569
+ </table>
570
+ </div>
559
571
 
572
+ <div class="method_details ">
573
+ <h3 class="signature " id="symbol-class_method">
560
574
 
561
- </div>
562
- </div>
563
- <div class="tags">
564
- <p class="tag_title">Parameters:</p>
565
- <ul class="param">
566
-
567
- <li>
568
-
569
- <span class='name'>value</span>
570
-
571
-
572
- <span class='type'>(<tt>String</tt>)</span>
573
-
574
-
575
-
576
- &mdash;
577
- <div class='inline'>
578
- <p>Cell value for the path: column.</p>
579
- </div>
580
-
581
- </li>
582
-
583
- </ul>
584
-
585
- <p class="tag_title">Returns:</p>
586
- <ul class="return">
587
-
588
- <li>
589
-
590
-
591
- <span class='type'>(<tt>nil</tt>, <tt>Symbol</tt>)</span>
592
-
593
-
594
-
595
- &mdash;
596
- <div class='inline'>
597
- <p>Non-empty string converted to a symbol.</p>
598
- </div>
599
-
600
- </li>
601
-
602
- </ul>
603
-
604
- </div><table class="source_code">
605
- <tr>
606
- <td>
607
- <pre class="lines">
575
+ .<strong>symbol</strong>(value) &#x21d2; <tt>nil</tt>, <tt>Symbol</tt>
576
+
577
+
578
+
579
+
580
+
581
+ </h3>
582
+ <div class="docstring">
583
+ <div class="discussion">
584
+ <p class="note private">
585
+ <strong>This method is part of a private API.</strong>
586
+ You should avoid using this method if possible, as it may be removed or be changed in the future.
587
+ </p>
588
+
589
+ <p>Returns Non-empty string converted to a symbol.</p>
590
+
591
+
592
+ </div>
593
+ </div>
594
+ <div class="tags">
595
+ <p class="tag_title">Parameters:</p>
596
+ <ul class="param">
597
+
598
+ <li>
599
+
600
+ <span class='name'>value</span>
601
+
602
+
603
+ <span class='type'>(<tt>String</tt>)</span>
604
+
605
+
606
+
607
+ &mdash;
608
+ <div class='inline'>
609
+ <p>Cell value for the path: column.</p>
610
+ </div>
611
+
612
+ </li>
613
+
614
+ </ul>
615
+
616
+ <p class="tag_title">Returns:</p>
617
+ <ul class="return">
618
+
619
+ <li>
620
+
621
+
622
+ <span class='type'>(<tt>nil</tt>, <tt>Symbol</tt>)</span>
623
+
624
+
625
+
626
+ &mdash;
627
+ <div class='inline'>
628
+ <p>Non-empty string converted to a symbol.</p>
629
+ </div>
630
+
631
+ </li>
632
+
633
+ </ul>
634
+
635
+ </div>
636
+ <table class="source_code">
637
+ <tr>
638
+ <td>
639
+ <pre class="lines">
608
640
 
609
641
 
610
642
  36
611
643
  37
612
644
  38</pre>
613
- </td>
614
- <td>
615
- <pre class="code"><span class="info file"># File 'lib/csv_decision/paths.rb', line 36</span>
645
+ </td>
646
+ <td>
647
+ <pre class="code"><span class="info file"># File 'lib/csv_decision2/paths.rb', line 36</span>
616
648
 
617
649
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_symbol'>symbol</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
618
650
  <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span> <span class='op'>?</span> <span class='kw'>nil</span> <span class='op'>:</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
619
651
  <span class='kw'>end</span></pre>
620
- </td>
621
- </tr>
622
- </table>
623
- </div>
624
-
625
- <div class="method_details ">
626
- <h3 class="signature " id="value-class_method">
627
-
628
- .<strong>value</strong>(current_value, index) &#x21d2; <tt>Integer</tt>, <tt>Array</tt>
629
-
630
-
631
-
632
-
633
-
634
- </h3><div class="docstring">
635
- <div class="discussion">
636
- <p class="note private">
637
- <strong>This method is part of a private API.</strong>
638
- You should avoid using this method if possible, as it may be removed or be changed in the future.
639
- </p>
640
-
641
- <p>Returns New path key value.</p>
652
+ </td>
653
+ </tr>
654
+ </table>
655
+ </div>
642
656
 
657
+ <div class="method_details ">
658
+ <h3 class="signature " id="value-class_method">
643
659
 
644
- </div>
645
- </div>
646
- <div class="tags">
647
- <p class="tag_title">Parameters:</p>
648
- <ul class="param">
649
-
650
- <li>
651
-
652
- <span class='name'>current_value</span>
653
-
654
-
655
- <span class='type'>(<tt>Integer</tt>, <tt>Array</tt>)</span>
656
-
657
-
658
-
659
- &mdash;
660
- <div class='inline'>
661
- <p>Current path value.</p>
662
- </div>
663
-
664
- </li>
665
-
666
- <li>
667
-
668
- <span class='name'>index</span>
669
-
670
-
671
- <span class='type'>(<tt>Integer</tt>)</span>
672
-
673
-
674
-
675
- &mdash;
676
- <div class='inline'>
677
- <p>Array row index to be included in the path entry.</p>
678
- </div>
679
-
680
- </li>
681
-
682
- </ul>
683
-
684
- <p class="tag_title">Returns:</p>
685
- <ul class="return">
686
-
687
- <li>
688
-
689
-
690
- <span class='type'>(<tt>Integer</tt>, <tt>Array</tt>)</span>
691
-
692
-
693
-
694
- &mdash;
695
- <div class='inline'>
696
- <p>New path key value.</p>
697
- </div>
698
-
699
- </li>
700
-
701
- </ul>
702
-
703
- </div><table class="source_code">
704
- <tr>
705
- <td>
706
- <pre class="lines">
660
+ .<strong>value</strong>(current_value, index) &#x21d2; <tt>Integer</tt>, <tt>Array</tt>
661
+
662
+
663
+
664
+
665
+
666
+ </h3>
667
+ <div class="docstring">
668
+ <div class="discussion">
669
+ <p class="note private">
670
+ <strong>This method is part of a private API.</strong>
671
+ You should avoid using this method if possible, as it may be removed or be changed in the future.
672
+ </p>
673
+
674
+ <p>Returns New path key value.</p>
675
+
676
+
677
+ </div>
678
+ </div>
679
+ <div class="tags">
680
+ <p class="tag_title">Parameters:</p>
681
+ <ul class="param">
682
+
683
+ <li>
684
+
685
+ <span class='name'>current_value</span>
686
+
687
+
688
+ <span class='type'>(<tt>Integer</tt>, <tt>Array</tt>)</span>
689
+
690
+
691
+
692
+ &mdash;
693
+ <div class='inline'>
694
+ <p>Current path value.</p>
695
+ </div>
696
+
697
+ </li>
698
+
699
+ <li>
700
+
701
+ <span class='name'>index</span>
702
+
703
+
704
+ <span class='type'>(<tt>Integer</tt>)</span>
705
+
706
+
707
+
708
+ &mdash;
709
+ <div class='inline'>
710
+ <p>Array row index to be included in the path entry.</p>
711
+ </div>
712
+
713
+ </li>
714
+
715
+ </ul>
716
+
717
+ <p class="tag_title">Returns:</p>
718
+ <ul class="return">
719
+
720
+ <li>
721
+
722
+
723
+ <span class='type'>(<tt>Integer</tt>, <tt>Array</tt>)</span>
724
+
725
+
726
+
727
+ &mdash;
728
+ <div class='inline'>
729
+ <p>New path key value.</p>
730
+ </div>
731
+
732
+ </li>
733
+
734
+ </ul>
735
+
736
+ </div>
737
+ <table class="source_code">
738
+ <tr>
739
+ <td>
740
+ <pre class="lines">
707
741
 
708
742
 
709
743
  27
@@ -712,9 +746,9 @@ indexes.</p>
712
746
  30
713
747
  31
714
748
  32</pre>
715
- </td>
716
- <td>
717
- <pre class="code"><span class="info file"># File 'lib/csv_decision/paths.rb', line 27</span>
749
+ </td>
750
+ <td>
751
+ <pre class="code"><span class="info file"># File 'lib/csv_decision2/paths.rb', line 27</span>
718
752
 
719
753
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span><span class='lparen'>(</span><span class='id identifier rubyid_current_value'>current_value</span><span class='comma'>,</span> <span class='id identifier rubyid_index'>index</span><span class='rparen'>)</span>
720
754
  <span class='kw'>return</span> <span class='lbracket'>[</span><span class='id identifier rubyid_current_value'>current_value</span><span class='comma'>,</span> <span class='id identifier rubyid_index'>index</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_current_value'>current_value</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Integer</span><span class='rparen'>)</span>
@@ -722,21 +756,22 @@ indexes.</p>
722
756
  <span class='id identifier rubyid_current_value'>current_value</span><span class='lbracket'>[</span><span class='op'>-</span><span class='int'>1</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_index'>index</span>
723
757
  <span class='id identifier rubyid_current_value'>current_value</span>
724
758
  <span class='kw'>end</span></pre>
725
- </td>
726
- </tr>
727
- </table>
728
- </div>
729
-
730
- </div>
759
+ </td>
760
+ </tr>
761
+ </table>
762
+ </div>
731
763
 
732
- </div>
764
+ </div>
733
765
 
734
- <div id="footer">
735
- Generated on Sun Feb 11 10:26:08 2018 by
736
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
737
- 0.9.12 (ruby-2.4.0).
738
- </div>
766
+ </div>
739
767
 
768
+ <div id="footer">
769
+ Generated on Sun Feb 11 10:26:08 2018 by
770
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
771
+ 0.9.12 (ruby-2.4.0).
740
772
  </div>
741
- </body>
742
- </html>
773
+
774
+ </div>
775
+ </body>
776
+
777
+ </html>