csv_decision2 0.5.1 → 0.5.2

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.
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::Input
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::Input
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::Input";
19
- relpath = '../';
20
- </script>
18
+ <script type="text/javascript" charset="utf-8">
19
+ pathId = "CSVDecision2::Input";
20
+ relpath = '../';
21
+ </script>
21
22
 
22
23
 
23
24
  <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
@@ -25,239 +26,251 @@
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>
33
- </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 (I)</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">Input</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>
34
59
 
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="../_index.html">Index (I)</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">Input</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
60
  </div>
61
+ <div class="clear"></div>
62
+ </div>
61
63
 
62
- <div id="content"><h1>Module: CSVDecision::Input
63
-
64
-
65
- <span class="private note title">Private</span>
66
- </h1>
67
- <div class="box_info">
68
-
64
+ <div id="content">
65
+ <h1>Module: CSVDecision2::Input
69
66
 
70
-
71
-
72
-
73
-
74
-
75
67
 
76
-
68
+ <span class="private note title">Private</span>
69
+ </h1>
70
+ <div class="box_info">
71
+
77
72
 
78
-
79
- <dl>
80
- <dt>Defined in:</dt>
81
- <dd>lib/csv_decision/input.rb</dd>
82
- </dl>
83
-
84
- </div>
85
73
 
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
74
 
93
- <p>Parse the input hash.</p>
94
75
 
95
76
 
96
- </div>
97
- </div>
98
- <div class="tags">
99
-
100
77
 
101
- </div>
102
78
 
103
79
 
104
80
 
105
81
 
82
+ <dl>
83
+ <dt>Defined in:</dt>
84
+ <dd>lib/csv_decision2/input.rb</dd>
85
+ </dl>
86
+
87
+ </div>
106
88
 
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>
107
96
 
108
-
109
- <h2>
110
- Class Method Summary
111
- <small><a href="#" class="summary_toggle">collapse</a></small>
112
- </h2>
97
+ <p>Parse the input hash.</p>
98
+
99
+
100
+ </div>
101
+ </div>
102
+ <div class="tags">
103
+
104
+
105
+ </div>
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+ <h2>
114
+ Class Method Summary
115
+ <small><a href="#" class="summary_toggle">collapse</a></small>
116
+ </h2>
117
+
118
+ <ul class="summary">
113
119
 
114
- <ul class="summary">
115
-
116
120
  <li class="public ">
117
- <span class="summary_signature">
118
-
119
- <a href="#parse-class_method" title="parse (class method)">.<strong>parse</strong>(table:, input:, symbolize_keys:) &#x21d2; Hash{Symbol=&gt;Object} </a>
120
-
121
-
122
-
123
- </span>
124
-
125
-
126
-
127
-
128
-
129
-
130
- <span class="private note title">private</span>
131
-
132
-
133
- <span class="summary_desc"><div class='inline'></div></span>
134
-
135
- </li>
136
-
137
-
121
+ <span class="summary_signature">
122
+
123
+ <a href="#parse-class_method" title="parse (class method)">.<strong>parse</strong>(table:, input:,
124
+ symbolize_keys:) &#x21d2; Hash{Symbol=&gt;Object} </a>
125
+
126
+
127
+
128
+ </span>
129
+
130
+
131
+
132
+
133
+
134
+
135
+ <span class="private note title">private</span>
136
+
137
+
138
+ <span class="summary_desc">
139
+ <div class='inline'></div>
140
+ </span>
141
+
142
+ </li>
143
+
144
+
138
145
  <li class="public ">
139
- <span class="summary_signature">
140
-
141
- <a href="#parse_data-class_method" title="parse_data (class method)">.<strong>parse_data</strong>(table:, input:) &#x21d2; Hash{Symbol=&gt;Object} </a>
142
-
146
+ <span class="summary_signature">
143
147
 
144
-
145
- </span>
146
-
147
-
148
-
149
-
150
-
151
-
152
- <span class="private note title">private</span>
148
+ <a href="#parse_data-class_method" title="parse_data (class method)">.<strong>parse_data</strong>(table:,
149
+ input:) &#x21d2; Hash{Symbol=&gt;Object} </a>
153
150
 
154
-
155
- <span class="summary_desc"><div class='inline'></div></span>
156
-
157
- </li>
158
151
 
159
-
160
- </ul>
161
-
162
152
 
153
+ </span>
163
154
 
164
155
 
