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,295 +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::Validator
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/Validator.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 (V)</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">Validator</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::Validator
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="Discover.html" title="Csv2hash::Discover (module)">Discover</a></span></dd>
80
-
81
-
82
-
83
-
84
- <dt class="r2">Included in:</dt>
85
- <dd class="r2"><span class='object_link'><a href="Validator/Collection.html" title="Csv2hash::Validator::Collection (module)">Collection</a></span>, <span class='object_link'><a href="Validator/Mapping.html" title="Csv2hash::Validator::Mapping (module)">Mapping</a></span></dd>
86
-
87
-
88
-
89
- <dt class="r1 last">Defined in:</dt>
90
- <dd class="r1 last">lib/csv2hash/validator.rb<span class="defines">,<br />
91
- lib/csv2hash/validator/mapping.rb,<br /> lib/csv2hash/validator/collection.rb</span>
92
- </dd>
93
-
94
- </dl>
95
- <div class="clear"></div>
96
-
97
- <h2>Defined Under Namespace</h2>
98
- <p class="children">
99
-
100
-
101
- <strong class="modules">Modules:</strong> <span class='object_link'><a href="Validator/Collection.html" title="Csv2hash::Validator::Collection (module)">Collection</a></span>, <span class='object_link'><a href="Validator/Mapping.html" title="Csv2hash::Validator::Mapping (module)">Mapping</a></span>
102
-
103
-
104
-
105
-
106
- </p>
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
- <h2>
116
- Instance Method Summary
117
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
118
- </h2>
119
-
120
- <ul class="summary">
121
-
122
- <li class="public ">
123
- <span class="summary_signature">
124
-
125
- <a href="#valid%3F-instance_method" title="#valid? (instance method)">- (Boolean) <strong>valid?</strong> </a>
126
-
127
-
128
-
129
- </span>
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
- <span class="summary_desc"><div class='inline'></div></span>
140
-
141
- </li>
142
-
143
-
144
- <li class="public ">
145
- <span class="summary_signature">
146
-
147
- <a href="#validate_rules-instance_method" title="#validate_rules (instance method)">- (Object) <strong>validate_rules</strong>(y = nil) </a>
148
-
149
-
150
-
151
- </span>
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
- <span class="summary_desc"><div class='inline'></div></span>
162
-
163
- </li>
164
-
165
-
166
- </ul>
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
- <h3 class="inherited">Methods included from <span class='object_link'><a href="Discover.html" title="Csv2hash::Discover (module)">Discover</a></span></h3>
179
- <p class="inherited"><span class='object_link'><a href="Discover.html#find_positions%21-instance_method" title="Csv2hash::Discover#find_positions! (method)">#find_positions!</a></span></p>
180
-
181
-
182
- <div id="instance_method_details" class="method_details_list">
183
- <h2>Instance Method Details</h2>
184
-
185
-
186
- <div class="method_details first">
187
- <h3 class="signature first" id="valid?-instance_method">
188
-
189
- - (<tt>Boolean</tt>) <strong>valid?</strong>
190
-
191
-
192
-
193
-
194
-
195
- </h3><div class="docstring">
196
- <div class="discussion">
197
-
198
-
199
- </div>
200
- </div>
201
- <div class="tags">
202
-
203
- <p class="tag_title">Returns:</p>
204
- <ul class="return">
205
-
206
- <li>
207
-
208
-
209
- <span class='type'>(<tt>Boolean</tt>)</span>
210
-
211
-
212
-
213
- </li>
214
-
215
- </ul>
216
-
217
- </div><table class="source_code">
218
- <tr>
219
- <td>
220
- <pre class="lines">
221
-
222
-
223
- 21</pre>
224
- </td>
225
- <td>
226
- <pre class="code"><span class="info file"># File 'lib/csv2hash/validator.rb', line 21</span>
227
-
228
- <span class='kw'>def</span> <span class='id identifier rubyid_valid?'>valid?</span><span class='lparen'>(</span><span class='rparen'>)</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_errors'>errors</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
229
- </td>
230
- </tr>
231
- </table>
232
- </div>
233
-
234
- <div class="method_details ">
235
- <h3 class="signature " id="validate_rules-instance_method">
236
-
237
- - (<tt>Object</tt>) <strong>validate_rules</strong>(y = nil)
238
-
239
-
240
-
241
-
242
-
243
- </h3><table class="source_code">
244
- <tr>
245
- <td>
246
- <pre class="lines">
247
-
248
-
249
- 7
250
- 8
251
- 9
252
- 10
253
- 11
254
- 12
255
- 13
256
- 14
257
- 15
258
- 16
259
- 17
260
- 18
261
- 19</pre>
262
- </td>
263
- <td>
264
- <pre class="code"><span class="info file"># File 'lib/csv2hash/validator.rb', line 7</span>
265
-
266
- <span class='kw'>def</span> <span class='id identifier rubyid_validate_rules'>validate_rules</span> <span class='id identifier rubyid_y'>y</span><span class='op'>=</span><span class='kw'>nil</span>
267
- <span class='id identifier rubyid_find_positions!'>find_positions!</span>
268
-
269
- <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>
270
- <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_position'>position</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'>:position</span><span class='rparen'>)</span>
271
- <span class='kw'>begin</span>
272
- <span class='id identifier rubyid_validate_cell'>validate_cell</span> <span class='lparen'>(</span><span class='id identifier rubyid__y'>_y</span><span class='op'>||</span><span class='id identifier rubyid_y'>y</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_cell'>cell</span>
273
- <span class='kw'>rescue</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_e'>e</span>
274
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_errors'>errors</span> <span class='op'>&lt;&lt;</span> <span class='lbrace'>{</span> <span class='label'>y:</span> <span class='lparen'>(</span><span class='id identifier rubyid__y'>_y</span><span class='op'>||</span><span class='id identifier rubyid_y'>y</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='label'>x:</span> <span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='label'>message:</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='label'>key:</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='rbrace'>}</span>
275
- <span class='id identifier rubyid_raise'>raise</span> <span class='kw'>if</span> <span class='id identifier rubyid_break_on_failure'>break_on_failure</span>
276
- <span class='kw'>end</span>
277
- <span class='kw'>end</span>
278
- <span class='kw'>end</span></pre>
279
- </td>
280
- </tr>
281
- </table>
282
- </div>
283
-
284
- </div>
285
-
286
- </div>
287
-
288
- <div id="footer">
289
- Generated on Fri Aug 29 17:12:26 2014 by
290
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
291
- 0.8.7.4 (ruby-2.1.2).
292
- </div>
293
-
294
- </body>
295
- </html>
data/doc/Csv2hash.html DELETED
@@ -1,131 +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
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.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 (C)</a> &raquo;
35
-
36
-
37
- <span class="title">Csv2hash</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
67
-
68
-
69
-
70
- </h1>
71
-
72
- <dl class="box">
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
-
81
- <dt class="r1 last">Defined in:</dt>
82
- <dd class="r1 last">lib/csv2hash.rb<span class="defines">,<br />
83
- lib/csv2hash/parser.rb,<br /> lib/csv2hash/version.rb,<br /> lib/csv2hash/discover.rb,<br /> lib/csv2hash/notifier.rb,<br /> lib/csv2hash/validator.rb,<br /> lib/csv2hash/definition.rb,<br /> lib/csv2hash/expectation.rb,<br /> lib/csv2hash/data_wrapper.rb,<br /> lib/csv2hash/adapters/base.rb,<br /> lib/csv2hash/parser/mapping.rb,<br /> lib/csv2hash/extra_validator.rb,<br /> lib/csv2hash/parser/collection.rb,<br /> lib/csv2hash/adapters/abstract.rb,<br /> lib/csv2hash/validator/mapping.rb,<br /> lib/csv2hash/structure_validator.rb,<br /> lib/csv2hash/adapters/csv_adapter.rb,<br /> lib/csv2hash/validator/collection.rb,<br /> lib/csv2hash/adapters/memory_adapter.rb,<br /> lib/csv2hash/structure_validator/max_columns.rb,<br /> lib/csv2hash/structure_validator/min_columns.rb,<br /> lib/csv2hash/structure_validator/deprecation.rb</span>
84
- </dd>
85
-
86
- </dl>
87
- <div class="clear"></div>
88
-
89
- <h2>Defined Under Namespace</h2>
90
- <p class="children">
91
-
92
-
93
- <strong class="modules">Modules:</strong> <span class='object_link'><a href="Csv2hash/Adapter.html" title="Csv2hash::Adapter (module)">Adapter</a></span>, <span class='object_link'><a href="Csv2hash/Discover.html" title="Csv2hash::Discover (module)">Discover</a></span>, <span class='object_link'><a href="Csv2hash/Expectation.html" title="Csv2hash::Expectation (module)">Expectation</a></span>, <span class='object_link'><a href="Csv2hash/Parser.html" title="Csv2hash::Parser (module)">Parser</a></span>, <span class='object_link'><a href="Csv2hash/StructureValidator.html" title="Csv2hash::StructureValidator (module)">StructureValidator</a></span>, <span class='object_link'><a href="Csv2hash/Validator.html" title="Csv2hash::Validator (module)">Validator</a></span>
94
-
95
-
96
-
97
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="Csv2hash/DataWrapper.html" title="Csv2hash::DataWrapper (class)">DataWrapper</a></span>, <span class='object_link'><a href="Csv2hash/Definition.html" title="Csv2hash::Definition (class)">Definition</a></span>, <span class='object_link'><a href="Csv2hash/ExtraValidator.html" title="Csv2hash::ExtraValidator (class)">ExtraValidator</a></span>, <span class='object_link'><a href="Csv2hash/Main.html" title="Csv2hash::Main (class)">Main</a></span>, <span class='object_link'><a href="Csv2hash/Notifier.html" title="Csv2hash::Notifier (class)">Notifier</a></span>
98
-
99
-
100
- </p>
101
-
102
- <h2>Constant Summary</h2>
103
-
104
- <dl class="constants">
105
-
106
- <dt id="VERSION-constant" class="">VERSION =
107
-
108
- </dt>
109
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>0.6.2</span><span class='tstring_end'>&#39;</span></span></pre></dd>
110
-
111
- </dl>
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
- </div>
123
-
124
- <div id="footer">
125
- Generated on Fri Aug 29 17:12:26 2014 by
126
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
127
- 0.8.7.4 (ruby-2.1.2).
128
- </div>
129
-
130
- </body>
131
- </html>
data/doc/CsvArray.html DELETED
@@ -1,200 +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
- Class: CsvArray
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#!CsvArray.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 (C)</a> &raquo;
35
-
36
-
37
- <span class="title">CsvArray</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>Class: CsvArray
67
-
68
-
69
-
70
- </h1>
71
-
72
- <dl class="box">
73
-
74
- <dt class="r1">Inherits:</dt>
75
- <dd class="r1">
76
- <span class="inheritName">Array</span>
77
-
78
- <ul class="fullTree">
79
- <li>Object</li>
80
-
81
- <li class="next">Array</li>
82
-
83
- <li class="next">CsvArray</li>
84
-
85
- </ul>
86
- <a href="#" class="inheritanceTree">show all</a>
87
-
88
- </dd>
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
- <dt class="r2 last">Defined in:</dt>
99
- <dd class="r2 last">lib/csv2hash/csv_array.rb</dd>
100
-
101
- </dl>
102
- <div class="clear"></div>
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
- <h2>
113
- Instance Method Summary
114
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
115
- </h2>
116
-
117
- <ul class="summary">
118
-
119
- <li class="public ">
120
- <span class="summary_signature">
121
-
122
- <a href="#to_csv-instance_method" title="#to_csv (instance method)">- (Object) <strong>to_csv</strong>(options = {}) </a>
123
-
124
-
125
-
126
- </span>
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
- <span class="summary_desc"><div class='inline'></div></span>
137
-
138
- </li>
139
-
140
-
141
- </ul>
142
-
143
-
144
-
145
-
146
-
147
- <div id="instance_method_details" class="method_details_list">
148
- <h2>Instance Method Details</h2>
149
-
150
-
151
- <div class="method_details first">
152
- <h3 class="signature first" id="to_csv-instance_method">
153
-
154
- - (<tt>Object</tt>) <strong>to_csv</strong>(options = {})
155
-
156
-
157
-
158
-
159
-
160
- </h3><table class="source_code">
161
- <tr>
162
- <td>
163
- <pre class="lines">
164
-
165
-
166
- 4
167
- 5
168
- 6
169
- 7
170
- 8
171
- 9
172
- 10</pre>
173
- </td>
174
- <td>
175
- <pre class="code"><span class="info file"># File 'lib/csv2hash/csv_array.rb', line 4</span>
176
-
177
- <span class='kw'>def</span> <span class='id identifier rubyid_to_csv'>to_csv</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
178
- <span class='const'>CSV</span><span class='period'>.</span><span class='id identifier rubyid_generate'>generate</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_csv'>csv</span><span class='op'>|</span>
179
- <span class='kw'>self</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_element'>element</span><span class='op'>|</span>
180
- <span class='id identifier rubyid_csv'>csv</span> <span class='op'>&lt;&lt;</span> <span class='lbracket'>[</span><span class='id identifier rubyid_element'>element</span><span class='lbracket'>[</span><span class='symbol'>:value</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_element'>element</span><span class='lbracket'>[</span><span class='symbol'>:message</span><span class='rbracket'>]</span><span class='rbracket'>]</span>
181
- <span class='kw'>end</span>
182
- <span class='kw'>end</span>
183
- <span class='kw'>end</span></pre>
184
- </td>
185
- </tr>
186
- </table>
187
- </div>
188
-
189
- </div>
190
-
191
- </div>
192
-
193
- <div id="footer">
194
- Generated on Fri Aug 29 17:12:26 2014 by
195
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
196
- 0.8.7.4 (ruby-2.1.2).
197
- </div>
198
-
199
- </body>
200
- </html>