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
data/doc/Csv2hash/Discover.html
DELETED
@@ -1,192 +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::Discover
|
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/Discover.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> »
|
35
|
-
<span class='title'><span class='object_link'><a href="../Csv2hash.html" title="Csv2hash (module)">Csv2hash</a></span></span>
|
36
|
-
»
|
37
|
-
<span class="title">Discover</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::Discover
|
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="Validator.html" title="Csv2hash::Validator (module)">Validator</a></span></dd>
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
<dt class="r2 last">Defined in:</dt>
|
86
|
-
<dd class="r2 last">lib/csv2hash/discover.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="#find_positions%21-instance_method" title="#find_positions! (instance method)">- (Object) <strong>find_positions!</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
|
-
</ul>
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
<div id="instance_method_details" class="method_details_list">
|
134
|
-
<h2>Instance Method Details</h2>
|
135
|
-
|
136
|
-
|
137
|
-
<div class="method_details first">
|
138
|
-
<h3 class="signature first" id="find_positions!-instance_method">
|
139
|
-
|
140
|
-
- (<tt>Object</tt>) <strong>find_positions!</strong>
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
</h3><table class="source_code">
|
147
|
-
<tr>
|
148
|
-
<td>
|
149
|
-
<pre class="lines">
|
150
|
-
|
151
|
-
|
152
|
-
4
|
153
|
-
5
|
154
|
-
6
|
155
|
-
7
|
156
|
-
8
|
157
|
-
9
|
158
|
-
10
|
159
|
-
11
|
160
|
-
12
|
161
|
-
13</pre>
|
162
|
-
</td>
|
163
|
-
<td>
|
164
|
-
<pre class="code"><span class="info file"># File 'lib/csv2hash/discover.rb', line 4</span>
|
165
|
-
|
166
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_find_positions!'>find_positions!</span>
|
167
|
-
<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>
|
168
|
-
<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>
|
169
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_y'>y</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Array</span><span class='rparen'>)</span>
|
170
|
-
<span class='id identifier rubyid_column'>column</span><span class='comma'>,</span> <span class='id identifier rubyid_matcher'>matcher</span> <span class='op'>=</span> <span class='id identifier rubyid_y'>y</span>
|
171
|
-
<span class='id identifier rubyid_y'>y</span> <span class='op'>=</span> <span class='id identifier rubyid_data_source'>data_source</span><span class='period'>.</span><span class='id identifier rubyid_index'>index</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_entries'>entries</span><span class='op'>|</span> <span class='id identifier rubyid_entries'>entries</span><span class='lbracket'>[</span><span class='id identifier rubyid_column'>column</span><span class='rbracket'>]</span> <span class='op'>=~</span> <span class='id identifier rubyid_matcher'>matcher</span> <span class='rbrace'>}</span>
|
172
|
-
<span class='id identifier rubyid_cell'>cell</span><span class='period'>.</span><span class='id identifier rubyid_rules'>rules</span><span class='lbracket'>[</span><span class='symbol'>:position</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_x'>x</span><span class='rbracket'>]</span>
|
173
|
-
<span class='kw'>end</span>
|
174
|
-
<span class='kw'>end</span>
|
175
|
-
<span class='kw'>end</span></pre>
|
176
|
-
</td>
|
177
|
-
</tr>
|
178
|
-
</table>
|
179
|
-
</div>
|
180
|
-
|
181
|
-
</div>
|
182
|
-
|
183
|
-
</div>
|
184
|
-
|
185
|
-
<div id="footer">
|
186
|
-
Generated on Fri Aug 29 17:12:26 2014 by
|
187
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
188
|
-
0.8.7.4 (ruby-2.1.2).
|
189
|
-
</div>
|
190
|
-
|
191
|
-
</body>
|
192
|
-
</html>
|
@@ -1,202 +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::Expectation
|
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/Expectation.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 (E)</a> »
|
35
|
-
<span class='title'><span class='object_link'><a href="../Csv2hash.html" title="Csv2hash (module)">Csv2hash</a></span></span>
|
36
|
-
»
|
37
|
-
<span class="title">Expectation</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::Expectation
|
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)">Parser::Collection</a></span>, <span class='object_link'><a href="Validator/Collection.html" title="Csv2hash::Validator::Collection (module)">Validator::Collection</a></span></dd>
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
<dt class="r2 last">Defined in:</dt>
|
86
|
-
<dd class="r2 last">lib/csv2hash/expectation.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="#unexpected_line%3F-instance_method" title="#unexpected_line? (instance method)">- (Boolean) <strong>unexpected_line?</strong>(line, y) </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
|
-
</ul>
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
<div id="instance_method_details" class="method_details_list">
|
134
|
-
<h2>Instance Method Details</h2>
|
135
|
-
|
136
|
-
|
137
|
-
<div class="method_details first">
|
138
|
-
<h3 class="signature first" id="unexpected_line?-instance_method">
|
139
|
-
|
140
|
-
- (<tt>Boolean</tt>) <strong>unexpected_line?</strong>(line, y)
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
</h3><div class="docstring">
|
147
|
-
<div class="discussion">
|
148
|
-
|
149
|
-
|
150
|
-
</div>
|
151
|
-
</div>
|
152
|
-
<div class="tags">
|
153
|
-
|
154
|
-
<p class="tag_title">Returns:</p>
|
155
|
-
<ul class="return">
|
156
|
-
|
157
|
-
<li>
|
158
|
-
|
159
|
-
|
160
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
</li>
|
165
|
-
|
166
|
-
</ul>
|
167
|
-
|
168
|
-
</div><table class="source_code">
|
169
|
-
<tr>
|
170
|
-
<td>
|
171
|
-
<pre class="lines">
|
172
|
-
|
173
|
-
|
174
|
-
4
|
175
|
-
5
|
176
|
-
6
|
177
|
-
7</pre>
|
178
|
-
</td>
|
179
|
-
<td>
|
180
|
-
<pre class="code"><span class="info file"># File 'lib/csv2hash/expectation.rb', line 4</span>
|
181
|
-
|
182
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_unexpected_line?'>unexpected_line?</span> <span class='id identifier rubyid_line'>line</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span>
|
183
|
-
<span class='kw'>return</span> <span class='kw'>true</span> <span class='kw'>if</span> <span class='id identifier rubyid_y'>y</span> <span class='op'><</span> <span class='id identifier rubyid_definition'>definition</span><span class='period'>.</span><span class='id identifier rubyid_header_size'>header_size</span>
|
184
|
-
<span class='kw'>return</span> <span class='kw'>true</span> <span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:ignore_blank_line</span><span class='rparen'>)</span><span class='lbrace'>{</span><span class='kw'>false</span><span class='rbrace'>}</span> <span class='kw'>and</span> <span class='id identifier rubyid_line'>line</span><span class='period'>.</span><span class='id identifier rubyid_compact'>compact</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
|
185
|
-
<span class='kw'>end</span></pre>
|
186
|
-
</td>
|
187
|
-
</tr>
|
188
|
-
</table>
|
189
|
-
</div>
|
190
|
-
|
191
|
-
</div>
|
192
|
-
|
193
|
-
</div>
|
194
|
-
|
195
|
-
<div id="footer">
|
196
|
-
Generated on Fri Aug 29 17:12:26 2014 by
|
197
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
198
|
-
0.8.7.4 (ruby-2.1.2).
|
199
|
-
</div>
|
200
|
-
|
201
|
-
</body>
|
202
|
-
</html>
|
@@ -1,207 +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::ExtraValidator
|
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/ExtraValidator.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 (E)</a> »
|
35
|
-
<span class='title'><span class='object_link'><a href="../Csv2hash.html" title="Csv2hash (module)">Csv2hash</a></span></span>
|
36
|
-
»
|
37
|
-
<span class="title">ExtraValidator</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::ExtraValidator
|
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::ExtraValidator</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/extra_validator.rb</dd>
|
98
|
-
|
99
|
-
</dl>
|
100
|
-
<div class="clear"></div>
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
<h2>
|
111
|
-
Instance Method Summary
|
112
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
113
|
-
</h2>
|
114
|
-
|
115
|
-
<ul class="summary">
|
116
|
-
|
117
|
-
<li class="public ">
|
118
|
-
<span class="summary_signature">
|
119
|
-
|
120
|
-
<a href="#valid%3F-instance_method" title="#valid? (instance method)">- (Boolean) <strong>valid?</strong>(rule, value) </a>
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
</span>
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
135
|
-
|
136
|
-
</li>
|
137
|
-
|
138
|
-
|
139
|
-
</ul>
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
<div id="instance_method_details" class="method_details_list">
|
145
|
-
<h2>Instance Method Details</h2>
|
146
|
-
|
147
|
-
|
148
|
-
<div class="method_details first">
|
149
|
-
<h3 class="signature first" id="valid?-instance_method">
|
150
|
-
|
151
|
-
- (<tt>Boolean</tt>) <strong>valid?</strong>(rule, value)
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
</h3><div class="docstring">
|
158
|
-
<div class="discussion">
|
159
|
-
|
160
|
-
|
161
|
-
</div>
|
162
|
-
</div>
|
163
|
-
<div class="tags">
|
164
|
-
|
165
|
-
<p class="tag_title">Returns:</p>
|
166
|
-
<ul class="return">
|
167
|
-
|
168
|
-
<li>
|
169
|
-
|
170
|
-
|
171
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
</li>
|
176
|
-
|
177
|
-
</ul>
|
178
|
-
|
179
|
-
</div><table class="source_code">
|
180
|
-
<tr>
|
181
|
-
<td>
|
182
|
-
<pre class="lines">
|
183
|
-
|
184
|
-
|
185
|
-
3</pre>
|
186
|
-
</td>
|
187
|
-
<td>
|
188
|
-
<pre class="code"><span class="info file"># File 'lib/csv2hash/extra_validator.rb', line 3</span>
|
189
|
-
|
190
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_valid?'>valid?</span><span class='lparen'>(</span><span class='id identifier rubyid_rule'>rule</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span> <span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>method parse!() should be implemented in sub class</span><span class='tstring_end'>'</span></span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
191
|
-
</td>
|
192
|
-
</tr>
|
193
|
-
</table>
|
194
|
-
</div>
|
195
|
-
|
196
|
-
</div>
|
197
|
-
|
198
|
-
</div>
|
199
|
-
|
200
|
-
<div id="footer">
|
201
|
-
Generated on Fri Aug 29 17:12:27 2014 by
|
202
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
203
|
-
0.8.7.4 (ruby-2.1.2).
|
204
|
-
</div>
|
205
|
-
|
206
|
-
</body>
|
207
|
-
</html>
|