165
- <div id="class_method_details" class="method_details_list">
166
- <h2>Class Method Details</h2>
167
156
 
168
-
169
- <div class="method_details first">
170
- <h3 class="signature first" id="parse-class_method">
171
-
172
- .<strong>parse</strong>(table:, input:, symbolize_keys:) &#x21d2; <tt>Hash{Symbol=&gt;Object}</tt>
173
-
174
157
 
175
-
176
158
 
177
-
178
- </h3><div class="docstring">
179
- <div class="discussion">
180
- <p class="note private">
181
- <strong>This method is part of a private API.</strong>
182
- You should avoid using this method if possible, as it may be removed or be changed in the future.
183
- </p>
184
159
 
160
+ <span class="private note title">private</span>
185
161
 
186
- </div>
187
- </div>
188
- <div class="tags">
189
- <p class="tag_title">Parameters:</p>
190
- <ul class="param">
191
-
192
- <li>
193
-
194
- <span class='name'>table</span>
195
-
196
-
197
- <span class='type'>(<tt><span class='object_link'><a href="Table.html" title="CSVDecision::Table (class)">CSVDecision::Table</a></span></tt>)</span>
198
-
199
-
200
-
201
- &mdash;
202
- <div class='inline'>
203
- <p>Decision table.</p>
204
- </div>
205
-
206
- </li>
207
-
208
- <li>
209
-
210
- <span class='name'>input</span>
211
-
212
-
213
- <span class='type'>(<tt>Hash</tt>)</span>
214
-
215
-
216
-
217
- &mdash;
218
- <div class='inline'>
219
- <p>Input hash (keys may or may not be symbolized)</p>
220
- </div>
221
-
222
- </li>
223
-
224
- <li>
225
-
226
- <span class='name'>symbolize_keys</span>
227
-
228
-
229
- <span class='type'>(<tt>Boolean</tt>)</span>
230
-
231
-
232
-
233
- &mdash;
234
- <div class='inline'>
235
- <p>Set to false if keys are symbolized and it&#39;s OK to mutate the input
236
- hash. Otherwise a copy of the input hash is symbolized.</p>
237
- </div>
238
-
239
- </li>
240
-
241
- </ul>
242
-
243
- <p class="tag_title">Returns:</p>
244
- <ul class="return">
245
-
246
- <li>
247
-
248
-
249
- <span class='type'>(<tt>Hash{Symbol=&gt;Object}</tt>)</span>
250
-
251
-
252
-
253
- </li>
254
-
255
- </ul>
256
-
257
- </div><table class="source_code">
258
- <tr>
259
- <td>
260
- <pre class="lines">
162
+
163
+ <span class="summary_desc">
164
+ <div class='inline'></div>
165
+ </span>
166
+
167
+ </li>
168
+
169
+
170
+ </ul>
171
+
172
+
173
+
174
+
175
+ <div id="class_method_details" class="method_details_list">
176
+ <h2>Class Method Details</h2>
177
+
178
+
179
+ <div class="method_details first">
180
+ <h3 class="signature first" id="parse-class_method">
181
+
182
+ .<strong>parse</strong>(table:, input:, symbolize_keys:) &#x21d2; <tt>Hash{Symbol=&gt;Object}</tt>
183
+
184
+
185
+
186
+
187
+
188
+ </h3>
189
+ <div class="docstring">
190
+ <div class="discussion">
191
+ <p class="note private">
192
+ <strong>This method is part of a private API.</strong>
193
+ You should avoid using this method if possible, as it may be removed or be changed in the future.
194
+ </p>
195
+
196
+
197
+ </div>
198
+ </div>
199
+ <div class="tags">
200
+ <p class="tag_title">Parameters:</p>
201
+ <ul class="param">
202
+
203
+ <li>
204
+
205
+ <span class='name'>table</span>
206
+
207
+
208
+ <span class='type'>(<tt><span class='object_link'><a href="Table.html"
209
+ title="CSVDecision2::Table (class)">CSVDecision2::Table</a></span></tt>)</span>
210
+
211
+
212
+
213
+ &mdash;
214
+ <div class='inline'>
215
+ <p>Decision table.</p>
216
+ </div>
217
+
218
+ </li>
219
+
220
+ <li>
221
+
222
+ <span class='name'>input</span>
223
+
224
+
225
+ <span class='type'>(<tt>Hash</tt>)</span>
226
+
227
+
228
+
229
+ &mdash;
230
+ <div class='inline'>
231
+ <p>Input hash (keys may or may not be symbolized)</p>
232
+ </div>
233
+
234
+ </li>
235
+
236
+ <li>
237
+
238
+ <span class='name'>symbolize_keys</span>
239
+
240
+
241
+ <span class='type'>(<tt>Boolean</tt>)</span>
242
+
243
+
244
+
245
+ &mdash;
246
+ <div class='inline'>
247
+ <p>Set to false if keys are symbolized and it&#39;s OK to mutate the input
248
+ hash. Otherwise a copy of the input hash is symbolized.</p>
249
+ </div>
250
+
251
+ </li>
252
+
253
+ </ul>
254
+
255
+ <p class="tag_title">Returns:</p>
256
+ <ul class="return">
257
+
258
+ <li>
259
+
260
+
261
+ <span class='type'>(<tt>Hash{Symbol=&gt;Object}</tt>)</span>
262
+
263
+
264
+
265
+ </li>
266
+
267
+ </ul>
268
+
269
+ </div>
270
+ <table class="source_code">
271
+ <tr>
272
+ <td>
273
+ <pre class="lines">
261
274
 
