csv2hash 0.6.3 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +2 -0
  5. data/UPGRADE.md +6 -0
  6. data/config/rules.erb.yml +7 -0
  7. data/lib/csv2hash/version.rb +1 -1
  8. data/lib/csv2hash/yaml_loader.rb +12 -1
  9. data/spec/csv2hash/yaml_loader_spec.rb +15 -8
  10. metadata +2 -44
  11. data/doc/Cell.html +0 -282
  12. data/doc/Csv2hash/Adapter/Abstract.html +0 -215
  13. data/doc/Csv2hash/Adapter/Base/UnsupportedAdapter.html +0 -123
  14. data/doc/Csv2hash/Adapter/Base.html +0 -201
  15. data/doc/Csv2hash/Adapter/CsvAdapter.html +0 -348
  16. data/doc/Csv2hash/Adapter/MemoryAdapter.html +0 -348
  17. data/doc/Csv2hash/Adapter.html +0 -117
  18. data/doc/Csv2hash/DataWrapper.html +0 -500
  19. data/doc/Csv2hash/Definition.html +0 -1008
  20. data/doc/Csv2hash/Discover.html +0 -192
  21. data/doc/Csv2hash/Expectation.html +0 -202
  22. data/doc/Csv2hash/ExtraValidator.html +0 -207
  23. data/doc/Csv2hash/Main.html +0 -1298
  24. data/doc/Csv2hash/Notifier.html +0 -189
  25. data/doc/Csv2hash/Parser/Collection.html +0 -283
  26. data/doc/Csv2hash/Parser/Mapping.html +0 -266
  27. data/doc/Csv2hash/Parser.html +0 -121
  28. data/doc/Csv2hash/StructureValidator/Deprecation.html +0 -215
  29. data/doc/Csv2hash/StructureValidator/MaxColumns.html +0 -327
  30. data/doc/Csv2hash/StructureValidator/MinColumns.html +0 -327
  31. data/doc/Csv2hash/StructureValidator/ValidationError.html +0 -123
  32. data/doc/Csv2hash/StructureValidator/Validator.html +0 -184
  33. data/doc/Csv2hash/StructureValidator.html +0 -311
  34. data/doc/Csv2hash/Validator/Collection.html +0 -217
  35. data/doc/Csv2hash/Validator/Mapping.html +0 -200
  36. data/doc/Csv2hash/Validator.html +0 -295
  37. data/doc/Csv2hash.html +0 -131
  38. data/doc/CsvArray.html +0 -200
  39. data/doc/Registry.html +0 -312
  40. data/doc/_index.html +0 -391
  41. data/doc/class_list.html +0 -54
  42. data/doc/css/common.css +0 -1
  43. data/doc/css/full_list.css +0 -57
  44. data/doc/css/style.css +0 -339
  45. data/doc/file.README.html +0 -499
  46. data/doc/file_list.html +0 -56
  47. data/doc/frames.html +0 -26
  48. data/doc/index.html +0 -499
  49. data/doc/js/app.js +0 -219
  50. data/doc/js/full_list.js +0 -178
  51. data/doc/js/jquery.js +0 -4
  52. data/doc/method_list.html +0 -473
  53. data/doc/top-level-namespace.html +0 -114
