mamertes 2.4.1
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.
- checksums.yaml +15 -0
- data/.DS_Store +0 -0
- data/.gitignore +6 -0
- data/.travis-gemfile +15 -0
- data/.travis.yml +10 -0
- data/.yardopts +1 -0
- data/Gemfile +21 -0
- data/README.md +126 -0
- data/Rakefile +29 -0
- data/doc/Mamertes.html +155 -0
- data/doc/Mamertes/Application.html +3057 -0
- data/doc/Mamertes/Command.html +7031 -0
- data/doc/Mamertes/CommandMethods.html +125 -0
- data/doc/Mamertes/CommandMethods/Children.html +1286 -0
- data/doc/Mamertes/CommandMethods/Help.html +209 -0
- data/doc/Mamertes/Error.html +631 -0
- data/doc/Mamertes/Localizer.html +376 -0
- data/doc/Mamertes/Option.html +6671 -0
- data/doc/Mamertes/Parser.html +276 -0
- data/doc/Mamertes/ParserMethods.html +125 -0
- data/doc/Mamertes/ParserMethods/General.html +134 -0
- data/doc/Mamertes/ParserMethods/General/ClassMethods.html +574 -0
- data/doc/Mamertes/Version.html +189 -0
- data/doc/_index.html +276 -0
- data/doc/class_list.html +54 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +338 -0
- data/doc/file.README.html +198 -0
- data/doc/file_list.html +56 -0
- data/doc/frames.html +28 -0
- data/doc/index.html +198 -0
- data/doc/js/app.js +214 -0
- data/doc/js/full_list.js +178 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +509 -0
- data/doc/top-level-namespace.html +112 -0
- data/lib/mamertes.rb +18 -0
- data/lib/mamertes/application.rb +206 -0
- data/lib/mamertes/command.rb +529 -0
- data/lib/mamertes/option.rb +236 -0
- data/lib/mamertes/parser.rb +317 -0
- data/lib/mamertes/version.rb +24 -0
- data/locales/en.yml +40 -0
- data/locales/it.yml +40 -0
- data/mamertes.gemspec +30 -0
- data/spec/coverage_helper.rb +20 -0
- data/spec/mamertes/application_spec.rb +181 -0
- data/spec/mamertes/command_spec.rb +526 -0
- data/spec/mamertes/option_spec.rb +274 -0
- data/spec/mamertes/parser_spec.rb +126 -0
- data/spec/spec_helper.rb +15 -0
- metadata +115 -0
@@ -0,0 +1,209 @@
|
|
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: Mamertes::CommandMethods::Help
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.6.2
|
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#!" + escape(window.location.href);
|
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 (H)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../../Mamertes.html" title="Mamertes (module)">Mamertes</a></span></span> » <span class='title'><span class='object_link'><a href="../CommandMethods.html" title="Mamertes::CommandMethods (module)">CommandMethods</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">Help</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: Mamertes::CommandMethods::Help
|
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="../Command.html" title="Mamertes::Command (class)">Mamertes::Command</a></span></dd>
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
<dt class="r2 last">Defined in:</dt>
|
86
|
+
<dd class="r2 last">lib/mamertes/command.rb</dd>
|
87
|
+
|
88
|
+
</dl>
|
89
|
+
<div class="clear"></div>
|
90
|
+
|
91
|
+
<h2>Overview</h2><div class="docstring">
|
92
|
+
<div class="discussion">
|
93
|
+
<p>Methods for showing help messages.</p>
|
94
|
+
|
95
|
+
|
96
|
+
</div>
|
97
|
+
</div>
|
98
|
+
<div class="tags">
|
99
|
+
|
100
|
+
|
101
|
+
</div>
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
<h2>
|
110
|
+
Instance Method Summary
|
111
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
112
|
+
</h2>
|
113
|
+
|
114
|
+
<ul class="summary">
|
115
|
+
|
116
|
+
<li class="public ">
|
117
|
+
<span class="summary_signature">
|
118
|
+
|
119
|
+
<a href="#show_help-instance_method" title="#show_help (instance method)">- (Object) <strong>show_help</strong> </a>
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
</span>
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
<span class="summary_desc"><div class='inline'><p>Shows a help about this command.</p>
|
134
|
+
</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="show_help-instance_method">
|
150
|
+
|
151
|
+
- (<tt>Object</tt>) <strong>show_help</strong>
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
</h3><div class="docstring">
|
158
|
+
<div class="discussion">
|
159
|
+
<p>Shows a help about this command.</p>
|
160
|
+
|
161
|
+
|
162
|
+
</div>
|
163
|
+
</div>
|
164
|
+
<div class="tags">
|
165
|
+
|
166
|
+
|
167
|
+
</div><table class="source_code">
|
168
|
+
<tr>
|
169
|
+
<td>
|
170
|
+
<pre class="lines">
|
171
|
+
|
172
|
+
|
173
|
+
13
|
174
|
+
14
|
175
|
+
15
|
176
|
+
16
|
177
|
+
17
|
178
|
+
18
|
179
|
+
19
|
180
|
+
20</pre>
|
181
|
+
</td>
|
182
|
+
<td>
|
183
|
+
<pre class="code"><span class="info file"># File 'lib/mamertes/command.rb', line 13</span>
|
184
|
+
|
185
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_show_help'>show_help</span>
|
186
|
+
<span class='id identifier rubyid_console'>console</span> <span class='op'>=</span> <span class='id identifier rubyid_is_application?'>is_application?</span> <span class='op'>?</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_console'>console</span> <span class='op'>:</span> <span class='id identifier rubyid_application'>application</span><span class='period'>.</span><span class='id identifier rubyid_console'>console</span>
|
187
|
+
<span class='id identifier rubyid_is_application?'>is_application?</span> <span class='op'>?</span> <span class='id identifier rubyid_show_help_application_summary'>show_help_application_summary</span><span class='lparen'>(</span><span class='id identifier rubyid_console'>console</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='id identifier rubyid_show_help_command_summary'>show_help_command_summary</span><span class='lparen'>(</span><span class='id identifier rubyid_console'>console</span><span class='rparen'>)</span>
|
188
|
+
<span class='id identifier rubyid_show_help_banner'>show_help_banner</span><span class='lparen'>(</span><span class='id identifier rubyid_console'>console</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_has_banner?'>has_banner?</span>
|
189
|
+
<span class='id identifier rubyid_show_help_options'>show_help_options</span><span class='lparen'>(</span><span class='id identifier rubyid_console'>console</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_has_options?'>has_options?</span>
|
190
|
+
<span class='id identifier rubyid_show_help_commands'>show_help_commands</span><span class='lparen'>(</span><span class='id identifier rubyid_console'>console</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_has_commands?'>has_commands?</span>
|
191
|
+
<span class='const'>Kernel</span><span class='period'>.</span><span class='id identifier rubyid_exit'>exit</span><span class='lparen'>(</span><span class='int'>0</span><span class='rparen'>)</span>
|
192
|
+
<span class='kw'>end</span></pre>
|
193
|
+
</td>
|
194
|
+
</tr>
|
195
|
+
</table>
|
196
|
+
</div>
|
197
|
+
|
198
|
+
</div>
|
199
|
+
|
200
|
+
</div>
|
201
|
+
|
202
|
+
<div id="footer">
|
203
|
+
Generated on Sat Aug 10 16:23:08 2013 by
|
204
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
205
|
+
0.8.6.2 (ruby-1.9.3).
|
206
|
+
</div>
|
207
|
+
|
208
|
+
</body>
|
209
|
+
</html>
|
@@ -0,0 +1,631 @@
|
|
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
|
+
Exception: Mamertes::Error
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.6.2
|
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#!" + escape(window.location.href);
|
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="../Mamertes.html" title="Mamertes (module)">Mamertes</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">Error</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>Exception: Mamertes::Error
|
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">ArgumentError</span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next">ArgumentError</li>
|
82
|
+
|
83
|
+
<li class="next">Mamertes::Error</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/mamertes/application.rb</dd>
|
100
|
+
|
101
|
+
</dl>
|
102
|
+
<div class="clear"></div>
|
103
|
+
|
104
|
+
<h2>Overview</h2><div class="docstring">
|
105
|
+
<div class="discussion">
|
106
|
+
<p>This exception is raised when something goes wrong.</p>
|
107
|
+
|
108
|
+
|
109
|
+
</div>
|
110
|
+
</div>
|
111
|
+
<div class="tags">
|
112
|
+
|
113
|
+
|
114
|
+
</div>
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
119
|
+
<ul class="summary">
|
120
|
+
|
121
|
+
<li class="public ">
|
122
|
+
<span class="summary_signature">
|
123
|
+
|
124
|
+
<a href="#message-instance_method" title="#message (instance method)">- (String) <strong>message</strong> </a>
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
</span>
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
<span class="note title readonly">readonly</span>
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
<span class="summary_desc"><div class='inline'><p>A human readable message.</p>
|
144
|
+
</div></span>
|
145
|
+
|
146
|
+
</li>
|
147
|
+
|
148
|
+
|
149
|
+
<li class="public ">
|
150
|
+
<span class="summary_signature">
|
151
|
+
|
152
|
+
<a href="#reason-instance_method" title="#reason (instance method)">- (Symbol) <strong>reason</strong> </a>
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
</span>
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
<span class="note title readonly">readonly</span>
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
<span class="summary_desc"><div class='inline'><p>The reason of failure.</p>
|
172
|
+
</div></span>
|
173
|
+
|
174
|
+
</li>
|
175
|
+
|
176
|
+
|
177
|
+
<li class="public ">
|
178
|
+
<span class="summary_signature">
|
179
|
+
|
180
|
+
<a href="#target-instance_method" title="#target (instance method)">- (Object) <strong>target</strong> </a>
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
</span>
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
<span class="note title readonly">readonly</span>
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
<span class="summary_desc"><div class='inline'><p>The target of this error.</p>
|
200
|
+
</div></span>
|
201
|
+
|
202
|
+
</li>
|
203
|
+
|
204
|
+
|
205
|
+
</ul>
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
<h2>
|
212
|
+
Instance Method Summary
|
213
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
214
|
+
</h2>
|
215
|
+
|
216
|
+
<ul class="summary">
|
217
|
+
|
218
|
+
<li class="public ">
|
219
|
+
<span class="summary_signature">
|
220
|
+
|
221
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Error) <strong>initialize</strong>(target, reason, message) </a>
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
</span>
|
226
|
+
|
227
|
+
|
228
|
+
<span class="note title constructor">constructor</span>
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
<span class="summary_desc"><div class='inline'><p>Initializes a new error.</p>
|
238
|
+
</div></span>
|
239
|
+
|
240
|
+
</li>
|
241
|
+
|
242
|
+
|
243
|
+
</ul>
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
<div id="constructor_details" class="method_details_list">
|
248
|
+
<h2>Constructor Details</h2>
|
249
|
+
|
250
|
+
<div class="method_details first">
|
251
|
+
<h3 class="signature first" id="initialize-instance_method">
|
252
|
+
|
253
|
+
- (<tt><span class='object_link'><a href="" title="Mamertes::Error (class)">Error</a></span></tt>) <strong>initialize</strong>(target, reason, message)
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
</h3><div class="docstring">
|
260
|
+
<div class="discussion">
|
261
|
+
<p>Initializes a new error</p>
|
262
|
+
|
263
|
+
|
264
|
+
</div>
|
265
|
+
</div>
|
266
|
+
<div class="tags">
|
267
|
+
<p class="tag_title">Parameters:</p>
|
268
|
+
<ul class="param">
|
269
|
+
|
270
|
+
<li>
|
271
|
+
|
272
|
+
<span class='name'>target</span>
|
273
|
+
|
274
|
+
|
275
|
+
<span class='type'>(<tt>Object</tt>)</span>
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
—
|
280
|
+
<div class='inline'><p>The target of this error.</p>
|
281
|
+
</div>
|
282
|
+
|
283
|
+
</li>
|
284
|
+
|
285
|
+
<li>
|
286
|
+
|
287
|
+
<span class='name'>reason</span>
|
288
|
+
|
289
|
+
|
290
|
+
<span class='type'>(<tt>Symbol</tt>)</span>
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
—
|
295
|
+
<div class='inline'><p>The reason of failure.</p>
|
296
|
+
</div>
|
297
|
+
|
298
|
+
</li>
|
299
|
+
|
300
|
+
<li>
|
301
|
+
|
302
|
+
<span class='name'>message</span>
|
303
|
+
|
304
|
+
|
305
|
+
<span class='type'>(<tt>String</tt>)</span>
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
—
|
310
|
+
<div class='inline'><p>A human readable message.</p>
|
311
|
+
</div>
|
312
|
+
|
313
|
+
</li>
|
314
|
+
|
315
|
+
</ul>
|
316
|
+
|
317
|
+
|
318
|
+
</div><table class="source_code">
|
319
|
+
<tr>
|
320
|
+
<td>
|
321
|
+
<pre class="lines">
|
322
|
+
|
323
|
+
|
324
|
+
27
|
325
|
+
28
|
326
|
+
29
|
327
|
+
30
|
328
|
+
31
|
329
|
+
32
|
330
|
+
33</pre>
|
331
|
+
</td>
|
332
|
+
<td>
|
333
|
+
<pre class="code"><span class="info file"># File 'lib/mamertes/application.rb', line 27</span>
|
334
|
+
|
335
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_target'>target</span><span class='comma'>,</span> <span class='id identifier rubyid_reason'>reason</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
336
|
+
<span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
337
|
+
|
338
|
+
<span class='ivar'>@target</span> <span class='op'>=</span> <span class='id identifier rubyid_target'>target</span>
|
339
|
+
<span class='ivar'>@reason</span> <span class='op'>=</span> <span class='id identifier rubyid_reason'>reason</span>
|
340
|
+
<span class='ivar'>@message</span> <span class='op'>=</span> <span class='id identifier rubyid_message'>message</span>
|
341
|
+
<span class='kw'>end</span></pre>
|
342
|
+
</td>
|
343
|
+
</tr>
|
344
|
+
</table>
|
345
|
+
</div>
|
346
|
+
|
347
|
+
</div>
|
348
|
+
|
349
|
+
<div id="instance_attr_details" class="attr_details">
|
350
|
+
<h2>Instance Attribute Details</h2>
|
351
|
+
|
352
|
+
|
353
|
+
<span id=""></span>
|
354
|
+
<div class="method_details first">
|
355
|
+
<h3 class="signature first" id="message-instance_method">
|
356
|
+
|
357
|
+
- (<tt>String</tt>) <strong>message</strong> <span class="extras">(readonly)</span>
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
</h3><div class="docstring">
|
364
|
+
<div class="discussion">
|
365
|
+
<p>A human readable message.</p>
|
366
|
+
|
367
|
+
|
368
|
+
</div>
|
369
|
+
</div>
|
370
|
+
<div class="tags">
|
371
|
+
|
372
|
+
<p class="tag_title">Returns:</p>
|
373
|
+
<ul class="return">
|
374
|
+
|
375
|
+
<li>
|
376
|
+
|
377
|
+
|
378
|
+
<span class='type'>(<tt>String</tt>)</span>
|
379
|
+
|
380
|
+
|
381
|
+
|
382
|
+
—
|
383
|
+
<div class='inline'><p>A human readable message.</p>
|
384
|
+
</div>
|
385
|
+
|
386
|
+
</li>
|
387
|
+
|
388
|
+
</ul>
|
389
|
+
|
390
|
+
</div><table class="source_code">
|
391
|
+
<tr>
|
392
|
+
<td>
|
393
|
+
<pre class="lines">
|
394
|
+
|
395
|
+
|
396
|
+
17
|
397
|
+
18
|
398
|
+
19
|
399
|
+
20
|
400
|
+
21
|
401
|
+
22
|
402
|
+
23
|
403
|
+
24
|
404
|
+
25
|
405
|
+
26
|
406
|
+
27
|
407
|
+
28
|
408
|
+
29
|
409
|
+
30
|
410
|
+
31
|
411
|
+
32
|
412
|
+
33
|
413
|
+
34</pre>
|
414
|
+
</td>
|
415
|
+
<td>
|
416
|
+
<pre class="code"><span class="info file"># File 'lib/mamertes/application.rb', line 17</span>
|
417
|
+
|
418
|
+
<span class='kw'>class</span> <span class='const'>Error</span> <span class='op'><</span> <span class='const'>ArgumentError</span>
|
419
|
+
<span class='id identifier rubyid_attr_reader'>attr_reader</span> <span class='symbol'>:target</span>
|
420
|
+
<span class='id identifier rubyid_attr_reader'>attr_reader</span> <span class='symbol'>:reason</span>
|
421
|
+
<span class='id identifier rubyid_attr_reader'>attr_reader</span> <span class='symbol'>:message</span>
|
422
|
+
|
423
|
+
<span class='comment'># Initializes a new error
|
424
|
+
</span> <span class='comment'>#
|
425
|
+
</span> <span class='comment'># @param target [Object] The target of this error.
|
426
|
+
</span> <span class='comment'># @param reason [Symbol] The reason of failure.
|
427
|
+
</span> <span class='comment'># @param message [String] A human readable message.
|
428
|
+
</span> <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_target'>target</span><span class='comma'>,</span> <span class='id identifier rubyid_reason'>reason</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
429
|
+
<span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
430
|
+
|
431
|
+
<span class='ivar'>@target</span> <span class='op'>=</span> <span class='id identifier rubyid_target'>target</span>
|
432
|
+
<span class='ivar'>@reason</span> <span class='op'>=</span> <span class='id identifier rubyid_reason'>reason</span>
|
433
|
+
<span class='ivar'>@message</span> <span class='op'>=</span> <span class='id identifier rubyid_message'>message</span>
|
434
|
+
<span class='kw'>end</span>
|
435
|
+
<span class='kw'>end</span></pre>
|
436
|
+
</td>
|
437
|
+
</tr>
|
438
|
+
</table>
|
439
|
+
</div>
|
440
|
+
|
441
|
+
|
442
|
+
<span id=""></span>
|
443
|
+
<div class="method_details ">
|
444
|
+
<h3 class="signature " id="reason-instance_method">
|
445
|
+
|
446
|
+
- (<tt>Symbol</tt>) <strong>reason</strong> <span class="extras">(readonly)</span>
|
447
|
+
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
|
452
|
+
</h3><div class="docstring">
|
453
|
+
<div class="discussion">
|
454
|
+
<p>The reason of failure.</p>
|
455
|
+
|
456
|
+
|
457
|
+
</div>
|
458
|
+
</div>
|
459
|
+
<div class="tags">
|
460
|
+
|
461
|
+
<p class="tag_title">Returns:</p>
|
462
|
+
<ul class="return">
|
463
|
+
|
464
|
+
<li>
|
465
|
+
|
466
|
+
|
467
|
+
<span class='type'>(<tt>Symbol</tt>)</span>
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
—
|
472
|
+
<div class='inline'><p>The reason of failure.</p>
|
473
|
+
</div>
|
474
|
+
|
475
|
+
</li>
|
476
|
+
|
477
|
+
</ul>
|
478
|
+
|
479
|
+
</div><table class="source_code">
|
480
|
+
<tr>
|
481
|
+
<td>
|
482
|
+
<pre class="lines">
|
483
|
+
|
484
|
+
|
485
|
+
17
|
486
|
+
18
|
487
|
+
19
|
488
|
+
20
|
489
|
+
21
|
490
|
+
22
|
491
|
+
23
|
492
|
+
24
|
493
|
+
25
|
494
|
+
26
|
495
|
+
27
|
496
|
+
28
|
497
|
+
29
|
498
|
+
30
|
499
|
+
31
|
500
|
+
32
|
501
|
+
33
|
502
|
+
34</pre>
|
503
|
+
</td>
|
504
|
+
<td>
|
505
|
+
<pre class="code"><span class="info file"># File 'lib/mamertes/application.rb', line 17</span>
|
506
|
+
|
507
|
+
<span class='kw'>class</span> <span class='const'>Error</span> <span class='op'><</span> <span class='const'>ArgumentError</span>
|
508
|
+
<span class='id identifier rubyid_attr_reader'>attr_reader</span> <span class='symbol'>:target</span>
|
509
|
+
<span class='id identifier rubyid_attr_reader'>attr_reader</span> <span class='symbol'>:reason</span>
|
510
|
+
<span class='id identifier rubyid_attr_reader'>attr_reader</span> <span class='symbol'>:message</span>
|
511
|
+
|
512
|
+
<span class='comment'># Initializes a new error
|
513
|
+
</span> <span class='comment'>#
|
514
|
+
</span> <span class='comment'># @param target [Object] The target of this error.
|
515
|
+
</span> <span class='comment'># @param reason [Symbol] The reason of failure.
|
516
|
+
</span> <span class='comment'># @param message [String] A human readable message.
|
517
|
+
</span> <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_target'>target</span><span class='comma'>,</span> <span class='id identifier rubyid_reason'>reason</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
518
|
+
<span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
519
|
+
|
520
|
+
<span class='ivar'>@target</span> <span class='op'>=</span> <span class='id identifier rubyid_target'>target</span>
|
521
|
+
<span class='ivar'>@reason</span> <span class='op'>=</span> <span class='id identifier rubyid_reason'>reason</span>
|
522
|
+
<span class='ivar'>@message</span> <span class='op'>=</span> <span class='id identifier rubyid_message'>message</span>
|
523
|
+
<span class='kw'>end</span>
|
524
|
+
<span class='kw'>end</span></pre>
|
525
|
+
</td>
|
526
|
+
</tr>
|
527
|
+
</table>
|
528
|
+
</div>
|
529
|
+
|
530
|
+
|
531
|
+
<span id=""></span>
|
532
|
+
<div class="method_details ">
|
533
|
+
<h3 class="signature " id="target-instance_method">
|
534
|
+
|
535
|
+
- (<tt>Object</tt>) <strong>target</strong> <span class="extras">(readonly)</span>
|
536
|
+
|
537
|
+
|
538
|
+
|
539
|
+
|
540
|
+
|
541
|
+
</h3><div class="docstring">
|
542
|
+
<div class="discussion">
|
543
|
+
<p>The target of this error.</p>
|
544
|
+
|
545
|
+
|
546
|
+
</div>
|
547
|
+
</div>
|
548
|
+
<div class="tags">
|
549
|
+
|
550
|
+
<p class="tag_title">Returns:</p>
|
551
|
+
<ul class="return">
|
552
|
+
|
553
|
+
<li>
|
554
|
+
|
555
|
+
|
556
|
+
<span class='type'>(<tt>Object</tt>)</span>
|
557
|
+
|
558
|
+
|
559
|
+
|
560
|
+
—
|
561
|
+
<div class='inline'><p>The target of this error.</p>
|
562
|
+
</div>
|
563
|
+
|
564
|
+
</li>
|
565
|
+
|
566
|
+
</ul>
|
567
|
+
|
568
|
+
</div><table class="source_code">
|
569
|
+
<tr>
|
570
|
+
<td>
|
571
|
+
<pre class="lines">
|
572
|
+
|
573
|
+
|
574
|
+
17
|
575
|
+
18
|
576
|
+
19
|
577
|
+
20
|
578
|
+
21
|
579
|
+
22
|
580
|
+
23
|
581
|
+
24
|
582
|
+
25
|
583
|
+
26
|
584
|
+
27
|
585
|
+
28
|
586
|
+
29
|
587
|
+
30
|
588
|
+
31
|
589
|
+
32
|
590
|
+
33
|
591
|
+
34</pre>
|
592
|
+
</td>
|
593
|
+
<td>
|
594
|
+
<pre class="code"><span class="info file"># File 'lib/mamertes/application.rb', line 17</span>
|
595
|
+
|
596
|
+
<span class='kw'>class</span> <span class='const'>Error</span> <span class='op'><</span> <span class='const'>ArgumentError</span>
|
597
|
+
<span class='id identifier rubyid_attr_reader'>attr_reader</span> <span class='symbol'>:target</span>
|
598
|
+
<span class='id identifier rubyid_attr_reader'>attr_reader</span> <span class='symbol'>:reason</span>
|
599
|
+
<span class='id identifier rubyid_attr_reader'>attr_reader</span> <span class='symbol'>:message</span>
|
600
|
+
|
601
|
+
<span class='comment'># Initializes a new error
|
602
|
+
</span> <span class='comment'>#
|
603
|
+
</span> <span class='comment'># @param target [Object] The target of this error.
|
604
|
+
</span> <span class='comment'># @param reason [Symbol] The reason of failure.
|
605
|
+
</span> <span class='comment'># @param message [String] A human readable message.
|
606
|
+
</span> <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_target'>target</span><span class='comma'>,</span> <span class='id identifier rubyid_reason'>reason</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
607
|
+
<span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
608
|
+
|
609
|
+
<span class='ivar'>@target</span> <span class='op'>=</span> <span class='id identifier rubyid_target'>target</span>
|
610
|
+
<span class='ivar'>@reason</span> <span class='op'>=</span> <span class='id identifier rubyid_reason'>reason</span>
|
611
|
+
<span class='ivar'>@message</span> <span class='op'>=</span> <span class='id identifier rubyid_message'>message</span>
|
612
|
+
<span class='kw'>end</span>
|
613
|
+
<span class='kw'>end</span></pre>
|
614
|
+
</td>
|
615
|
+
</tr>
|
616
|
+
</table>
|
617
|
+
</div>
|
618
|
+
|
619
|
+
</div>
|
620
|
+
|
621
|
+
|
622
|
+
</div>
|
623
|
+
|
624
|
+
<div id="footer">
|
625
|
+
Generated on Sat Aug 10 16:23:10 2013 by
|
626
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
627
|
+
0.8.6.2 (ruby-1.9.3).
|
628
|
+
</div>
|
629
|
+
|
630
|
+
</body>
|
631
|
+
</html>
|