262
275
 
263
276
  13
@@ -269,9 +282,9 @@ hash. Otherwise a copy of the input hash is symbolized.</p>
269
282
  19
270
283
  20
271
284
  21</pre>
272
- </td>
273
- <td>
274
- <pre class="code"><span class="info file"># File 'lib/csv_decision/input.rb', line 13</span>
285
+ </td>
286
+ <td>
287
+ <pre class="code"><span class="info file"># File 'lib/csv_decision2/input.rb', line 13</span>
275
288
 
276
289
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='label'>table:</span><span class='comma'>,</span> <span class='label'>input:</span><span class='comma'>,</span> <span class='label'>symbolize_keys:</span><span class='rparen'>)</span>
277
290
  <span class='id identifier rubyid_validate'>validate</span><span class='lparen'>(</span><span class='id identifier rubyid_input'>input</span><span class='rparen'>)</span>
@@ -282,86 +295,89 @@ hash. Otherwise a copy of the input hash is symbolized.</p>
282
295
  <span class='id identifier rubyid_parsed_input'>parsed_input</span><span class='lbracket'>[</span><span class='symbol'>:key</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_parse_key'>parse_key</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'>hash:</span> <span class='id identifier rubyid_parsed_input'>parsed_input</span><span class='lbracket'>[</span><span class='symbol'>:hash</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_table'>table</span><span class='period'>.</span><span class='id identifier rubyid_index'>index</span>
283
296
  <span class='id identifier rubyid_parsed_input'>parsed_input</span>
284
297
  <span class='kw'>end</span></pre>
285
- </td>
286
- </tr>
287
- </table>
288
- </div>
289
-
290
- <div class="method_details ">
291
- <h3 class="signature " id="parse_data-class_method">
292
-
293
- .<strong>parse_data</strong>(table:, input:) &#x21d2; <tt>Hash{Symbol=&gt;Object}</tt>
294
-
295
-
296
-
297
-
298
-
299
- </h3><div class="docstring">
300
- <div class="discussion">
301
- <p class="note private">
302
- <strong>This method is part of a private API.</strong>
303
- You should avoid using this method if possible, as it may be removed or be changed in the future.
304
- </p>
298
+ </td>
299
+ </tr>
300
+ </table>
301
+ </div>
302
+
303
+ <div class="method_details ">
304
+ <h3 class="signature " id="parse_data-class_method">
305
+
306
+ .<strong>parse_data</strong>(table:, input:) &#x21d2; <tt>Hash{Symbol=&gt;Object}</tt>
307
+
308
+
305
309
 
306
310
 
307
- </div>
308
- </div>
309
- <div class="tags">
310
- <p class="tag_title">Parameters:</p>
311
- <ul class="param">
312
-
313
- <li>
314
-
315
- <span class='name'>table</span>
316
-
317
-
318
- <span class='type'>(<tt><span class='object_link'><a href="Table.html" title="CSVDecision::Table (class)">CSVDecision::Table</a></span></tt>)</span>
319
-
320
-
321
-
322
- &mdash;
323
- <div class='inline'>
324
- <p>Decision table.</p>
325
- </div>
326
-
327
- </li>
328
-
329
- <li>
330
-
331
- <span class='name'>input</span>
332
-
333
-
334
- <span class='type'>(<tt>Hash</tt>)</span>
335
-
336
-
337
-
338
- &mdash;
339
- <div class='inline'>
340
- <p>Input hash (keys may or may not be symbolized)</p>
341
- </div>
342
-
343
- </li>
344
-
345
- </ul>
346
-
347
- <p class="tag_title">Returns:</p>
348
- <ul class="return">
349
-
350
- <li>
351
-
352
-
353
- <span class='type'>(<tt>Hash{Symbol=&gt;Object}</tt>)</span>
354
-
355
-
356
-
357
- </li>
358
-
359
- </ul>
360
-
361
- </div><table class="source_code">
362
- <tr>
363
- <td>
364
- <pre class="lines">
311
+
312
+ </h3>
313
+ <div class="docstring">
314
+ <div class="discussion">
315
+ <p class="note private">
316
+ <strong>This method is part of a private API.</strong>
317
+ You should avoid using this method if possible, as it may be removed or be changed in the future.
318
+ </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'>table</span>
330
+
331
+
332
+ <span class='type'>(<tt><span class='object_link'><a href="Table.html"
333
+ title="CSVDecision2::Table (class)">CSVDecision2::Table</a></span></tt>)</span>
334
+
335
+
336
+
337
+ &mdash;
338
+ <div class='inline'>
339
+ <p>Decision table.</p>
340
+ </div>
341
+
342
+ </li>
343
+
344
+ <li>
345
+
346
+ <span class='name'>input</span>
347
+
348
+
349
+ <span class='type'>(<tt>Hash</tt>)</span>
350
+
351
+
352
+
353
+ &mdash;
354
+ <div class='inline'>
355
+ <p>Input hash (keys may or may not be symbolized)</p>
356
+ </div>
357
+
358
+ </li>
359
+
360
+ </ul>
361
+
362
+ <p class="tag_title">Returns:</p>
363
+ <ul class="return">
364
+
365
+ <li>
366
+
367
+
368
+ <span class='type'>(<tt>Hash{Symbol=&gt;Object}</tt>)</span>
369
+
370
+
371
+
372
+ </li>
373
+
374
+ </ul>
375
+
376
+ </div>
377
+ <table class="source_code">
378
+ <tr>
379
+ <td>
380
+ <pre class="lines">
365
381
 
366
382
 
367
383
  26
@@ -372,9 +388,9 @@ hash. Otherwise a copy of the input hash is symbolized.</p>
372
388
  31
373
389
  32
374
390
  33</pre>
375
- </td>
376
- <td>
377
- <pre class="code"><span class="info file"># File 'lib/csv_decision/input.rb', line 26</span>
391
+ </td>
392
+ <td>
393
+ <pre class="code"><span class="info file"># File 'lib/csv_decision2/input.rb', line 26</span>
378
394
 
379
395
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_parse_data'>parse_data</span><span class='lparen'>(</span><span class='label'>table:</span><span class='comma'>,</span> <span class='label'>input:</span><span class='rparen'>)</span>
380
396
  <span class='id identifier rubyid_defaulted_columns'>defaulted_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_defaults'>defaults</span>
@@ -384,21 +400,22 @@ hash. Otherwise a copy of the input hash is symbolized.</p>
384
400
 
385
401
  <span class='id identifier rubyid_parse_defaulted'>parse_defaulted</span><span class='lparen'>(</span><span class='label'>table:</span> <span class='id identifier rubyid_table'>table</span><span class='comma'>,</span> <span class='label'>input:</span> <span class='id identifier rubyid_input'>input</span><span class='comma'>,</span> <span class='label'>defaulted_columns:</span> <span class='id identifier rubyid_defaulted_columns'>defaulted_columns</span><span class='rparen'>)</span>
386
402
  <span class='kw'>end</span></pre>
387
- </td>
388
- </tr>
389
- </table>
390
- </div>
391
-
392
- </div>
403
+ </td>
404
+ </tr>
405
+ </table>
406
+ </div>
393
407
 
394
- </div>
408
+ </div>
395
409
 
396
- <div id="footer">
397
- Generated on Sun Feb 11 10:26:07 2018 by
398
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
399
- 0.9.12 (ruby-2.4.0).
400
- </div>
410
+ </div>
401
411
 
412
+ <div id="footer">
413
+ Generated on Sun Feb 11 10:26:07 2018 by
414
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
415
+ 0.9.12 (ruby-2.4.0).
402
416
  </div>
403
- </body>
404
- </html>
417
+
418
+ </div>
419
+ </body>
420
+
421
+ </html>