@@ -1,266 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Module: Csv2hash::Parser::Mapping
8
-
9
- &mdash; Documentation by YARD 0.8.7.4
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
19
- relpath = '../../';
20
- framesUrl = "../../frames.html#!Csv2hash/Parser/Mapping.html";
21
- </script>
22
-
23
-
24
- <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
25
-
26
- <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
27
-
28
-
29
- </head>
30
- <body>
31
- <div id="header">
32
- <div id="menu">
33
-
34
- <a href="../../_index.html">Index (M)</a> &raquo;
35
- <span class='title'><span class='object_link'><a href="../../Csv2hash.html" title="Csv2hash (module)">Csv2hash</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Parser.html" title="Csv2hash::Parser (module)">Parser</a></span></span>
36
- &raquo;
37
- <span class="title">Mapping</span>
38
-
39
-
40
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
- </div>
42
-
43
- <div id="search">
44
-
45
- <a class="full_list_link" id="class_list_link"
46
- href="../../class_list.html">
47
- Class List
48
- </a>
49
-
50
- <a class="full_list_link" id="method_list_link"
51
- href="../../method_list.html">
52
- Method List
53
- </a>
54
-
55
- <a class="full_list_link" id="file_list_link"
56
- href="../../file_list.html">
57
- File List
58
- </a>
59
-
60
- </div>
61
- <div class="clear"></div>
62
- </div>
63
-
64
- <iframe id="search_frame"></iframe>
65
-
66
- <div id="content"><h1>Module: Csv2hash::Parser::Mapping
67
-
68
-
69
-
70
- </h1>
71
-
72
- <dl class="box">
73
-
74
-
75
-
76
-
77
-
78
- <dt class="r1">Includes:</dt>
79
- <dd class="r1"><span class='object_link'><a href="../Parser.html" title="Csv2hash::Parser (module)">Csv2hash::Parser</a></span></dd>
80
-
81
-
82
-
83
-
84
-
85
- <dt class="r2 last">Defined in:</dt>
86
- <dd class="r2 last">lib/csv2hash/parser/mapping.rb</dd>
87
-
88
- </dl>
89
- <div class="clear"></div>
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
- <h2>
100
- Instance Method Summary
101
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
102
- </h2>
103
-
104
- <ul class="summary">
105
-
106
- <li class="public ">
107
- <span class="summary_signature">
108
-
109
- <a href="#fill%21-instance_method" title="#fill! (instance method)">- (Object) <strong>fill!</strong> </a>
110
-
111
-
112
-
113
- </span>
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
- <span class="summary_desc"><div class='inline'></div></span>
124
-
125
- </li>
126
-
127
-
128
- <li class="public ">
129
- <span class="summary_signature">
130
-
131
- <a href="#fill_it-instance_method" title="#fill_it (instance method)">- (Object) <strong>fill_it</strong>(parsed_data, source_data) </a>
132
-
133
-
134
-
135
- </span>
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
- <span class="summary_desc"><div class='inline'></div></span>
146
-
147
- </li>
148
-
149
-
150
- </ul>
151
-
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
- <div id="instance_method_details" class="method_details_list">
162
- <h2>Instance Method Details</h2>
163
-
164
-
165
- <div class="method_details first">
166
- <h3 class="signature first" id="fill!-instance_method">
167
-
168
- - (<tt>Object</tt>) <strong>fill!</strong>
169
-
170
-
171
-
172
-
173
-
174
- </h3><table class="source_code">
175
- <tr>
176
- <td>
177
- <pre class="lines">
178
-
179
-
180
- 6
181
- 7
182
- 8
183
- 9
184
- 10
185
- 11
186
- 12
187
- 13</pre>
188
- </td>
189
- <td>
190
- <pre class="code"><span class="info file"># File 'lib/csv2hash/parser/mapping.rb', line 6</span>
191
-
192
- <span class='kw'>def</span> <span class='id identifier rubyid_fill!'>fill!</span>
193
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_data_computed'>data_computed</span><span class='op'>|</span>
194
- <span class='id identifier rubyid_data_computed'>data_computed</span><span class='lbracket'>[</span><span class='symbol'>:data</span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
195
- <span class='id identifier rubyid_data_computed'>data_computed</span><span class='lbracket'>[</span><span class='symbol'>:data</span><span class='rbracket'>]</span> <span class='op'>&lt;&lt;</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_data_parsed'>data_parsed</span><span class='op'>|</span>
196
- <span class='id identifier rubyid_fill_it'>fill_it</span> <span class='id identifier rubyid_data_parsed'>data_parsed</span><span class='comma'>,</span> <span class='id identifier rubyid_data_source'>data_source</span>
197
- <span class='kw'>end</span>
198
- <span class='kw'>end</span>
199
- <span class='kw'>end</span></pre>
200
- </td>
201
- </tr>
202
- </table>
203
- </div>
204
-
205
- <div class="method_details ">
206
- <h3 class="signature " id="fill_it-instance_method">
207
-
208
- - (<tt>Object</tt>) <strong>fill_it</strong>(parsed_data, source_data)
209
-
210
-
211
-
212
-
213
-
214
- </h3><table class="source_code">
215
- <tr>
216
- <td>
217
- <pre class="lines">
218
-
219
-
220
- 15
221
- 16
222
- 17
223
- 18
224
- 19
225
- 20
226
- 21
227
- 22
228
- 23
229
- 24
230
- 25
231
- 26
232
- 27</pre>
233
- </td>
234
- <td>
235
- <pre class="code"><span class="info file"># File 'lib/csv2hash/parser/mapping.rb', line 15</span>
236
-
237
- <span class='kw'>def</span> <span class='id identifier rubyid_fill_it'>fill_it</span> <span class='id identifier rubyid_parsed_data'>parsed_data</span><span class='comma'>,</span> <span class='id identifier rubyid_source_data'>source_data</span>
238
- <span class='id identifier rubyid_definition'>definition</span><span class='period'>.</span><span class='id identifier rubyid_cells'>cells</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_cell'>cell</span><span class='op'>|</span>
239
- <span class='kw'>if</span> <span class='id identifier rubyid_cell'>cell</span><span class='period'>.</span><span class='id identifier rubyid_rules'>rules</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span> <span class='symbol'>:mappable</span>
240
- <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_x'>x</span> <span class='op'>=</span> <span class='id identifier rubyid_cell'>cell</span><span class='period'>.</span><span class='id identifier rubyid_rules'>rules</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span> <span class='symbol'>:position</span>
241
- <span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_nested'>nested</span> <span class='op'>=</span> <span class='id identifier rubyid_cell'>cell</span><span class='period'>.</span><span class='id identifier rubyid_rules'>rules</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span> <span class='symbol'>:nested</span><span class='rparen'>)</span>
242
- <span class='id identifier rubyid_parsed_data'>parsed_data</span><span class='lbracket'>[</span><span class='id identifier rubyid_nested'>nested</span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
243
- <span class='id identifier rubyid_parsed_data'>parsed_data</span><span class='lbracket'>[</span><span class='id identifier rubyid_nested'>nested</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='id identifier rubyid_cell'>cell</span><span class='period'>.</span><span class='id identifier rubyid_rules'>rules</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:key</span><span class='rparen'>)</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_source_data'>source_data</span><span class='lbracket'>[</span><span class='id identifier rubyid_y'>y</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='id identifier rubyid_x'>x</span><span class='rbracket'>]</span>
244
- <span class='kw'>else</span>
245
- <span class='id identifier rubyid_parsed_data'>parsed_data</span><span class='lbracket'>[</span><span class='id identifier rubyid_cell'>cell</span><span class='period'>.</span><span class='id identifier rubyid_rules'>rules</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:key</span><span class='rparen'>)</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_source_data'>source_data</span><span class='lbracket'>[</span><span class='id identifier rubyid_y'>y</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='id identifier rubyid_x'>x</span><span class='rbracket'>]</span>
246
- <span class='kw'>end</span>
247
- <span class='kw'>end</span>
248
- <span class='kw'>end</span>
249
- <span class='kw'>end</span></pre>
250
- </td>
251
- </tr>
252
- </table>
253
- </div>
254
-
255
- </div>
256
-
257
- </div>
258
-
259
- <div id="footer">
260
- Generated on Fri Aug 29 17:12:26 2014 by
261
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
262
- 0.8.7.4 (ruby-2.1.2).
263
- </div>
264
-
265
- </body>
266
- </html>
@@ -1,121 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Module: Csv2hash::Parser
8
-
9
- &mdash; Documentation by YARD 0.8.7.4
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
19
- relpath = '../';
20
- framesUrl = "../frames.html#!Csv2hash/Parser.html";
21
- </script>
22
-
23
-
24
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
25
-
26
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
27
-
28
-
29
- </head>
30
- <body>
31
- <div id="header">
32
- <div id="menu">
33
-
34
- <a href="../_index.html">Index (P)</a> &raquo;
35
- <span class='title'><span class='object_link'><a href="../Csv2hash.html" title="Csv2hash (module)">Csv2hash</a></span></span>
36
- &raquo;
37
- <span class="title">Parser</span>
38
-
39
-
40
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
- </div>
42
-
43
- <div id="search">
44
-
45
- <a class="full_list_link" id="class_list_link"
46
- href="../class_list.html">
47
- Class List
48
- </a>
49
-
50
- <a class="full_list_link" id="method_list_link"
51
- href="../method_list.html">
52
- Method List
53
- </a>
54
-
55
- <a class="full_list_link" id="file_list_link"
56
- href="../file_list.html">
57
- File List
58
- </a>
59
-
60
- </div>
61
- <div class="clear"></div>
62
- </div>
63
-
64
- <iframe id="search_frame"></iframe>
65
-
66
- <div id="content"><h1>Module: Csv2hash::Parser
67
-
68
-
69
-
70
- </h1>
71
-
72
- <dl class="box">
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
- <dt class="r1">Included in:</dt>
81
- <dd class="r1"><span class='object_link'><a href="Parser/Collection.html" title="Csv2hash::Parser::Collection (module)">Collection</a></span>, <span class='object_link'><a href="Parser/Mapping.html" title="Csv2hash::Parser::Mapping (module)">Mapping</a></span></dd>
82
-
83
-
84
-
85
- <dt class="r2 last">Defined in:</dt>
86
- <dd class="r2 last">lib/csv2hash/parser.rb<span class="defines">,<br />
87
- lib/csv2hash/parser/mapping.rb,<br /> lib/csv2hash/parser/collection.rb</span>
88
- </dd>
89
-
90
- </dl>
91
- <div class="clear"></div>
92
-
93
- <h2>Defined Under Namespace</h2>
94
- <p class="children">
95
-
96
-
97
- <strong class="modules">Modules:</strong> <span class='object_link'><a href="Parser/Collection.html" title="Csv2hash::Parser::Collection (module)">Collection</a></span>, <span class='object_link'><a href="Parser/Mapping.html" title="Csv2hash::Parser::Mapping (module)">Mapping</a></span>
98
-
99
-
100
-
101
-
102
- </p>
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
- </div>
113
-
114
- <div id="footer">
115
- Generated on Fri Aug 29 17:12:26 2014 by
116
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
117
- 0.8.7.4 (ruby-2.1.2).
118
- </div>
119
-
120
- </body>
121
- </html>
@@ -1,215 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Module: Csv2hash::StructureValidator::Deprecation
8
-
9
- &mdash; Documentation by YARD 0.8.7.4
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
19
- relpath = '../../';
20
- framesUrl = "../../frames.html#!Csv2hash/StructureValidator/Deprecation.html";
21
- </script>
22
-
23
-
24
- <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
25
-
26
- <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
27
-
28
-
29
- </head>
30
- <body>
31
- <div id="header">
32
- <div id="menu">
33
-
34
- <a href="../../_index.html">Index (D)</a> &raquo;
35
- <span class='title'><span class='object_link'><a href="../../Csv2hash.html" title="Csv2hash (module)">Csv2hash</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../StructureValidator.html" title="Csv2hash::StructureValidator (module)">StructureValidator</a></span></span>
36
- &raquo;
37
- <span class="title">Deprecation</span>
38
-
39
-
40
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
- </div>
42
-
43
- <div id="search">
44
-
45
- <a class="full_list_link" id="class_list_link"
46
- href="../../class_list.html">
47
- Class List
48
- </a>
49
-
50
- <a class="full_list_link" id="method_list_link"
51
- href="../../method_list.html">
52
- Method List
53
- </a>
54
-
55
- <a class="full_list_link" id="file_list_link"
56
- href="../../file_list.html">
57
- File List
58
- </a>
59
-
60
- </div>
61
- <div class="clear"></div>
62
- </div>
63
-
64
- <iframe id="search_frame"></iframe>
65
-
66
- <div id="content"><h1>Module: Csv2hash::StructureValidator::Deprecation
67
-
68
-
69
-
70
- </h1>
71
-
72
- <dl class="box">
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
- <dt class="r1">Included in:</dt>
81
- <dd class="r1"><span class='object_link'><a href="../StructureValidator.html" title="Csv2hash::StructureValidator (module)">Csv2hash::StructureValidator</a></span></dd>
82
-
83
-
84
-
85
- <dt class="r2 last">Defined in:</dt>
86
- <dd class="r2 last">lib/csv2hash/structure_validator/deprecation.rb</dd>
87
-
88
- </dl>
89
- <div class="clear"></div>
90
-
91
-
92
- <h2>Constant Summary</h2>
93
-
94
- <dl class="constants">
95
-
96
- <dt id="OLD_MAX_COLUMN-constant" class="">OLD_MAX_COLUMN =
97
-
98
- </dt>
99
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>MaxColumns</span><span class='tstring_end'>&#39;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
100
-
101
- <dt id="OLD_MIN_COLUMN-constant" class="">OLD_MIN_COLUMN =
102
-
103
- </dt>
104
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>MinColumns</span><span class='tstring_end'>&#39;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
105
-
106
- <dt id="OLD_RULES_NAME-constant" class="">OLD_RULES_NAME =
107
-
108
- </dt>
109
- <dd><pre class="code"><span class='lbracket'>[</span> <span class='const'>OLD_MIN_COLUMN</span><span class='comma'>,</span> <span class='const'>OLD_MAX_COLUMN</span> <span class='rbracket'>]</span></pre></dd>
110
-
111
- <dt id="NEW_SYNTAX-constant" class="">NEW_SYNTAX =
112
-
113
- </dt>
114
- <dd><pre class="code"><span class='lbrace'>{</span> <span class='const'>OLD_MIN_COLUMN</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>min_columns</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='const'>OLD_MAX_COLUMN</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>max_columns</span><span class='tstring_end'>&#39;</span></span> <span class='rbrace'>}</span></pre></dd>
115
-
116
- </dl>
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
- <h2>
127
- Instance Method Summary
128
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
129
- </h2>
130
-
131
- <ul class="summary">
132
-
133
- <li class="public ">
134
- <span class="summary_signature">
135
-
136
- <a href="#check_params-instance_method" title="#check_params (instance method)">- (Object) <strong>check_params</strong>(rule) </a>
137
-
138
-
139
-
140
- </span>
141
-
142
-
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
- <span class="summary_desc"><div class='inline'></div></span>
151
-
152
- </li>
153
-
154
-
155
- </ul>
156
-
157
-
158
-
159
-
160
- <div id="instance_method_details" class="method_details_list">
161
- <h2>Instance Method Details</h2>
162
-
163
-
164
- <div class="method_details first">
165
- <h3 class="signature first" id="check_params-instance_method">
166
-
167
- - (<tt>Object</tt>) <strong>check_params</strong>(rule)
168
-
169
-
170
-
171
-
172
-
173
- </h3><table class="source_code">
174
- <tr>
175
- <td>
176
- <pre class="lines">
177
-
178
-
179
- 10
180
- 11
181
- 12
182
- 13
183
- 14
184
- 15
185
- 16
186
- 17</pre>
187
- </td>
188
- <td>
189
- <pre class="code"><span class="info file"># File 'lib/csv2hash/structure_validator/deprecation.rb', line 10</span>
190
-
191
- <span class='kw'>def</span> <span class='id identifier rubyid_check_params'>check_params</span> <span class='id identifier rubyid_rule'>rule</span>
192
- <span class='kw'>if</span> <span class='const'>OLD_RULES_NAME</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span> <span class='id identifier rubyid_rule'>rule</span>
193
- <span class='id identifier rubyid_warn'>warn</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>[DEPRECATION]: `</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_rule'>rule</span><span class='embexpr_end'>}</span><span class='tstring_content'>` is deprecated. Please use `</span><span class='embexpr_beg'>#{</span><span class='const'>NEW_SYNTAX</span><span class='lbracket'>[</span><span class='id identifier rubyid_rule'>rule</span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_content'>` instead.</span><span class='tstring_end'>&quot;</span></span>
194
- <span class='const'>NEW_SYNTAX</span><span class='lbracket'>[</span><span class='id identifier rubyid_rule'>rule</span><span class='rbracket'>]</span>
195
- <span class='kw'>else</span>
196
- <span class='id identifier rubyid_rule'>rule</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
197
- <span class='kw'>end</span>
198
- <span class='kw'>end</span></pre>
199
- </td>
200
- </tr>
201
- </table>
202
- </div>
203
-
204
- </div>
205
-
206
- </div>
207
-
208
- <div id="footer">
209
- Generated on Fri Aug 29 17:12:26 2014 by
210
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
211
- 0.8.7.4 (ruby-2.1.2).
212
- </div>
213
-
214
- </body>
215
- </html>