como 0.0.2 → 0.1.0
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.
- data/CHANGELOG.rdoc +12 -0
- data/README.rdoc +11 -5
- data/Rakefile +6 -1
- data/doc/Como/ArgsParseState.html +912 -0
- data/doc/Como/ComoCommon.html +305 -0
- data/doc/Como/MainOpt.html +636 -0
- data/doc/Como/MasterOpt.html +636 -0
- data/doc/Como/Opt/ErrorWithData.html +304 -0
- data/doc/Como/Opt/InvalidOption.html +158 -0
- data/doc/Como/Opt/MissingArgument.html +158 -0
- data/doc/Como/Opt.html +6098 -0
- data/doc/Como/RuleCheck.html +933 -0
- data/doc/Como/RuleDisplay.html +1193 -0
- data/doc/Como/Spec.html +1750 -0
- data/doc/Como.html +625 -0
- data/doc/_index.html +242 -0
- data/doc/class_list.html +53 -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.CHANGELOG.html +90 -0
- data/doc/file.README.html +94 -0
- data/doc/file.como.html +1962 -0
- data/doc/file_list.html +58 -0
- data/doc/frames.html +28 -0
- data/doc/index.html +94 -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 +838 -0
- data/doc/top-level-namespace.html +112 -0
- data/lib/como.rb +1660 -661
- data/test/como_compatible +37 -0
- data/test/como_config +44 -0
- data/test/como_options +36 -0
- data/test/como_queries +44 -0
- data/test/como_rule_1 +28 -0
- data/test/como_rule_2 +28 -0
- data/test/como_subcmd +72 -0
- data/test/como_subcmd_config +88 -0
- data/test/golden/compatible.txt +438 -0
- data/test/golden/config.txt +319 -0
- data/test/golden/options.txt +438 -0
- data/test/golden/queries.txt +78 -0
- data/test/golden/rule_1.txt +454 -0
- data/test/golden/rule_2.txt +476 -0
- data/test/golden/subcmd.txt +360 -0
- data/test/golden/subcmd_config.txt +534 -0
- data/test/test_como.rb +22 -328
- data/test/test_compatible +28 -0
- data/test/test_config +12 -0
- data/test/test_options +28 -0
- data/test/test_queries +7 -0
- data/test/test_rule_1 +27 -0
- data/test/test_rule_2 +27 -0
- data/test/test_subcmd +30 -0
- data/test/test_subcmd_config +31 -0
- metadata +62 -6
@@ -0,0 +1,636 @@
|
|
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: Como::MasterOpt
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.6.1
|
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 (M)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../Como.html" title="Como (module)">Como</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">MasterOpt</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: Como::MasterOpt
|
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"><span class='object_link'><a href="Opt.html" title="Como::Opt (class)">Opt</a></span></span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next"><span class='object_link'><a href="ComoCommon.html" title="Como::ComoCommon (class)">ComoCommon</a></span></li>
|
82
|
+
|
83
|
+
<li class="next"><span class='object_link'><a href="Opt.html" title="Como::Opt (class)">Opt</a></span></li>
|
84
|
+
|
85
|
+
<li class="next">Como::MasterOpt</li>
|
86
|
+
|
87
|
+
</ul>
|
88
|
+
<a href="#" class="inheritanceTree">show all</a>
|
89
|
+
|
90
|
+
</dd>
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
<dt class="r2 last">Defined in:</dt>
|
101
|
+
<dd class="r2 last">lib/como.rb</dd>
|
102
|
+
|
103
|
+
</dl>
|
104
|
+
<div class="clear"></div>
|
105
|
+
|
106
|
+
<h2>Overview</h2><div class="docstring">
|
107
|
+
<div class="discussion">
|
108
|
+
|
109
|
+
<p>Specialized Opt class for program (i.e. highest level subcommand).</p>
|
110
|
+
|
111
|
+
|
112
|
+
</div>
|
113
|
+
</div>
|
114
|
+
<div class="tags">
|
115
|
+
|
116
|
+
|
117
|
+
</div>
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
122
|
+
<ul class="summary">
|
123
|
+
|
124
|
+
<li class="public ">
|
125
|
+
<span class="summary_signature">
|
126
|
+
|
127
|
+
<a href="#author-instance_method" title="#author (instance method)">- (Object) <strong>author</strong> </a>
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
</span>
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
<span class="note title readonly">readonly</span>
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
<span class="summary_desc"><div class='inline'>
|
147
|
+
<p>Program author and year (date).</p>
|
148
|
+
</div></span>
|
149
|
+
|
150
|
+
</li>
|
151
|
+
|
152
|
+
|
153
|
+
<li class="public ">
|
154
|
+
<span class="summary_signature">
|
155
|
+
|
156
|
+
<a href="#external-instance_method" title="#external (instance method)">- (Object) <strong>external</strong> </a>
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
</span>
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
<span class="summary_desc"><div class='inline'>
|
174
|
+
<p>Program external arguments:.</p>
|
175
|
+
</div></span>
|
176
|
+
|
177
|
+
</li>
|
178
|
+
|
179
|
+
|
180
|
+
<li class="public ">
|
181
|
+
<span class="summary_signature">
|
182
|
+
|
183
|
+
<a href="#year-instance_method" title="#year (instance method)">- (Object) <strong>year</strong> </a>
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
</span>
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
<span class="note title readonly">readonly</span>
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
<span class="summary_desc"><div class='inline'>
|
203
|
+
<p>Program author and year (date).</p>
|
204
|
+
</div></span>
|
205
|
+
|
206
|
+
</li>
|
207
|
+
|
208
|
+
|
209
|
+
</ul>
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Opt.html" title="Como::Opt (class)">Opt</a></span></h3>
|
216
|
+
<p class="inherited"><span class='object_link'><a href="Opt.html#config-instance_method" title="Como::Opt#config (method)">#config</a></span>, <span class='object_link'><a href="Opt.html#doc-instance_method" title="Como::Opt#doc (method)">#doc</a></span>, <span class='object_link'><a href="Opt.html#given-instance_method" title="Como::Opt#given (method)">#given</a></span>, <span class='object_link'><a href="Opt.html#longOpt-instance_method" title="Como::Opt#longOpt (method)">#longOpt</a></span>, <span class='object_link'><a href="Opt.html#name-instance_method" title="Como::Opt#name (method)">#name</a></span>, <span class='object_link'><a href="Opt.html#opt-instance_method" title="Como::Opt#opt (method)">#opt</a></span>, <span class='object_link'><a href="Opt.html#parent-instance_method" title="Como::Opt#parent (method)">#parent</a></span>, <span class='object_link'><a href="Opt.html#rules-instance_method" title="Como::Opt#rules (method)">#rules</a></span>, <span class='object_link'><a href="Opt.html#silent-instance_method" title="Como::Opt#silent (method)">#silent</a></span>, <span class='object_link'><a href="Opt.html#subcmd-instance_method" title="Como::Opt#subcmd (method)">#subcmd</a></span>, <span class='object_link'><a href="Opt.html#subopt-instance_method" title="Como::Opt#subopt (method)">#subopt</a></span>, <span class='object_link'><a href="Opt.html#type-instance_method" title="Como::Opt#type (method)">#type</a></span>, <span class='object_link'><a href="Opt.html#value-instance_method" title="Como::Opt#value (method)">#value</a></span></p>
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
<h2>
|
221
|
+
Instance Method Summary
|
222
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
223
|
+
</h2>
|
224
|
+
|
225
|
+
<ul class="summary">
|
226
|
+
|
227
|
+
<li class="public ">
|
228
|
+
<span class="summary_signature">
|
229
|
+
|
230
|
+
<a href="#fullCommand-instance_method" title="#fullCommand (instance method)">- (Object) <strong>fullCommand</strong> </a>
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
</span>
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
<span class="summary_desc"><div class='inline'>
|
245
|
+
<p>Full command name.</p>
|
246
|
+
</div></span>
|
247
|
+
|
248
|
+
</li>
|
249
|
+
|
250
|
+
|
251
|
+
<li class="public ">
|
252
|
+
<span class="summary_signature">
|
253
|
+
|
254
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (MasterOpt) <strong>initialize</strong>(author, year, name, opt, type, doc, value = nil) </a>
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
</span>
|
259
|
+
|
260
|
+
|
261
|
+
<span class="note title constructor">constructor</span>
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
<span class="summary_desc"><div class='inline'>
|
271
|
+
<p>A new instance of MasterOpt.</p>
|
272
|
+
</div></span>
|
273
|
+
|
274
|
+
</li>
|
275
|
+
|
276
|
+
|
277
|
+
<li class="public ">
|
278
|
+
<span class="summary_signature">
|
279
|
+
|
280
|
+
<a href="#usageCommand-instance_method" title="#usageCommand (instance method)">- (Object) <strong>usageCommand</strong> </a>
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
</span>
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
<span class="summary_desc"><div class='inline'>
|
295
|
+
<p>Usage printout for command.</p>
|
296
|
+
</div></span>
|
297
|
+
|
298
|
+
</li>
|
299
|
+
|
300
|
+
|
301
|
+
</ul>
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Opt.html" title="Como::Opt (class)">Opt</a></span></h3>
|
314
|
+
<p class="inherited"><span class='object_link'><a href="Opt.html#%5B%5D-class_method" title="Como::Opt.[] (method)">[]</a></span>, <span class='object_link'><a href="Opt.html#%5B%5D-instance_method" title="Como::Opt#[] (method)">#[]</a></span>, <span class='object_link'><a href="Opt.html#addOpt-class_method" title="Como::Opt.addOpt (method)">addOpt</a></span>, <span class='object_link'><a href="Opt.html#apply-instance_method" title="Como::Opt#apply (method)">#apply</a></span>, <span class='object_link'><a href="Opt.html#applyConfig-instance_method" title="Como::Opt#applyConfig (method)">#applyConfig</a></span>, <span class='object_link'><a href="Opt.html#argById-instance_method" title="Como::Opt#argById (method)">#argById</a></span>, <span class='object_link'><a href="Opt.html#argByName-instance_method" title="Como::Opt#argByName (method)">#argByName</a></span>, <span class='object_link'><a href="Opt.html#author-class_method" title="Como::Opt.author (method)">author</a></span>, <span class='object_link'><a href="Opt.html#check-instance_method" title="Como::Opt#check (method)">#check</a></span>, <span class='object_link'><a href="Opt.html#checkAlso-instance_method" title="Como::Opt#checkAlso (method)">#checkAlso</a></span>, <span class='object_link'><a href="Opt.html#checkMissing-instance_method" title="Como::Opt#checkMissing (method)">#checkMissing</a></span>, <span class='object_link'><a href="Opt.html#checkRule-instance_method" title="Como::Opt#checkRule (method)">#checkRule</a></span>, <span class='object_link'><a href="Opt.html#cmdline-instance_method" title="Como::Opt#cmdline (method)">#cmdline</a></span>, <span class='object_link'><a href="Opt.html#configOverlay-class_method" title="Como::Opt.configOverlay (method)">configOverlay</a></span>, <span class='object_link'><a href="Opt.html#current-class_method" title="Como::Opt.current (method)">current</a></span>, <span class='object_link'><a href="Opt.html#default-instance_method" title="Como::Opt#default (method)">#default</a></span>, <span class='object_link'><a href="Opt.html#default-class_method" title="Como::Opt.default (method)">default</a></span>, <span class='object_link'><a href="Opt.html#defaultOpt-class_method" title="Como::Opt.defaultOpt (method)">defaultOpt</a></span>, <span class='object_link'><a href="Opt.html#each-class_method" title="Como::Opt.each (method)">each</a></span>, <span class='object_link'><a href="Opt.html#each-instance_method" title="Como::Opt#each (method)">#each</a></span>, <span class='object_link'><a href="Opt.html#each_given-class_method" title="Como::Opt.each_given (method)">each_given</a></span>, <span class='object_link'><a href="Opt.html#each_given-instance_method" title="Como::Opt#each_given (method)">#each_given</a></span>, <span class='object_link'><a href="Opt.html#error-instance_method" title="Como::Opt#error (method)">#error</a></span>, <span class='object_link'><a href="Opt.html#exclusive-class_method" title="Como::Opt.exclusive (method)">exclusive</a></span>, <span class='object_link'><a href="Opt.html#external-class_method" title="Como::Opt.external (method)">external</a></span>, <span class='object_link'><a href="Opt.html#findOpt-class_method" title="Como::Opt.findOpt (method)">findOpt</a></span>, <span class='object_link'><a href="Opt.html#findOpt-instance_method" title="Como::Opt#findOpt (method)">#findOpt</a></span>, <span class='object_link'><a href="Opt.html#full-class_method" title="Como::Opt.full (method)">full</a></span>, <span class='object_link'><a href="Opt.html#givenCount-instance_method" title="Como::Opt#givenCount (method)">#givenCount</a></span>, <span class='object_link'><a href="Opt.html#givenSubcmd-instance_method" title="Como::Opt#givenSubcmd (method)">#givenSubcmd</a></span>, <span class='object_link'><a href="Opt.html#hasArg-instance_method" title="Como::Opt#hasArg (method)">#hasArg</a></span>, <span class='object_link'><a href="Opt.html#hasMany-instance_method" title="Como::Opt#hasMany (method)">#hasMany</a></span>, <span class='object_link'><a href="Opt.html#isRequired-instance_method" title="Como::Opt#isRequired (method)">#isRequired</a></span>, <span class='object_link'><a href="Opt.html#isSwitch-instance_method" title="Como::Opt#isSwitch (method)">#isSwitch</a></span>, <span class='object_link'><a href="Opt.html#master-class_method" title="Como::Opt.master (method)">master</a></span>, <span class='object_link'><a href="Opt.html#params-instance_method" title="Como::Opt#params (method)">#params</a></span>, <span class='object_link'><a href="Opt.html#parse-instance_method" title="Como::Opt#parse (method)">#parse</a></span>, <span class='object_link'><a href="Opt.html#progname-class_method" title="Como::Opt.progname (method)">progname</a></span>, <span class='object_link'><a href="Opt.html#reset-class_method" title="Como::Opt.reset (method)">reset</a></span>, <span class='object_link'><a href="Opt.html#setMaster-class_method" title="Como::Opt.setMaster (method)">setMaster</a></span>, <span class='object_link'><a href="Opt.html#setRuleCheck-instance_method" title="Como::Opt#setRuleCheck (method)">#setRuleCheck</a></span>, <span class='object_link'><a href="Opt.html#setSubcmd-class_method" title="Como::Opt.setSubcmd (method)">setSubcmd</a></span>, <span class='object_link'><a href="Opt.html#setSubopt-instance_method" title="Como::Opt#setSubopt (method)">#setSubopt</a></span>, <span class='object_link'><a href="Opt.html#setUsageFooter-instance_method" title="Como::Opt#setUsageFooter (method)">#setUsageFooter</a></span>, <span class='object_link'><a href="Opt.html#setUsageHeader-instance_method" title="Como::Opt#setUsageHeader (method)">#setUsageHeader</a></span>, <span class='object_link'><a href="Opt.html#silent%3F-instance_method" title="Como::Opt#silent? (method)">#silent?</a></span>, <span class='object_link'><a href="Opt.html#suball-instance_method" title="Como::Opt#suball (method)">#suball</a></span>, <span class='object_link'><a href="Opt.html#subcmd-class_method" title="Como::Opt.subcmd (method)">subcmd</a></span>, <span class='object_link'><a href="Opt.html#suboptDoc-instance_method" title="Como::Opt#suboptDoc (method)">#suboptDoc</a></span>, <span class='object_link'><a href="Opt.html#switch-class_method" title="Como::Opt.switch (method)">switch</a></span>, <span class='object_link'><a href="Opt.html#usage-instance_method" title="Como::Opt#usage (method)">#usage</a></span>, <span class='object_link'><a href="Opt.html#usageIfHelp-instance_method" title="Como::Opt#usageIfHelp (method)">#usageIfHelp</a></span>, <span class='object_link'><a href="Opt.html#usageNormal-instance_method" title="Como::Opt#usageNormal (method)">#usageNormal</a></span>, <span class='object_link'><a href="Opt.html#year-class_method" title="Como::Opt.year (method)">year</a></span>, <span class='object_link'><a href="Opt.html#%7E-instance_method" title="Como::Opt#~ (method)">#~</a></span></p>
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="ComoCommon.html" title="Como::ComoCommon (class)">ComoCommon</a></span></h3>
|
325
|
+
<p class="inherited"><span class='object_link'><a href="ComoCommon.html#getIo-class_method" title="Como::ComoCommon.getIo (method)">getIo</a></span>, <span class='object_link'><a href="ComoCommon.html#setIo-class_method" title="Como::ComoCommon.setIo (method)">setIo</a></span></p>
|
326
|
+
<div id="constructor_details" class="method_details_list">
|
327
|
+
<h2>Constructor Details</h2>
|
328
|
+
|
329
|
+
<div class="method_details first">
|
330
|
+
<h3 class="signature first" id="initialize-instance_method">
|
331
|
+
|
332
|
+
- (<tt><span class='object_link'><a href="" title="Como::MasterOpt (class)">MasterOpt</a></span></tt>) <strong>initialize</strong>(author, year, name, opt, type, doc, value = nil)
|
333
|
+
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
|
338
|
+
</h3><div class="docstring">
|
339
|
+
<div class="discussion">
|
340
|
+
|
341
|
+
<p>A new instance of MasterOpt</p>
|
342
|
+
|
343
|
+
|
344
|
+
</div>
|
345
|
+
</div>
|
346
|
+
<div class="tags">
|
347
|
+
|
348
|
+
|
349
|
+
</div><table class="source_code">
|
350
|
+
<tr>
|
351
|
+
<td>
|
352
|
+
<pre class="lines">
|
353
|
+
|
354
|
+
|
355
|
+
1695
|
356
|
+
1696
|
357
|
+
1697
|
358
|
+
1698
|
359
|
+
1699
|
360
|
+
1700
|
361
|
+
1701
|
362
|
+
1702</pre>
|
363
|
+
</td>
|
364
|
+
<td>
|
365
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1695</span>
|
366
|
+
|
367
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span> <span class='id identifier rubyid_author'>author</span><span class='comma'>,</span> <span class='id identifier rubyid_year'>year</span><span class='comma'>,</span>
|
368
|
+
<span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_opt'>opt</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_doc'>doc</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
|
369
|
+
<span class='ivar'>@author</span> <span class='op'>=</span> <span class='id identifier rubyid_author'>author</span>
|
370
|
+
<span class='ivar'>@year</span> <span class='op'>=</span> <span class='id identifier rubyid_year'>year</span>
|
371
|
+
<span class='ivar'>@external</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
372
|
+
<span class='kw'>super</span><span class='lparen'>(</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_opt'>opt</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_doc'>doc</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
|
373
|
+
|
374
|
+
<span class='kw'>end</span></pre>
|
375
|
+
</td>
|
376
|
+
</tr>
|
377
|
+
</table>
|
378
|
+
</div>
|
379
|
+
|
380
|
+
</div>
|
381
|
+
|
382
|
+
<div id="instance_attr_details" class="attr_details">
|
383
|
+
<h2>Instance Attribute Details</h2>
|
384
|
+
|
385
|
+
|
386
|
+
<span id=""></span>
|
387
|
+
<div class="method_details first">
|
388
|
+
<h3 class="signature first" id="author-instance_method">
|
389
|
+
|
390
|
+
- (<tt>Object</tt>) <strong>author</strong> <span class="extras">(readonly)</span>
|
391
|
+
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
|
396
|
+
</h3><div class="docstring">
|
397
|
+
<div class="discussion">
|
398
|
+
|
399
|
+
<p>Program author and year (date).</p>
|
400
|
+
|
401
|
+
|
402
|
+
</div>
|
403
|
+
</div>
|
404
|
+
<div class="tags">
|
405
|
+
|
406
|
+
|
407
|
+
</div><table class="source_code">
|
408
|
+
<tr>
|
409
|
+
<td>
|
410
|
+
<pre class="lines">
|
411
|
+
|
412
|
+
|
413
|
+
1692
|
414
|
+
1693
|
415
|
+
1694</pre>
|
416
|
+
</td>
|
417
|
+
<td>
|
418
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1692</span>
|
419
|
+
|
420
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_author'>author</span>
|
421
|
+
<span class='ivar'>@author</span>
|
422
|
+
<span class='kw'>end</span></pre>
|
423
|
+
</td>
|
424
|
+
</tr>
|
425
|
+
</table>
|
426
|
+
</div>
|
427
|
+
|
428
|
+
|
429
|
+
<span id="external=-instance_method"></span>
|
430
|
+
<div class="method_details ">
|
431
|
+
<h3 class="signature " id="external-instance_method">
|
432
|
+
|
433
|
+
- (<tt>Object</tt>) <strong>external</strong>
|
434
|
+
|
435
|
+
|
436
|
+
|
437
|
+
|
438
|
+
|
439
|
+
</h3><div class="docstring">
|
440
|
+
<div class="discussion">
|
441
|
+
|
442
|
+
<p>Program external arguments:</p>
|
443
|
+
|
444
|
+
|
445
|
+
</div>
|
446
|
+
</div>
|
447
|
+
<div class="tags">
|
448
|
+
|
449
|
+
|
450
|
+
</div><table class="source_code">
|
451
|
+
<tr>
|
452
|
+
<td>
|
453
|
+
<pre class="lines">
|
454
|
+
|
455
|
+
|
456
|
+
1689
|
457
|
+
1690
|
458
|
+
1691</pre>
|
459
|
+
</td>
|
460
|
+
<td>
|
461
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1689</span>
|
462
|
+
|
463
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_external'>external</span>
|
464
|
+
<span class='ivar'>@external</span>
|
465
|
+
<span class='kw'>end</span></pre>
|
466
|
+
</td>
|
467
|
+
</tr>
|
468
|
+
</table>
|
469
|
+
</div>
|
470
|
+
|
471
|
+
|
472
|
+
<span id=""></span>
|
473
|
+
<div class="method_details ">
|
474
|
+
<h3 class="signature " id="year-instance_method">
|
475
|
+
|
476
|
+
- (<tt>Object</tt>) <strong>year</strong> <span class="extras">(readonly)</span>
|
477
|
+
|
478
|
+
|
479
|
+
|
480
|
+
|
481
|
+
|
482
|
+
</h3><div class="docstring">
|
483
|
+
<div class="discussion">
|
484
|
+
|
485
|
+
<p>Program author and year (date).</p>
|
486
|
+
|
487
|
+
|
488
|
+
</div>
|
489
|
+
</div>
|
490
|
+
<div class="tags">
|
491
|
+
|
492
|
+
|
493
|
+
</div><table class="source_code">
|
494
|
+
<tr>
|
495
|
+
<td>
|
496
|
+
<pre class="lines">
|
497
|
+
|
498
|
+
|
499
|
+
1692
|
500
|
+
1693
|
501
|
+
1694</pre>
|
502
|
+
</td>
|
503
|
+
<td>
|
504
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1692</span>
|
505
|
+
|
506
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_year'>year</span>
|
507
|
+
<span class='ivar'>@year</span>
|
508
|
+
<span class='kw'>end</span></pre>
|
509
|
+
</td>
|
510
|
+
</tr>
|
511
|
+
</table>
|
512
|
+
</div>
|
513
|
+
|
514
|
+
</div>
|
515
|
+
|
516
|
+
|
517
|
+
<div id="instance_method_details" class="method_details_list">
|
518
|
+
<h2>Instance Method Details</h2>
|
519
|
+
|
520
|
+
|
521
|
+
<div class="method_details first">
|
522
|
+
<h3 class="signature first" id="fullCommand-instance_method">
|
523
|
+
|
524
|
+
- (<tt>Object</tt>) <strong>fullCommand</strong>
|
525
|
+
|
526
|
+
|
527
|
+
|
528
|
+
|
529
|
+
|
530
|
+
</h3><div class="docstring">
|
531
|
+
<div class="discussion">
|
532
|
+
|
533
|
+
<p>Full command name.</p>
|
534
|
+
|
535
|
+
|
536
|
+
</div>
|
537
|
+
</div>
|
538
|
+
<div class="tags">
|
539
|
+
|
540
|
+
|
541
|
+
</div><table class="source_code">
|
542
|
+
<tr>
|
543
|
+
<td>
|
544
|
+
<pre class="lines">
|
545
|
+
|
546
|
+
|
547
|
+
1706
|
548
|
+
1707
|
549
|
+
1708</pre>
|
550
|
+
</td>
|
551
|
+
<td>
|
552
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1706</span>
|
553
|
+
|
554
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_fullCommand'>fullCommand</span>
|
555
|
+
<span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_progname'>progname</span>
|
556
|
+
<span class='kw'>end</span></pre>
|
557
|
+
</td>
|
558
|
+
</tr>
|
559
|
+
</table>
|
560
|
+
</div>
|
561
|
+
|
562
|
+
<div class="method_details ">
|
563
|
+
<h3 class="signature " id="usageCommand-instance_method">
|
564
|
+
|
565
|
+
- (<tt>Object</tt>) <strong>usageCommand</strong>
|
566
|
+
|
567
|
+
|
568
|
+
|
569
|
+
|
570
|
+
|
571
|
+
</h3><div class="docstring">
|
572
|
+
<div class="discussion">
|
573
|
+
|
574
|
+
<p>Usage printout for command.</p>
|
575
|
+
|
576
|
+
|
577
|
+
</div>
|
578
|
+
</div>
|
579
|
+
<div class="tags">
|
580
|
+
|
581
|
+
|
582
|
+
</div><table class="source_code">
|
583
|
+
<tr>
|
584
|
+
<td>
|
585
|
+
<pre class="lines">
|
586
|
+
|
587
|
+
|
588
|
+
1712
|
589
|
+
1713
|
590
|
+
1714
|
591
|
+
1715
|
592
|
+
1716
|
593
|
+
1717
|
594
|
+
1718
|
595
|
+
1719
|
596
|
+
1720
|
597
|
+
1721
|
598
|
+
1722
|
599
|
+
1723
|
600
|
+
1724
|
601
|
+
1725</pre>
|
602
|
+
</td>
|
603
|
+
<td>
|
604
|
+
<pre class="code"><span class="info file"># File 'lib/como.rb', line 1712</span>
|
605
|
+
|
606
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_usageCommand'>usageCommand</span>
|
607
|
+
<span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>
|
608
|
+
Usage:
|
609
|
+
</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_fullCommand'>fullCommand</span><span class='rbrace'>}</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_cmdline'>cmdline</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> </span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='rbrace'>}</span><span class='tstring_content'>
|
610
|
+
|
611
|
+
</span><span class='tstring_end'>"</span></span>
|
612
|
+
<span class='id identifier rubyid_str'>str</span> <span class='op'>+=</span> <span class='id identifier rubyid_suboptDoc'>suboptDoc</span>
|
613
|
+
|
614
|
+
<span class='id identifier rubyid_str'>str</span> <span class='op'>+=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>
|
615
|
+
|
616
|
+
Copyright (c) </span><span class='embexpr_beg'>#{</span><span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_year'>year</span><span class='rbrace'>}</span><span class='tstring_content'> by </span><span class='embexpr_beg'>#{</span><span class='const'>Opt</span><span class='period'>.</span><span class='id identifier rubyid_author'>author</span><span class='rbrace'>}</span><span class='tstring_content'>
|
617
|
+
|
618
|
+
</span><span class='tstring_end'>"</span></span>
|
619
|
+
<span class='kw'>end</span></pre>
|
620
|
+
</td>
|
621
|
+
</tr>
|
622
|
+
</table>
|
623
|
+
</div>
|
624
|
+
|
625
|
+
</div>
|
626
|
+
|
627
|
+
</div>
|
628
|
+
|
629
|
+
<div id="footer">
|
630
|
+
Generated on Wed Nov 27 20:20:27 2013 by
|
631
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
632
|
+
0.8.6.1 (ruby-1.9.3).
|
633
|
+
</div>
|
634
|
+
|
635
|
+
</body>
|
636
|
+
</html>
|