csv2hash 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/README.md +2 -0
- data/UPGRADE.md +6 -0
- data/config/rules.erb.yml +7 -0
- data/lib/csv2hash/version.rb +1 -1
- data/lib/csv2hash/yaml_loader.rb +12 -1
- data/spec/csv2hash/yaml_loader_spec.rb +15 -8
- metadata +2 -44
- data/doc/Cell.html +0 -282
- data/doc/Csv2hash/Adapter/Abstract.html +0 -215
- data/doc/Csv2hash/Adapter/Base/UnsupportedAdapter.html +0 -123
- data/doc/Csv2hash/Adapter/Base.html +0 -201
- data/doc/Csv2hash/Adapter/CsvAdapter.html +0 -348
- data/doc/Csv2hash/Adapter/MemoryAdapter.html +0 -348
- data/doc/Csv2hash/Adapter.html +0 -117
- data/doc/Csv2hash/DataWrapper.html +0 -500
- data/doc/Csv2hash/Definition.html +0 -1008
- data/doc/Csv2hash/Discover.html +0 -192
- data/doc/Csv2hash/Expectation.html +0 -202
- data/doc/Csv2hash/ExtraValidator.html +0 -207
- data/doc/Csv2hash/Main.html +0 -1298
- data/doc/Csv2hash/Notifier.html +0 -189
- data/doc/Csv2hash/Parser/Collection.html +0 -283
- data/doc/Csv2hash/Parser/Mapping.html +0 -266
- data/doc/Csv2hash/Parser.html +0 -121
- data/doc/Csv2hash/StructureValidator/Deprecation.html +0 -215
- data/doc/Csv2hash/StructureValidator/MaxColumns.html +0 -327
- data/doc/Csv2hash/StructureValidator/MinColumns.html +0 -327
- data/doc/Csv2hash/StructureValidator/ValidationError.html +0 -123
- data/doc/Csv2hash/StructureValidator/Validator.html +0 -184
- data/doc/Csv2hash/StructureValidator.html +0 -311
- data/doc/Csv2hash/Validator/Collection.html +0 -217
- data/doc/Csv2hash/Validator/Mapping.html +0 -200
- data/doc/Csv2hash/Validator.html +0 -295
- data/doc/Csv2hash.html +0 -131
- data/doc/CsvArray.html +0 -200
- data/doc/Registry.html +0 -312
- data/doc/_index.html +0 -391
- data/doc/class_list.html +0 -54
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -57
- data/doc/css/style.css +0 -339
- data/doc/file.README.html +0 -499
- data/doc/file_list.html +0 -56
- data/doc/frames.html +0 -26
- data/doc/index.html +0 -499
- data/doc/js/app.js +0 -219
- data/doc/js/full_list.js +0 -178
- data/doc/js/jquery.js +0 -4
- data/doc/method_list.html +0 -473
- data/doc/top-level-namespace.html +0 -114
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67ed51815f96624700e2abe37d284061c776c386
|
4
|
+
data.tar.gz: 2652b7a9c10c3470b257f9500f53aee4b0ebb4f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdf2f34865b2e4f88e57b314b2c6376225e5083589bb91774b534d71cace7e149fcf4097df9fad43a03f4c7ec2e427b91897df61c958912fffcd21129b3b7810
|
7
|
+
data.tar.gz: 12cabfe3603c445771917d4832e53ca4c7cd09792be38d024f616c19edaab78a94622dcdc7146a4e36e877aebd4ca2e34a63ed3af0ca4bc3bb5e6666a74c8983
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -426,6 +426,8 @@ rules:
|
|
426
426
|
- { position: [2,1], key: 'first_name' }
|
427
427
|
```
|
428
428
|
|
429
|
+
You can write ERB file, should be named with following convention ```<file name>.erb.yml```
|
430
|
+
|
429
431
|
# Changes
|
430
432
|
|
431
433
|
please refere to [CHANGELOG.md](https://github.com/FinalCAD/csv2hash/blob/master/CHANGELOG.md) doc
|
data/UPGRADE.md
CHANGED
data/lib/csv2hash/version.rb
CHANGED
data/lib/csv2hash/yaml_loader.rb
CHANGED
@@ -8,7 +8,7 @@ module Csv2hash
|
|
8
8
|
attr_accessor :definition
|
9
9
|
|
10
10
|
def initialize file
|
11
|
-
@conf =
|
11
|
+
@conf = load_config_file file
|
12
12
|
self.conf.deep_symbolize_keys!
|
13
13
|
end
|
14
14
|
|
@@ -29,5 +29,16 @@ module Csv2hash
|
|
29
29
|
|
30
30
|
Main[self.conf.fetch(:name)] = self.definition
|
31
31
|
end
|
32
|
+
|
33
|
+
private
|
34
|
+
|
35
|
+
def load_config_file file
|
36
|
+
if file.to_s =~ /(?<ext>\.erb\.)/
|
37
|
+
YAML.load(ERB.new(File.read(file)).result)
|
38
|
+
else
|
39
|
+
YAML.load_file(file)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
32
43
|
end
|
33
44
|
end
|
@@ -2,18 +2,25 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
module Csv2hash
|
4
4
|
describe YamlLoader do
|
5
|
-
|
5
|
+
subject { YamlLoader.new config_file }
|
6
|
+
before { subject.load! }
|
6
7
|
|
7
|
-
|
8
|
-
|
9
|
-
end
|
8
|
+
context 'yml' do
|
9
|
+
let(:config_file) { 'config/rules.erb.yml' }
|
10
10
|
|
11
|
-
|
12
|
-
|
11
|
+
specify do
|
12
|
+
expect(subject.definition.name).to eql('example')
|
13
|
+
expect(subject.definition.header_size).to eql(2)
|
14
|
+
end
|
13
15
|
end
|
14
16
|
|
15
|
-
|
16
|
-
|
17
|
+
context 'erb' do
|
18
|
+
let(:config_file) { 'config/rules.yml' }
|
19
|
+
|
20
|
+
specify do
|
21
|
+
expect(subject.definition.name).to eql('example')
|
22
|
+
expect(subject.definition.header_size).to eql(2)
|
23
|
+
end
|
17
24
|
end
|
18
25
|
|
19
26
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: csv2hash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel AZEMAR
|
@@ -108,52 +108,10 @@ files:
|
|
108
108
|
- bin/launch_irb
|
109
109
|
- bin/load_rvm
|
110
110
|
- config/example.csv
|
111
|
+
- config/rules.erb.yml
|
111
112
|
- config/rules.yml
|
112
113
|
- coverage/.resultset.json.lock
|
113
114
|
- csv2hash.gemspec
|
114
|
-
- doc/Cell.html
|
115
|
-
- doc/Csv2hash.html
|
116
|
-
- doc/Csv2hash/Adapter.html
|
117
|
-
- doc/Csv2hash/Adapter/Abstract.html
|
118
|
-
- doc/Csv2hash/Adapter/Base.html
|
119
|
-
- doc/Csv2hash/Adapter/Base/UnsupportedAdapter.html
|
120
|
-
- doc/Csv2hash/Adapter/CsvAdapter.html
|
121
|
-
- doc/Csv2hash/Adapter/MemoryAdapter.html
|
122
|
-
- doc/Csv2hash/DataWrapper.html
|
123
|
-
- doc/Csv2hash/Definition.html
|
124
|
-
- doc/Csv2hash/Discover.html
|
125
|
-
- doc/Csv2hash/Expectation.html
|
126
|
-
- doc/Csv2hash/ExtraValidator.html
|
127
|
-
- doc/Csv2hash/Main.html
|
128
|
-
- doc/Csv2hash/Notifier.html
|
129
|
-
- doc/Csv2hash/Parser.html
|
130
|
-
- doc/Csv2hash/Parser/Collection.html
|
131
|
-
- doc/Csv2hash/Parser/Mapping.html
|
132
|
-
- doc/Csv2hash/StructureValidator.html
|
133
|
-
- doc/Csv2hash/StructureValidator/Deprecation.html
|
134
|
-
- doc/Csv2hash/StructureValidator/MaxColumns.html
|
135
|
-
- doc/Csv2hash/StructureValidator/MinColumns.html
|
136
|
-
- doc/Csv2hash/StructureValidator/ValidationError.html
|
137
|
-
- doc/Csv2hash/StructureValidator/Validator.html
|
138
|
-
- doc/Csv2hash/Validator.html
|
139
|
-
- doc/Csv2hash/Validator/Collection.html
|
140
|
-
- doc/Csv2hash/Validator/Mapping.html
|
141
|
-
- doc/CsvArray.html
|
142
|
-
- doc/Registry.html
|
143
|
-
- doc/_index.html
|
144
|
-
- doc/class_list.html
|
145
|
-
- doc/css/common.css
|
146
|
-
- doc/css/full_list.css
|
147
|
-
- doc/css/style.css
|
148
|
-
- doc/file.README.html
|
149
|
-
- doc/file_list.html
|
150
|
-
- doc/frames.html
|
151
|
-
- doc/index.html
|
152
|
-
- doc/js/app.js
|
153
|
-
- doc/js/full_list.js
|
154
|
-
- doc/js/jquery.js
|
155
|
-
- doc/method_list.html
|
156
|
-
- doc/top-level-namespace.html
|
157
115
|
- lib/csv2hash.rb
|
158
116
|
- lib/csv2hash/adapters/abstract.rb
|
159
117
|
- lib/csv2hash/adapters/base.rb
|
data/doc/Cell.html
DELETED
@@ -1,282 +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: Cell
|
8
|
-
|
9
|
-
— 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#!Cell.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> »
|
35
|
-
|
36
|
-
|
37
|
-
<span class="title">Cell</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: Cell
|
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">Object</span>
|
77
|
-
|
78
|
-
<ul class="fullTree">
|
79
|
-
<li>Object</li>
|
80
|
-
|
81
|
-
<li class="next">Cell</li>
|
82
|
-
|
83
|
-
</ul>
|
84
|
-
<a href="#" class="inheritanceTree">show all</a>
|
85
|
-
|
86
|
-
</dd>
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
<dt class="r2 last">Defined in:</dt>
|
97
|
-
<dd class="r2 last">lib/csv2hash/cell.rb</dd>
|
98
|
-
|
99
|
-
</dl>
|
100
|
-
<div class="clear"></div>
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
107
|
-
<ul class="summary">
|
108
|
-
|
109
|
-
<li class="public ">
|
110
|
-
<span class="summary_signature">
|
111
|
-
|
112
|
-
<a href="#rules-instance_method" title="#rules (instance method)">- (Object) <strong>rules</strong> </a>
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
</span>
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
<span class="summary_desc"><div class='inline'>
|
130
|
-
<p>Returns the value of attribute rules.</p>
|
131
|
-
</div></span>
|
132
|
-
|
133
|
-
</li>
|
134
|
-
|
135
|
-
|
136
|
-
</ul>
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
<h2>
|
143
|
-
Instance Method Summary
|
144
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
145
|
-
</h2>
|
146
|
-
|
147
|
-
<ul class="summary">
|
148
|
-
|
149
|
-
<li class="public ">
|
150
|
-
<span class="summary_signature">
|
151
|
-
|
152
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Cell) <strong>initialize</strong>(*args) </a>
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
</span>
|
157
|
-
|
158
|
-
|
159
|
-
<span class="note title constructor">constructor</span>
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
<span class="summary_desc"><div class='inline'>
|
169
|
-
<p>A new instance of Cell.</p>
|
170
|
-
</div></span>
|
171
|
-
|
172
|
-
</li>
|
173
|
-
|
174
|
-
|
175
|
-
</ul>
|
176
|
-
|
177
|
-
|
178
|
-
<div id="constructor_details" class="method_details_list">
|
179
|
-
<h2>Constructor Details</h2>
|
180
|
-
|
181
|
-
<div class="method_details first">
|
182
|
-
<h3 class="signature first" id="initialize-instance_method">
|
183
|
-
|
184
|
-
- (<tt><span class='object_link'><a href="" title="Cell (class)">Cell</a></span></tt>) <strong>initialize</strong>(*args)
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
</h3><div class="docstring">
|
191
|
-
<div class="discussion">
|
192
|
-
|
193
|
-
<p>Returns a new instance of Cell</p>
|
194
|
-
|
195
|
-
|
196
|
-
</div>
|
197
|
-
</div>
|
198
|
-
<div class="tags">
|
199
|
-
|
200
|
-
|
201
|
-
</div><table class="source_code">
|
202
|
-
<tr>
|
203
|
-
<td>
|
204
|
-
<pre class="lines">
|
205
|
-
|
206
|
-
|
207
|
-
7
|
208
|
-
8
|
209
|
-
9</pre>
|
210
|
-
</td>
|
211
|
-
<td>
|
212
|
-
<pre class="code"><span class="info file"># File 'lib/csv2hash/cell.rb', line 7</span>
|
213
|
-
|
214
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span>
|
215
|
-
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_rules'>rules</span> <span class='op'>=</span> <span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_extract_options!'>extract_options!</span>
|
216
|
-
<span class='kw'>end</span></pre>
|
217
|
-
</td>
|
218
|
-
</tr>
|
219
|
-
</table>
|
220
|
-
</div>
|
221
|
-
|
222
|
-
</div>
|
223
|
-
|
224
|
-
<div id="instance_attr_details" class="attr_details">
|
225
|
-
<h2>Instance Attribute Details</h2>
|
226
|
-
|
227
|
-
|
228
|
-
<span id="rules=-instance_method"></span>
|
229
|
-
<div class="method_details first">
|
230
|
-
<h3 class="signature first" id="rules-instance_method">
|
231
|
-
|
232
|
-
- (<tt>Object</tt>) <strong>rules</strong>
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
</h3><div class="docstring">
|
239
|
-
<div class="discussion">
|
240
|
-
|
241
|
-
<p>Returns the value of attribute rules</p>
|
242
|
-
|
243
|
-
|
244
|
-
</div>
|
245
|
-
</div>
|
246
|
-
<div class="tags">
|
247
|
-
|
248
|
-
|
249
|
-
</div><table class="source_code">
|
250
|
-
<tr>
|
251
|
-
<td>
|
252
|
-
<pre class="lines">
|
253
|
-
|
254
|
-
|
255
|
-
5
|
256
|
-
6
|
257
|
-
7</pre>
|
258
|
-
</td>
|
259
|
-
<td>
|
260
|
-
<pre class="code"><span class="info file"># File 'lib/csv2hash/cell.rb', line 5</span>
|
261
|
-
|
262
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_rules'>rules</span>
|
263
|
-
<span class='ivar'>@rules</span>
|
264
|
-
<span class='kw'>end</span></pre>
|
265
|
-
</td>
|
266
|
-
</tr>
|
267
|
-
</table>
|
268
|
-
</div>
|
269
|
-
|
270
|
-
</div>
|
271
|
-
|
272
|
-
|
273
|
-
</div>
|
274
|
-
|
275
|
-
<div id="footer">
|
276
|
-
Generated on Fri Aug 29 17:12:26 2014 by
|
277
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
278
|
-
0.8.7.4 (ruby-2.1.2).
|
279
|
-
</div>
|
280
|
-
|
281
|
-
</body>
|
282
|
-
</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
|
-
Class: Csv2hash::Adapter::Abstract
|
8
|
-
|
9
|
-
— 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/Adapter/Abstract.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 (A)</a> »
|
35
|
-
<span class='title'><span class='object_link'><a href="../../Csv2hash.html" title="Csv2hash (module)">Csv2hash</a></span></span> » <span class='title'><span class='object_link'><a href="../Adapter.html" title="Csv2hash::Adapter (module)">Adapter</a></span></span>
|
36
|
-
»
|
37
|
-
<span class="title">Abstract</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: Csv2hash::Adapter::Abstract
|
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">Object</span>
|
77
|
-
|
78
|
-
<ul class="fullTree">
|
79
|
-
<li>Object</li>
|
80
|
-
|
81
|
-
<li class="next">Csv2hash::Adapter::Abstract</li>
|
82
|
-
|
83
|
-
</ul>
|
84
|
-
<a href="#" class="inheritanceTree">show all</a>
|
85
|
-
|
86
|
-
</dd>
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
<dt class="r2 last">Defined in:</dt>
|
97
|
-
<dd class="r2 last">lib/csv2hash/adapters/abstract.rb</dd>
|
98
|
-
|
99
|
-
</dl>
|
100
|
-
<div class="clear"></div>
|
101
|
-
|
102
|
-
<div id="subclasses">
|
103
|
-
<h2>Direct Known Subclasses</h2>
|
104
|
-
<p class="children"><span class='object_link'><a href="CsvAdapter.html" title="Csv2hash::Adapter::CsvAdapter (class)">CsvAdapter</a></span>, <span class='object_link'><a href="MemoryAdapter.html" title="Csv2hash::Adapter::MemoryAdapter (class)">MemoryAdapter</a></span></p>
|
105
|
-
</div>
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
<h2>
|
115
|
-
Instance Method Summary
|
116
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
117
|
-
</h2>
|
118
|
-
|
119
|
-
<ul class="summary">
|
120
|
-
|
121
|
-
<li class="public ">
|
122
|
-
<span class="summary_signature">
|
123
|
-
|
124
|
-
<a href="#source-instance_method" title="#source (instance method)">- (Object) <strong>source</strong> </a>
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
</span>
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
139
|
-
|
140
|
-
</li>
|
141
|
-
|
142
|
-
|
143
|
-
</ul>
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
<div id="instance_method_details" class="method_details_list">
|
149
|
-
<h2>Instance Method Details</h2>
|
150
|
-
|
151
|
-
|
152
|
-
<div class="method_details first">
|
153
|
-
<h3 class="signature first" id="source-instance_method">
|
154
|
-
|
155
|
-
- (<tt>Object</tt>) <strong>source</strong>
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
</h3><div class="docstring">
|
162
|
-
<div class="discussion">
|
163
|
-
|
164
|
-
|
165
|
-
</div>
|
166
|
-
</div>
|
167
|
-
<div class="tags">
|
168
|
-
|
169
|
-
<p class="tag_title">Raises:</p>
|
170
|
-
<ul class="raise">
|
171
|
-
|
172
|
-
<li>
|
173
|
-
|
174
|
-
|
175
|
-
<span class='type'>(<tt>NotImplementedError</tt>)</span>
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
</li>
|
180
|
-
|
181
|
-
</ul>
|
182
|
-
|
183
|
-
</div><table class="source_code">
|
184
|
-
<tr>
|
185
|
-
<td>
|
186
|
-
<pre class="lines">
|
187
|
-
|
188
|
-
|
189
|
-
5
|
190
|
-
6
|
191
|
-
7</pre>
|
192
|
-
</td>
|
193
|
-
<td>
|
194
|
-
<pre class="code"><span class="info file"># File 'lib/csv2hash/adapters/abstract.rb', line 5</span>
|
195
|
-
|
196
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_source'>source</span>
|
197
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>NotImplementedError</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:27 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>
|