term_utils 0.3.2 → 0.5.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -2
- data/COPYING +3 -3
- data/README.md +51 -16
- data/Rakefile +6 -0
- data/doc/TermUtils/AP/Article.html +57 -55
- data/doc/TermUtils/AP/ArticleResult.html +584 -0
- data/doc/TermUtils/AP/Flag.html +295 -78
- data/doc/TermUtils/AP/Parameter.html +891 -103
- data/doc/TermUtils/AP/ParameterResult.html +980 -0
- data/doc/TermUtils/{FF/Cursor/Context.html → AP/ParameterWalkerHooks.html} +60 -60
- data/doc/TermUtils/AP/ParseError.html +651 -19
- data/doc/TermUtils/AP/Parser.html +181 -121
- data/doc/TermUtils/AP/Result.html +201 -528
- data/doc/TermUtils/AP/Syntax.html +103 -393
- data/doc/TermUtils/AP/SyntaxError.html +9 -91
- data/doc/TermUtils/AP/Walker.html +686 -0
- data/doc/TermUtils/AP.html +49 -160
- data/doc/TermUtils/FF/Config.html +203 -35
- data/doc/TermUtils/FF/Context.html +585 -0
- data/doc/TermUtils/FF/Entry.html +626 -0
- data/doc/TermUtils/FF/Finder.html +850 -0
- data/doc/TermUtils/FF/{Cursor.html → FinderEntry.html} +473 -211
- data/doc/TermUtils/FF/FinderQuery.html +946 -0
- data/doc/TermUtils/FF/Query.html +402 -70
- data/doc/TermUtils/FF.html +135 -11
- data/doc/TermUtils/PropertyTreeNode.html +304 -190
- data/doc/TermUtils/Tab/Column.html +98 -96
- data/doc/TermUtils/Tab/Header.html +30 -30
- data/doc/TermUtils/Tab/Holder.html +81 -81
- data/doc/TermUtils/Tab/Printer.html +43 -43
- data/doc/TermUtils/Tab/Table.html +124 -128
- data/doc/TermUtils/Tab/TableError.html +7 -89
- data/doc/TermUtils/Tab.html +93 -86
- data/doc/TermUtils.html +10 -10
- data/doc/_index.html +62 -42
- data/doc/class_list.html +3 -3
- data/doc/css/style.css +3 -2
- data/doc/file.README.html +63 -26
- data/doc/file_list.html +2 -2
- data/doc/frames.html +2 -2
- data/doc/index.html +63 -26
- data/doc/js/app.js +14 -3
- data/doc/method_list.html +708 -236
- data/doc/top-level-namespace.html +7 -7
- data/lib/term_utils/ap/article.rb +15 -9
- data/lib/term_utils/ap/flag.rb +37 -20
- data/lib/term_utils/ap/parameter.rb +88 -19
- data/lib/term_utils/ap/parser.rb +143 -116
- data/lib/term_utils/ap/result.rb +208 -161
- data/lib/term_utils/ap/syntax.rb +53 -69
- data/lib/term_utils/ap.rb +79 -24
- data/lib/term_utils/ff/config.rb +22 -10
- data/lib/term_utils/{ap/no_such_value_error.rb → ff/entry.rb} +26 -8
- data/lib/term_utils/ff/finder.rb +255 -0
- data/lib/term_utils/ff/query.rb +94 -17
- data/lib/term_utils/ff.rb +12 -2
- data/lib/term_utils/property_tree_node.rb +47 -19
- data/lib/term_utils/tab.rb +106 -61
- data/lib/term_utils.rb +8 -1
- data/term_utils.gemspec +4 -4
- metadata +18 -17
- data/doc/TermUtils/AP/Element.html +0 -1025
- data/doc/TermUtils/AP/Level.html +0 -638
- data/doc/TermUtils/AP/NoSuchValueError.html +0 -217
- data/lib/term_utils/ap/element.rb +0 -78
- data/lib/term_utils/ap/level.rb +0 -57
- data/lib/term_utils/ap/parse_error.rb +0 -27
- data/lib/term_utils/ap/syntax_error.rb +0 -27
- data/lib/term_utils/ff/cursor.rb +0 -153
data/doc/TermUtils/AP/Flag.html
CHANGED
@@ -6,15 +6,15 @@
|
|
6
6
|
<title>
|
7
7
|
Class: TermUtils::AP::Flag
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.34
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" />
|
14
14
|
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css"
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" />
|
16
16
|
|
17
|
-
<script type="text/javascript"
|
17
|
+
<script type="text/javascript">
|
18
18
|
pathId = "TermUtils::AP::Flag";
|
19
19
|
relpath = '../../';
|
20
20
|
</script>
|
@@ -129,6 +129,8 @@
|
|
129
129
|
|
130
130
|
|
131
131
|
|
132
|
+
<span class="note title readonly">readonly</span>
|
133
|
+
|
132
134
|
|
133
135
|
|
134
136
|
|
@@ -138,7 +140,7 @@
|
|
138
140
|
|
139
141
|
|
140
142
|
<span class="summary_desc"><div class='inline'>
|
141
|
-
<p
|
143
|
+
<p>‘:long`, `:short`.</p>
|
142
144
|
</div></span>
|
143
145
|
|
144
146
|
</li>
|
@@ -156,6 +158,8 @@
|
|
156
158
|
|
157
159
|
|
158
160
|
|
161
|
+
<span class="note title readonly">readonly</span>
|
162
|
+
|
159
163
|
|
160
164
|
|
161
165
|
|
@@ -185,7 +189,31 @@
|
|
185
189
|
<li class="public ">
|
186
190
|
<span class="summary_signature">
|
187
191
|
|
188
|
-
<a href="
|
192
|
+
<a href="#==-instance_method" title="#== (instance method)">#<strong>==</strong>(other) ⇒ Object </a>
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
</span>
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
<span class="summary_desc"><div class='inline'>
|
207
|
+
<p>Tests whether this one is equal to a given Flag.</p>
|
208
|
+
</div></span>
|
209
|
+
|
210
|
+
</li>
|
211
|
+
|
212
|
+
|
213
|
+
<li class="public ">
|
214
|
+
<span class="summary_signature">
|
215
|
+
|
216
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(label, flavor) ⇒ Flag </a>
|
189
217
|
|
190
218
|
|
191
219
|
|
@@ -205,6 +233,54 @@
|
|
205
233
|
<p>Constructs a new Flag.</p>
|
206
234
|
</div></span>
|
207
235
|
|
236
|
+
</li>
|
237
|
+
|
238
|
+
|
239
|
+
<li class="public ">
|
240
|
+
<span class="summary_signature">
|
241
|
+
|
242
|
+
<a href="#long%3F-instance_method" title="#long? (instance method)">#<strong>long?</strong> ⇒ Boolean </a>
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
</span>
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
<span class="summary_desc"><div class='inline'>
|
257
|
+
<p>Tests whether this one represents a long flag.</p>
|
258
|
+
</div></span>
|
259
|
+
|
260
|
+
</li>
|
261
|
+
|
262
|
+
|
263
|
+
<li class="public ">
|
264
|
+
<span class="summary_signature">
|
265
|
+
|
266
|
+
<a href="#short%3F-instance_method" title="#short? (instance method)">#<strong>short?</strong> ⇒ Boolean </a>
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
</span>
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
<span class="summary_desc"><div class='inline'>
|
281
|
+
<p>Tests whether this one represents a short flag.</p>
|
282
|
+
</div></span>
|
283
|
+
|
208
284
|
</li>
|
209
285
|
|
210
286
|
|
@@ -241,7 +317,7 @@
|
|
241
317
|
<div class="method_details first">
|
242
318
|
<h3 class="signature first" id="initialize-instance_method">
|
243
319
|
|
244
|
-
#<strong>initialize</strong>(
|
320
|
+
#<strong>initialize</strong>(label, flavor) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::AP::Flag (class)">Flag</a></span></tt>
|
245
321
|
|
246
322
|
|
247
323
|
|
@@ -261,50 +337,46 @@
|
|
261
337
|
|
262
338
|
<li>
|
263
339
|
|
264
|
-
<span class='name'>
|
340
|
+
<span class='name'>label</span>
|
265
341
|
|
266
342
|
|
267
|
-
<span class='type'>(<tt>
|
343
|
+
<span class='type'>(<tt>String</tt>)</span>
|
344
|
+
|
268
345
|
|
269
346
|
|
270
|
-
|
347
|
+
</li>
|
348
|
+
|
349
|
+
<li>
|
271
350
|
|
351
|
+
<span class='name'>flavor</span>
|
352
|
+
|
353
|
+
|
354
|
+
<span class='type'>(<tt>Symbol</tt>)</span>
|
355
|
+
|
356
|
+
|
357
|
+
|
358
|
+
—
|
359
|
+
<div class='inline'>
|
360
|
+
<p>‘:short`, `:long`.</p>
|
361
|
+
</div>
|
272
362
|
|
273
363
|
</li>
|
274
364
|
|
275
365
|
</ul>
|
276
366
|
|
367
|
+
<p class="tag_title">Raises:</p>
|
368
|
+
<ul class="raise">
|
277
369
|
|
278
|
-
|
279
|
-
|
280
|
-
<p class="tag_title">Options Hash (<tt>opts</tt>):</p>
|
281
|
-
<ul class="option">
|
370
|
+
<li>
|
282
371
|
|
283
|
-
<li>
|
284
|
-
<span class="name">:label</span>
|
285
|
-
<span class="type">(<tt>String</tt>)</span>
|
286
|
-
<span class="default">
|
287
|
-
|
288
|
-
</span>
|
289
|
-
|
290
|
-
</li>
|
291
|
-
|
292
|
-
<li>
|
293
|
-
<span class="name">:flavor</span>
|
294
|
-
<span class="type">(<tt>Symbol</tt>)</span>
|
295
|
-
<span class="default">
|
296
|
-
|
297
|
-
</span>
|
298
|
-
|
299
|
-
— <div class='inline'>
|
300
|
-
<p>`:anchor`, `:long`, `:short`.</p>
|
301
|
-
</div>
|
302
|
-
|
303
|
-
</li>
|
304
372
|
|
305
|
-
|
373
|
+
<span class='type'>(<tt><span class='object_link'><a href="SyntaxError.html" title="TermUtils::AP::SyntaxError (class)">TermUtils::AP::SyntaxError</a></span></tt>)</span>
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
</li>
|
306
378
|
|
307
|
-
|
379
|
+
</ul>
|
308
380
|
|
309
381
|
</div><table class="source_code">
|
310
382
|
<tr>
|
@@ -312,17 +384,23 @@
|
|
312
384
|
<pre class="lines">
|
313
385
|
|
314
386
|
|
315
|
-
30
|
316
387
|
31
|
317
388
|
32
|
318
|
-
33
|
389
|
+
33
|
390
|
+
34
|
391
|
+
35
|
392
|
+
36
|
393
|
+
37</pre>
|
319
394
|
</td>
|
320
395
|
<td>
|
321
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/ap/flag.rb', line
|
396
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ap/flag.rb', line 31</span>
|
322
397
|
|
323
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier
|
324
|
-
<span class='
|
325
|
-
<span class='
|
398
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='id identifier rubyid_flavor'>flavor</span><span class='rparen'>)</span>
|
399
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../../TermUtils.html" title="TermUtils (module)">TermUtils</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../AP.html" title="TermUtils::AP (module)">AP</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="SyntaxError.html" title="TermUtils::AP::SyntaxError (class)">SyntaxError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>wrong flag label</span><span class='tstring_end'>'</span></span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_label'>label</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>String</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^-+$</span><span class='regexp_end'>/</span></span><span class='period'>.</span><span class='id identifier rubyid_match?'>match?</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='op'>!</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^-[0-9A-Za-z_-]+$</span><span class='regexp_end'>/</span></span><span class='period'>.</span><span class='id identifier rubyid_match?'>match?</span><span class='lparen'>(</span><span class='id identifier rubyid_label'>label</span><span class='rparen'>)</span>
|
400
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../../TermUtils.html" title="TermUtils (module)">TermUtils</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../AP.html" title="TermUtils::AP (module)">AP</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="SyntaxError.html" title="TermUtils::AP::SyntaxError (class)">SyntaxError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span> <span class='kw'>unless</span> <span class='qsymbols_beg'>%i[</span><span class='tstring_content'>short</span><span class='words_sep'> </span><span class='tstring_content'>long</span><span class='tstring_end'>]</span></span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_flavor'>flavor</span><span class='rparen'>)</span>
|
401
|
+
|
402
|
+
<span class='ivar'>@label</span> <span class='op'>=</span> <span class='id identifier rubyid_label'>label</span>
|
403
|
+
<span class='ivar'>@flavor</span> <span class='op'>=</span> <span class='id identifier rubyid_flavor'>flavor</span>
|
326
404
|
<span class='kw'>end</span></pre>
|
327
405
|
</td>
|
328
406
|
</tr>
|
@@ -335,11 +413,11 @@
|
|
335
413
|
<h2>Instance Attribute Details</h2>
|
336
414
|
|
337
415
|
|
338
|
-
<span id="
|
416
|
+
<span id=""></span>
|
339
417
|
<div class="method_details first">
|
340
418
|
<h3 class="signature first" id="flavor-instance_method">
|
341
419
|
|
342
|
-
#<strong>flavor</strong> ⇒ <tt>Symbol</tt>
|
420
|
+
#<strong>flavor</strong> ⇒ <tt>Symbol</tt> <span class="extras">(readonly)</span>
|
343
421
|
|
344
422
|
|
345
423
|
|
@@ -348,7 +426,7 @@
|
|
348
426
|
</h3><div class="docstring">
|
349
427
|
<div class="discussion">
|
350
428
|
|
351
|
-
<p>Returns
|
429
|
+
<p>Returns ‘:long`, `:short`.</p>
|
352
430
|
|
353
431
|
|
354
432
|
</div>
|
@@ -367,7 +445,7 @@
|
|
367
445
|
|
368
446
|
—
|
369
447
|
<div class='inline'>
|
370
|
-
<p
|
448
|
+
<p>‘:long`, `:short`.</p>
|
371
449
|
</div>
|
372
450
|
|
373
451
|
</li>
|
@@ -380,12 +458,12 @@
|
|
380
458
|
<pre class="lines">
|
381
459
|
|
382
460
|
|
383
|
-
25
|
384
461
|
26
|
385
|
-
27
|
462
|
+
27
|
463
|
+
28</pre>
|
386
464
|
</td>
|
387
465
|
<td>
|
388
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/ap/flag.rb', line
|
466
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ap/flag.rb', line 26</span>
|
389
467
|
|
390
468
|
<span class='kw'>def</span> <span class='id identifier rubyid_flavor'>flavor</span>
|
391
469
|
<span class='ivar'>@flavor</span>
|
@@ -396,11 +474,11 @@
|
|
396
474
|
</div>
|
397
475
|
|
398
476
|
|
399
|
-
<span id="
|
477
|
+
<span id=""></span>
|
400
478
|
<div class="method_details ">
|
401
479
|
<h3 class="signature " id="label-instance_method">
|
402
480
|
|
403
|
-
#<strong>label</strong> ⇒ <tt>String</tt>
|
481
|
+
#<strong>label</strong> ⇒ <tt>String</tt> <span class="extras">(readonly)</span>
|
404
482
|
|
405
483
|
|
406
484
|
|
@@ -434,12 +512,12 @@
|
|
434
512
|
<pre class="lines">
|
435
513
|
|
436
514
|
|
437
|
-
23
|
438
515
|
24
|
439
|
-
25
|
516
|
+
25
|
517
|
+
26</pre>
|
440
518
|
</td>
|
441
519
|
<td>
|
442
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/ap/flag.rb', line
|
520
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ap/flag.rb', line 24</span>
|
443
521
|
|
444
522
|
<span class='kw'>def</span> <span class='id identifier rubyid_label'>label</span>
|
445
523
|
<span class='ivar'>@label</span>
|
@@ -457,7 +535,160 @@
|
|
457
535
|
|
458
536
|
|
459
537
|
<div class="method_details first">
|
460
|
-
<h3 class="signature first" id="
|
538
|
+
<h3 class="signature first" id="==-instance_method">
|
539
|
+
|
540
|
+
#<strong>==</strong>(other) ⇒ <tt>Object</tt>
|
541
|
+
|
542
|
+
|
543
|
+
|
544
|
+
|
545
|
+
|
546
|
+
</h3><div class="docstring">
|
547
|
+
<div class="discussion">
|
548
|
+
|
549
|
+
<p>Tests whether this one is equal to a given Flag.</p>
|
550
|
+
|
551
|
+
|
552
|
+
</div>
|
553
|
+
</div>
|
554
|
+
<div class="tags">
|
555
|
+
|
556
|
+
|
557
|
+
</div><table class="source_code">
|
558
|
+
<tr>
|
559
|
+
<td>
|
560
|
+
<pre class="lines">
|
561
|
+
|
562
|
+
|
563
|
+
40
|
564
|
+
41
|
565
|
+
42
|
566
|
+
43
|
567
|
+
44</pre>
|
568
|
+
</td>
|
569
|
+
<td>
|
570
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ap/flag.rb', line 40</span>
|
571
|
+
|
572
|
+
<span class='kw'>def</span> <span class='op'>==</span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span>
|
573
|
+
<span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>unless</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="../../TermUtils.html" title="TermUtils (module)">TermUtils</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../AP.html" title="TermUtils::AP (module)">AP</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="TermUtils::AP::Flag (class)">Flag</a></span></span><span class='rparen'>)</span>
|
574
|
+
|
575
|
+
<span class='ivar'>@label</span> <span class='op'>==</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_label'>label</span>
|
576
|
+
<span class='kw'>end</span></pre>
|
577
|
+
</td>
|
578
|
+
</tr>
|
579
|
+
</table>
|
580
|
+
</div>
|
581
|
+
|
582
|
+
<div class="method_details ">
|
583
|
+
<h3 class="signature " id="long?-instance_method">
|
584
|
+
|
585
|
+
#<strong>long?</strong> ⇒ <tt>Boolean</tt>
|
586
|
+
|
587
|
+
|
588
|
+
|
589
|
+
|
590
|
+
|
591
|
+
</h3><div class="docstring">
|
592
|
+
<div class="discussion">
|
593
|
+
|
594
|
+
<p>Tests whether this one represents a long flag.</p>
|
595
|
+
|
596
|
+
|
597
|
+
</div>
|
598
|
+
</div>
|
599
|
+
<div class="tags">
|
600
|
+
|
601
|
+
<p class="tag_title">Returns:</p>
|
602
|
+
<ul class="return">
|
603
|
+
|
604
|
+
<li>
|
605
|
+
|
606
|
+
|
607
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
608
|
+
|
609
|
+
|
610
|
+
|
611
|
+
</li>
|
612
|
+
|
613
|
+
</ul>
|
614
|
+
|
615
|
+
</div><table class="source_code">
|
616
|
+
<tr>
|
617
|
+
<td>
|
618
|
+
<pre class="lines">
|
619
|
+
|
620
|
+
|
621
|
+
48
|
622
|
+
49
|
623
|
+
50</pre>
|
624
|
+
</td>
|
625
|
+
<td>
|
626
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ap/flag.rb', line 48</span>
|
627
|
+
|
628
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_long?'>long?</span>
|
629
|
+
<span class='ivar'>@flavor</span> <span class='op'>==</span> <span class='symbol'>:long</span>
|
630
|
+
<span class='kw'>end</span></pre>
|
631
|
+
</td>
|
632
|
+
</tr>
|
633
|
+
</table>
|
634
|
+
</div>
|
635
|
+
|
636
|
+
<div class="method_details ">
|
637
|
+
<h3 class="signature " id="short?-instance_method">
|
638
|
+
|
639
|
+
#<strong>short?</strong> ⇒ <tt>Boolean</tt>
|
640
|
+
|
641
|
+
|
642
|
+
|
643
|
+
|
644
|
+
|
645
|
+
</h3><div class="docstring">
|
646
|
+
<div class="discussion">
|
647
|
+
|
648
|
+
<p>Tests whether this one represents a short flag.</p>
|
649
|
+
|
650
|
+
|
651
|
+
</div>
|
652
|
+
</div>
|
653
|
+
<div class="tags">
|
654
|
+
|
655
|
+
<p class="tag_title">Returns:</p>
|
656
|
+
<ul class="return">
|
657
|
+
|
658
|
+
<li>
|
659
|
+
|
660
|
+
|
661
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
662
|
+
|
663
|
+
|
664
|
+
|
665
|
+
</li>
|
666
|
+
|
667
|
+
</ul>
|
668
|
+
|
669
|
+
</div><table class="source_code">
|
670
|
+
<tr>
|
671
|
+
<td>
|
672
|
+
<pre class="lines">
|
673
|
+
|
674
|
+
|
675
|
+
54
|
676
|
+
55
|
677
|
+
56</pre>
|
678
|
+
</td>
|
679
|
+
<td>
|
680
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ap/flag.rb', line 54</span>
|
681
|
+
|
682
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_short?'>short?</span>
|
683
|
+
<span class='ivar'>@flavor</span> <span class='op'>==</span> <span class='symbol'>:short</span>
|
684
|
+
<span class='kw'>end</span></pre>
|
685
|
+
</td>
|
686
|
+
</tr>
|
687
|
+
</table>
|
688
|
+
</div>
|
689
|
+
|
690
|
+
<div class="method_details ">
|
691
|
+
<h3 class="signature " id="to_s-instance_method">
|
461
692
|
|
462
693
|
#<strong>to_s</strong> ⇒ <tt>String</tt>
|
463
694
|
|
@@ -495,29 +726,15 @@
|
|
495
726
|
<pre class="lines">
|
496
727
|
|
497
728
|
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
39
|
502
|
-
40
|
503
|
-
41
|
504
|
-
42
|
505
|
-
43
|
506
|
-
44
|
507
|
-
45</pre>
|
729
|
+
60
|
730
|
+
61
|
731
|
+
62</pre>
|
508
732
|
</td>
|
509
733
|
<td>
|
510
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/ap/flag.rb', line
|
734
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ap/flag.rb', line 60</span>
|
511
735
|
|
512
736
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
|
513
|
-
<span class='
|
514
|
-
<span class='kw'>when</span> <span class='symbol'>:anchor</span>
|
515
|
-
<span class='ivar'>@label</span>
|
516
|
-
<span class='kw'>when</span> <span class='symbol'>:long</span>
|
517
|
-
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>--%s</span><span class='tstring_end'>"</span></span> <span class='op'>%</span> <span class='ivar'>@label</span>
|
518
|
-
<span class='kw'>when</span> <span class='symbol'>:short</span>
|
519
|
-
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>-%s</span><span class='tstring_end'>"</span></span> <span class='op'>%</span> <span class='ivar'>@label</span>
|
520
|
-
<span class='kw'>end</span>
|
737
|
+
<span class='ivar'>@label</span>
|
521
738
|
<span class='kw'>end</span></pre>
|
522
739
|
</td>
|
523
740
|
</tr>
|
@@ -529,9 +746,9 @@
|
|
529
746
|
</div>
|
530
747
|
|
531
748
|
<div id="footer">
|
532
|
-
Generated on
|
533
|
-
<a href="
|
534
|
-
0.9.
|
749
|
+
Generated on Wed Aug 9 17:34:26 2023 by
|
750
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
751
|
+
0.9.34 (ruby-3.2.2).
|
535
752
|
</div>
|
536
753
|
|
537
754
|
</div>
|