term_utils 0.4.0 → 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 +7 -0
- data/COPYING +1 -1
- data/Rakefile +6 -0
- data/doc/TermUtils/AP/Article.html +13 -13
- data/doc/TermUtils/AP/ArticleResult.html +4 -4
- data/doc/TermUtils/AP/Flag.html +8 -8
- data/doc/TermUtils/AP/Parameter.html +9 -9
- data/doc/TermUtils/AP/ParameterResult.html +4 -4
- data/doc/TermUtils/AP/ParameterWalkerHooks.html +4 -4
- data/doc/TermUtils/AP/ParseError.html +646 -14
- data/doc/TermUtils/AP/Parser.html +43 -15
- data/doc/TermUtils/AP/Result.html +4 -4
- data/doc/TermUtils/AP/Syntax.html +4 -4
- data/doc/TermUtils/AP/SyntaxError.html +4 -86
- data/doc/TermUtils/AP/Walker.html +4 -4
- data/doc/TermUtils/AP.html +16 -16
- data/doc/TermUtils/FF/Config.html +8 -8
- data/doc/TermUtils/FF/Context.html +4 -4
- data/doc/TermUtils/FF/Entry.html +4 -4
- data/doc/TermUtils/FF/Finder.html +850 -0
- data/doc/TermUtils/FF/FinderEntry.html +1191 -0
- data/doc/TermUtils/FF/FinderQuery.html +946 -0
- data/doc/TermUtils/FF/Query.html +11 -15
- data/doc/TermUtils/FF.html +131 -7
- data/doc/TermUtils/PropertyTreeNode.html +6 -6
- data/doc/TermUtils/Tab/Column.html +44 -44
- data/doc/TermUtils/Tab/Header.html +19 -19
- data/doc/TermUtils/Tab/Holder.html +40 -40
- data/doc/TermUtils/Tab/Printer.html +4 -4
- data/doc/TermUtils/Tab/Table.html +59 -59
- data/doc/TermUtils/Tab/TableError.html +4 -86
- data/doc/TermUtils/Tab.html +42 -42
- data/doc/TermUtils.html +6 -6
- data/doc/_index.html +29 -23
- data/doc/class_list.html +1 -1
- data/doc/css/style.css +1 -0
- data/doc/file.README.html +25 -21
- data/doc/frames.html +1 -1
- data/doc/index.html +25 -21
- data/doc/method_list.html +385 -89
- data/doc/top-level-namespace.html +4 -4
- data/lib/term_utils/ap/article.rb +2 -2
- data/lib/term_utils/ap/flag.rb +2 -2
- data/lib/term_utils/ap/parameter.rb +2 -2
- data/lib/term_utils/ap/parser.rb +16 -15
- data/lib/term_utils/ap/result.rb +2 -2
- data/lib/term_utils/ap/syntax.rb +2 -2
- data/lib/term_utils/ap.rb +66 -22
- data/lib/term_utils/ff/config.rb +3 -3
- data/lib/term_utils/ff/entry.rb +2 -2
- data/lib/term_utils/ff/finder.rb +255 -0
- data/lib/term_utils/ff/query.rb +6 -8
- data/lib/term_utils/ff.rb +4 -3
- data/lib/term_utils/property_tree_node.rb +3 -3
- data/lib/term_utils/tab.rb +14 -13
- data/lib/term_utils.rb +2 -2
- data/term_utils.gemspec +2 -2
- metadata +8 -5
- data/doc/TermUtils/AP/NoSuchValueError.html +0 -217
data/doc/TermUtils/Tab.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: TermUtils::Tab
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.34
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -462,7 +462,7 @@
|
|
462
462
|
|
463
463
|
—
|
464
464
|
<div class='inline'>
|
465
|
-
<p
|
465
|
+
<p>‘:left`, `:right`.</p>
|
466
466
|
</div>
|
467
467
|
|
468
468
|
</li>
|
@@ -537,6 +537,7 @@
|
|
537
537
|
<pre class="lines">
|
538
538
|
|
539
539
|
|
540
|
+
84
|
540
541
|
85
|
541
542
|
86
|
542
543
|
87
|
@@ -560,11 +561,10 @@
|
|
560
561
|
105
|
561
562
|
106
|
562
563
|
107
|
563
|
-
108
|
564
|
-
109</pre>
|
564
|
+
108</pre>
|
565
565
|
</td>
|
566
566
|
<td>
|
567
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
567
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 84</span>
|
568
568
|
|
569
569
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_align_cut'>align_cut</span><span class='lparen'>(</span><span class='id identifier rubyid_src'>src</span><span class='comma'>,</span> <span class='id identifier rubyid_align'>align</span><span class='comma'>,</span> <span class='id identifier rubyid_fixed'>fixed</span><span class='comma'>,</span> <span class='id identifier rubyid_width'>width</span><span class='comma'>,</span> <span class='id identifier rubyid_ellipsis'>ellipsis</span><span class='rparen'>)</span>
|
570
570
|
<span class='kw'>if</span> <span class='id identifier rubyid_align'>align</span> <span class='op'>==</span> <span class='symbol'>:left</span>
|
@@ -639,7 +639,7 @@
|
|
639
639
|
|
640
640
|
—
|
641
641
|
<div class='inline'>
|
642
|
-
<p
|
642
|
+
<p>‘:width`, `:align`, `:fixed`, `:ellipsis`, `:format`.</p>
|
643
643
|
</div>
|
644
644
|
|
645
645
|
</li>
|
@@ -666,6 +666,7 @@
|
|
666
666
|
<pre class="lines">
|
667
667
|
|
668
668
|
|
669
|
+
58
|
669
670
|
59
|
670
671
|
60
|
671
672
|
61
|
@@ -682,11 +683,10 @@
|
|
682
683
|
72
|
683
684
|
73
|
684
685
|
74
|
685
|
-
75
|
686
|
-
76</pre>
|
686
|
+
75</pre>
|
687
687
|
</td>
|
688
688
|
<td>
|
689
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
689
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 58</span>
|
690
690
|
|
691
691
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_assign_column_props'>assign_column_props</span><span class='lparen'>(</span><span class='id identifier rubyid_target'>target</span><span class='comma'>,</span> <span class='id identifier rubyid_source'>source</span><span class='rparen'>)</span>
|
692
692
|
<span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_source'>source</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span> <span class='symbol'>:width</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='lparen'>(</span><span class='id identifier rubyid_source'>source</span><span class='lbracket'>[</span><span class='symbol'>:width</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Integer</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='id identifier rubyid_source'>source</span><span class='lbracket'>[</span><span class='symbol'>:width</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_positive?'>positive?</span>
|
@@ -754,7 +754,7 @@
|
|
754
754
|
|
755
755
|
—
|
756
756
|
<div class='inline'>
|
757
|
-
<p
|
757
|
+
<p>‘:offset`, `:column_separator_width`.</p>
|
758
758
|
</div>
|
759
759
|
|
760
760
|
</li>
|
@@ -781,6 +781,7 @@
|
|
781
781
|
<pre class="lines">
|
782
782
|
|
783
783
|
|
784
|
+
44
|
784
785
|
45
|
785
786
|
46
|
786
787
|
47
|
@@ -788,11 +789,10 @@
|
|
788
789
|
49
|
789
790
|
50
|
790
791
|
51
|
791
|
-
52
|
792
|
-
53</pre>
|
792
|
+
52</pre>
|
793
793
|
</td>
|
794
794
|
<td>
|
795
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
795
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 44</span>
|
796
796
|
|
797
797
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_assign_table_props'>assign_table_props</span><span class='lparen'>(</span><span class='id identifier rubyid_target'>target</span><span class='comma'>,</span> <span class='id identifier rubyid_source'>source</span><span class='rparen'>)</span>
|
798
798
|
<span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_source'>source</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span> <span class='symbol'>:offset</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='lparen'>(</span><span class='id identifier rubyid_source'>source</span><span class='lbracket'>[</span><span class='symbol'>:offset</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Integer</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='lparen'>(</span><span class='id identifier rubyid_source'>source</span><span class='lbracket'>[</span><span class='symbol'>:offset</span><span class='rbracket'>]</span> <span class='op'>>=</span> <span class='int'>0</span><span class='rparen'>)</span>
|
@@ -864,12 +864,12 @@
|
|
864
864
|
<pre class="lines">
|
865
865
|
|
866
866
|
|
867
|
-
551
|
868
867
|
552
|
869
|
-
553
|
868
|
+
553
|
869
|
+
554</pre>
|
870
870
|
</td>
|
871
871
|
<td>
|
872
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
872
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 552</span>
|
873
873
|
|
874
874
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_create_table'>create_table</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
875
875
|
<span class='cvar'>@@default_holder</span><span class='period'>.</span><span class='id identifier rubyid_create_table'>create_table</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
@@ -946,12 +946,12 @@
|
|
946
946
|
<pre class="lines">
|
947
947
|
|
948
948
|
|
949
|
-
559
|
950
949
|
560
|
951
|
-
561
|
950
|
+
561
|
951
|
+
562</pre>
|
952
952
|
</td>
|
953
953
|
<td>
|
954
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
954
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 560</span>
|
955
955
|
|
956
956
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_define_table'>define_table</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
957
957
|
<span class='cvar'>@@default_holder</span><span class='period'>.</span><span class='id identifier rubyid_define_table'>define_table</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
@@ -1015,12 +1015,12 @@
|
|
1015
1015
|
<pre class="lines">
|
1016
1016
|
|
1017
1017
|
|
1018
|
-
566
|
1019
1018
|
567
|
1020
|
-
568
|
1019
|
+
568
|
1020
|
+
569</pre>
|
1021
1021
|
</td>
|
1022
1022
|
<td>
|
1023
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
1023
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 567</span>
|
1024
1024
|
|
1025
1025
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_find_table'>find_table</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
|
1026
1026
|
<span class='cvar'>@@default_holder</span><span class='period'>.</span><span class='id identifier rubyid_find_table'>find_table</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
|
@@ -1061,7 +1061,7 @@
|
|
1061
1061
|
|
1062
1062
|
—
|
1063
1063
|
<div class='inline'>
|
1064
|
-
<p
|
1064
|
+
<p>‘:width`, `:align`, `:fixed`, `:ellipsis`, `:format`.</p>
|
1065
1065
|
</div>
|
1066
1066
|
|
1067
1067
|
</li>
|
@@ -1074,12 +1074,12 @@
|
|
1074
1074
|
<pre class="lines">
|
1075
1075
|
|
1076
1076
|
|
1077
|
+
36
|
1077
1078
|
37
|
1078
|
-
38
|
1079
|
-
39</pre>
|
1079
|
+
38</pre>
|
1080
1080
|
</td>
|
1081
1081
|
<td>
|
1082
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
1082
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 36</span>
|
1083
1083
|
|
1084
1084
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_init_column_props'>init_column_props</span>
|
1085
1085
|
<span class='lbrace'>{</span> <span class='label'>width:</span> <span class='int'>8</span><span class='comma'>,</span> <span class='label'>align:</span> <span class='symbol'>:left</span><span class='comma'>,</span> <span class='label'>fixed:</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='label'>ellipsis:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>?</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>format:</span> <span class='kw'>nil</span> <span class='rbrace'>}</span>
|
@@ -1120,7 +1120,7 @@
|
|
1120
1120
|
|
1121
1121
|
—
|
1122
1122
|
<div class='inline'>
|
1123
|
-
<p
|
1123
|
+
<p>‘:offset`, `:column_separator_width`.</p>
|
1124
1124
|
</div>
|
1125
1125
|
|
1126
1126
|
</li>
|
@@ -1133,12 +1133,12 @@
|
|
1133
1133
|
<pre class="lines">
|
1134
1134
|
|
1135
1135
|
|
1136
|
+
30
|
1136
1137
|
31
|
1137
|
-
32
|
1138
|
-
33</pre>
|
1138
|
+
32</pre>
|
1139
1139
|
</td>
|
1140
1140
|
<td>
|
1141
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
1141
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 30</span>
|
1142
1142
|
|
1143
1143
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_init_table_props'>init_table_props</span>
|
1144
1144
|
<span class='lbrace'>{</span> <span class='label'>offset:</span> <span class='int'>0</span><span class='comma'>,</span> <span class='label'>column_separator_width:</span> <span class='int'>2</span> <span class='rbrace'>}</span>
|
@@ -1259,12 +1259,12 @@
|
|
1259
1259
|
<pre class="lines">
|
1260
1260
|
|
1261
1261
|
|
1262
|
-
577
|
1263
1262
|
578
|
1264
|
-
579
|
1263
|
+
579
|
1264
|
+
580</pre>
|
1265
1265
|
</td>
|
1266
1266
|
<td>
|
1267
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
1267
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 578</span>
|
1268
1268
|
|
1269
1269
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_printer'>printer</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='comma'>,</span> <span class='id identifier rubyid_io'>io</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
1270
1270
|
<span class='cvar'>@@default_holder</span><span class='period'>.</span><span class='id identifier rubyid_find_table'>find_table</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_printer'>printer</span><span class='lparen'>(</span><span class='id identifier rubyid_io'>io</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
@@ -1371,12 +1371,12 @@
|
|
1371
1371
|
<pre class="lines">
|
1372
1372
|
|
1373
1373
|
|
1374
|
-
544
|
1375
1374
|
545
|
1376
|
-
546
|
1375
|
+
546
|
1376
|
+
547</pre>
|
1377
1377
|
</td>
|
1378
1378
|
<td>
|
1379
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
1379
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 545</span>
|
1380
1380
|
|
1381
1381
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_set_column_defaults'>set_column_defaults</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
1382
1382
|
<span class='cvar'>@@default_holder</span><span class='period'>.</span><span class='id identifier rubyid_set_column_defaults'>set_column_defaults</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
|
@@ -1456,12 +1456,12 @@
|
|
1456
1456
|
<pre class="lines">
|
1457
1457
|
|
1458
1458
|
|
1459
|
-
533
|
1460
1459
|
534
|
1461
|
-
535
|
1460
|
+
535
|
1461
|
+
536</pre>
|
1462
1462
|
</td>
|
1463
1463
|
<td>
|
1464
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line
|
1464
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 534</span>
|
1465
1465
|
|
1466
1466
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_set_table_defaults'>set_table_defaults</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
1467
1467
|
<span class='cvar'>@@default_holder</span><span class='period'>.</span><span class='id identifier rubyid_set_table_defaults'>set_table_defaults</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
|
@@ -1476,9 +1476,9 @@
|
|
1476
1476
|
</div>
|
1477
1477
|
|
1478
1478
|
<div id="footer">
|
1479
|
-
Generated on
|
1480
|
-
<a href="
|
1481
|
-
0.9.
|
1479
|
+
Generated on Wed Aug 9 17:34:25 2023 by
|
1480
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1481
|
+
0.9.34 (ruby-3.2.2).
|
1482
1482
|
</div>
|
1483
1483
|
|
1484
1484
|
</div>
|
data/doc/TermUtils.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: TermUtils
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.34
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -79,7 +79,7 @@
|
|
79
79
|
<dl>
|
80
80
|
<dt>Defined in:</dt>
|
81
81
|
<dd>lib/term_utils.rb<span class="defines">,<br />
|
82
|
-
lib/term_utils/ap.rb,<br /> lib/term_utils/ff.rb,<br /> lib/term_utils/tab.rb,<br /> lib/term_utils/ap/flag.rb,<br /> lib/term_utils/ff/entry.rb,<br /> lib/term_utils/ff/query.rb,<br /> lib/term_utils/ap/parser.rb,<br /> lib/term_utils/ap/result.rb,<br /> lib/term_utils/ap/syntax.rb,<br /> lib/term_utils/ff/config.rb,<br /> lib/term_utils/ap/article.rb,<br /> lib/term_utils/ap/parameter.rb,<br /> lib/term_utils/property_tree_node.rb</span>
|
82
|
+
lib/term_utils/ap.rb,<br /> lib/term_utils/ff.rb,<br /> lib/term_utils/tab.rb,<br /> lib/term_utils/ap/flag.rb,<br /> lib/term_utils/ff/entry.rb,<br /> lib/term_utils/ff/query.rb,<br /> lib/term_utils/ap/parser.rb,<br /> lib/term_utils/ap/result.rb,<br /> lib/term_utils/ap/syntax.rb,<br /> lib/term_utils/ff/config.rb,<br /> lib/term_utils/ff/finder.rb,<br /> lib/term_utils/ap/article.rb,<br /> lib/term_utils/ap/parameter.rb,<br /> lib/term_utils/property_tree_node.rb</span>
|
83
83
|
</dd>
|
84
84
|
</dl>
|
85
85
|
|
@@ -88,7 +88,7 @@
|
|
88
88
|
<h2>Overview</h2><div class="docstring">
|
89
89
|
<div class="discussion">
|
90
90
|
|
91
|
-
<p>Copyright
|
91
|
+
<p>Copyright © 2023 Thomas Baron</p>
|
92
92
|
|
93
93
|
<p>This file is part of term_utils.</p>
|
94
94
|
|
@@ -128,9 +128,9 @@
|
|
128
128
|
</div>
|
129
129
|
|
130
130
|
<div id="footer">
|
131
|
-
Generated on
|
132
|
-
<a href="
|
133
|
-
0.9.
|
131
|
+
Generated on Wed Aug 9 17:34:25 2023 by
|
132
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
133
|
+
0.9.34 (ruby-3.2.2).
|
134
134
|
</div>
|
135
135
|
|
136
136
|
</div>
|
data/doc/_index.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<meta charset="utf-8">
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
|
-
Documentation by YARD 0.9.
|
7
|
+
Documentation by YARD 0.9.34
|
8
8
|
|
9
9
|
</title>
|
10
10
|
|
@@ -52,7 +52,7 @@
|
|
52
52
|
<div class="clear"></div>
|
53
53
|
</div>
|
54
54
|
|
55
|
-
<div id="content"><h1 class="noborder title">Documentation by YARD 0.9.
|
55
|
+
<div id="content"><h1 class="noborder title">Documentation by YARD 0.9.34</h1>
|
56
56
|
<div id="listing">
|
57
57
|
<h1 class="alphaindex">Alphabetic Index</h1>
|
58
58
|
|
@@ -160,6 +160,27 @@
|
|
160
160
|
|
161
161
|
</li>
|
162
162
|
|
163
|
+
<li>
|
164
|
+
<span class='object_link'><a href="TermUtils/FF/Finder.html" title="TermUtils::FF::Finder (class)">Finder</a></span>
|
165
|
+
|
166
|
+
<small>(TermUtils::FF)</small>
|
167
|
+
|
168
|
+
</li>
|
169
|
+
|
170
|
+
<li>
|
171
|
+
<span class='object_link'><a href="TermUtils/FF/FinderEntry.html" title="TermUtils::FF::FinderEntry (class)">FinderEntry</a></span>
|
172
|
+
|
173
|
+
<small>(TermUtils::FF)</small>
|
174
|
+
|
175
|
+
</li>
|
176
|
+
|
177
|
+
<li>
|
178
|
+
<span class='object_link'><a href="TermUtils/FF/FinderQuery.html" title="TermUtils::FF::FinderQuery (class)">FinderQuery</a></span>
|
179
|
+
|
180
|
+
<small>(TermUtils::FF)</small>
|
181
|
+
|
182
|
+
</li>
|
183
|
+
|
163
184
|
<li>
|
164
185
|
<span class='object_link'><a href="TermUtils/AP/Flag.html" title="TermUtils::AP::Flag (class)">Flag</a></span>
|
165
186
|
|
@@ -193,21 +214,6 @@
|
|
193
214
|
</ul>
|
194
215
|
|
195
216
|
|
196
|
-
<ul id="alpha_N" class="alpha">
|
197
|
-
<li class="letter">N</li>
|
198
|
-
<ul>
|
199
|
-
|
200
|
-
<li>
|
201
|
-
<span class='object_link'><a href="TermUtils/AP/NoSuchValueError.html" title="TermUtils::AP::NoSuchValueError (class)">NoSuchValueError</a></span>
|
202
|
-
|
203
|
-
<small>(TermUtils::AP)</small>
|
204
|
-
|
205
|
-
</li>
|
206
|
-
|
207
|
-
</ul>
|
208
|
-
</ul>
|
209
|
-
|
210
|
-
|
211
217
|
<ul id="alpha_P" class="alpha">
|
212
218
|
<li class="letter">P</li>
|
213
219
|
<ul>
|
@@ -265,9 +271,6 @@
|
|
265
271
|
</ul>
|
266
272
|
|
267
273
|
|
268
|
-
</td><td valign='top' width="33%">
|
269
|
-
|
270
|
-
|
271
274
|
<ul id="alpha_Q" class="alpha">
|
272
275
|
<li class="letter">Q</li>
|
273
276
|
<ul>
|
@@ -283,6 +286,9 @@
|
|
283
286
|
</ul>
|
284
287
|
|
285
288
|
|
289
|
+
</td><td valign='top' width="33%">
|
290
|
+
|
291
|
+
|
286
292
|
<ul id="alpha_R" class="alpha">
|
287
293
|
<li class="letter">R</li>
|
288
294
|
<ul>
|
@@ -377,9 +383,9 @@
|
|
377
383
|
</div>
|
378
384
|
|
379
385
|
<div id="footer">
|
380
|
-
Generated on
|
381
|
-
<a href="
|
382
|
-
0.9.
|
386
|
+
Generated on Wed Aug 9 17:34:25 2023 by
|
387
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
388
|
+
0.9.34 (ruby-3.2.2).
|
383
389
|
</div>
|
384
390
|
|
385
391
|
</div>
|
data/doc/class_list.html
CHANGED
@@ -43,7 +43,7 @@
|
|
43
43
|
|
44
44
|
<ul id="full_list" class="class">
|
45
45
|
<li id="object_" class="odd"><div class="item" style="padding-left:30px"><span class='object_link'><a href="top-level-namespace.html" title="Top Level Namespace (root)">Top Level Namespace</a></span></div></li>
|
46
|
-
<li id='object_TermUtils' class='even'><div class='item' style='padding-left:30px'><a class='toggle'></a> <span class='object_link'><a href="TermUtils.html" title="TermUtils (module)">TermUtils</a></span><small class='search_info'>Top Level Namespace</small></div><ul><li id='object_TermUtils::AP' class='collapsed odd'><div class='item' style='padding-left:45px'><a class='toggle'></a> <span class='object_link'><a href="TermUtils/AP.html" title="TermUtils::AP (module)">AP</a></span><small class='search_info'>TermUtils</small></div><ul><li id='object_TermUtils::AP::Article' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="TermUtils/AP/Article.html" title="TermUtils::AP::Article (class)">Article</a></span> < Object<small class='search_info'>TermUtils::AP</small></div></li><li id='object_TermUtils::AP::ArticleResult' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="TermUtils/AP/ArticleResult.html" title="TermUtils::AP::ArticleResult (class)">ArticleResult</a></span> < Object<small class='search_info'>TermUtils::AP</small></div></li><li id='object_TermUtils::AP::Flag' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="TermUtils/AP/Flag.html" title="TermUtils::AP::Flag (class)">Flag</a></span> < Object<small class='search_info'>TermUtils::AP</small></div></li><li id='object_TermUtils::AP::
|
46
|
+
<li id='object_TermUtils' class='even'><div class='item' style='padding-left:30px'><a class='toggle'></a> <span class='object_link'><a href="TermUtils.html" title="TermUtils (module)">TermUtils</a></span><small class='search_info'>Top Level Namespace</small></div><ul><li id='object_TermUtils::AP' class='collapsed odd'><div class='item' style='padding-left:45px'><a class='toggle'></a> <span class='object_link'><a href="TermUtils/AP.html" title="TermUtils::AP (module)">AP</a></span><small class='search_info'>TermUtils</small></div><ul><li id='object_TermUtils::AP::Article' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="TermUtils/AP/Article.html" title="TermUtils::AP::Article (class)">Article</a></span> < Object<small class='search_info'>TermUtils::AP</small></div></li><li id='object_TermUtils::AP::ArticleResult' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="TermUtils/AP/ArticleResult.html" title="TermUtils::AP::ArticleResult (class)">ArticleResult</a></span> < Object<small class='search_info'>TermUtils::AP</small></div></li><li id='object_TermUtils::AP::Flag' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="TermUtils/AP/Flag.html" title="TermUtils::AP::Flag (class)">Flag</a></span> < Object<small class='search_info'>TermUtils::AP</small></div></li><li id='object_TermUtils::AP::Parameter' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="TermUtils/AP/Parameter.html" title="TermUtils::AP::Parameter (class)">Parameter</a></span> < Object<small class='search_info'>TermUtils::AP</small></div></li><li id='object_TermUtils::AP::ParameterResult' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="TermUtils/AP/ParameterResult.html" title="TermUtils::AP::ParameterResult (class)">ParameterResult</a></span> < Object<small class='search_info'>TermUtils::AP</small></div></li><li id='object_TermUtils::AP::ParameterWalkerHooks' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="TermUtils/AP/ParameterWalkerHooks.html" title="TermUtils::AP::ParameterWalkerHooks (class)">ParameterWalkerHooks</a></span> < Struct<small class='search_info'>TermUtils::AP</small></div></li><li id='object_TermUtils::AP::ParseError' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="TermUtils/AP/ParseError.html" title="TermUtils::AP::ParseError (class)">ParseError</a></span> < StandardError<small class='search_info'>TermUtils::AP</small></div></li><li id='object_TermUtils::AP::Parser' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="TermUtils/AP/Parser.html" title="TermUtils::AP::Parser (class)">Parser</a></span> < Object<small class='search_info'>TermUtils::AP</small></div></li><li id='object_TermUtils::AP::Result' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="TermUtils/AP/Result.html" title="TermUtils::AP::Result (class)">Result</a></span> < Object<small class='search_info'>TermUtils::AP</small></div></li><li id='object_TermUtils::AP::Syntax' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="TermUtils/AP/Syntax.html" title="TermUtils::AP::Syntax (class)">Syntax</a></span> < Object<small class='search_info'>TermUtils::AP</small></div></li><li id='object_TermUtils::AP::SyntaxError' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="TermUtils/AP/SyntaxError.html" title="TermUtils::AP::SyntaxError (class)">SyntaxError</a></span> < StandardError<small class='search_info'>TermUtils::AP</small></div></li><li id='object_TermUtils::AP::Walker' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="TermUtils/AP/Walker.html" title="TermUtils::AP::Walker (class)">Walker</a></span> < Object<small class='search_info'>TermUtils::AP</small></div></li></ul></li><li id='object_TermUtils::FF' class='collapsed even'><div class='item' style='padding-left:45px'><a class='toggle'></a> <span class='object_link'><a href="TermUtils/FF.html" title="TermUtils::FF (module)">FF</a></span><small class='search_info'>TermUtils</small></div><ul><li id='object_TermUtils::FF::Config' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="TermUtils/FF/Config.html" title="TermUtils::FF::Config (class)">Config</a></span> < Object<small class='search_info'>TermUtils::FF</small></div></li><li id='object_TermUtils::FF::Context' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="TermUtils/FF/Context.html" title="TermUtils::FF::Context (class)">Context</a></span> < Struct<small class='search_info'>TermUtils::FF</small></div></li><li id='object_TermUtils::FF::Entry' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="TermUtils/FF/Entry.html" title="TermUtils::FF::Entry (class)">Entry</a></span> < Object<small class='search_info'>TermUtils::FF</small></div></li><li id='object_TermUtils::FF::Finder' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="TermUtils/FF/Finder.html" title="TermUtils::FF::Finder (class)">Finder</a></span> < Object<small class='search_info'>TermUtils::FF</small></div></li><li id='object_TermUtils::FF::FinderEntry' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="TermUtils/FF/FinderEntry.html" title="TermUtils::FF::FinderEntry (class)">FinderEntry</a></span> < Object<small class='search_info'>TermUtils::FF</small></div></li><li id='object_TermUtils::FF::FinderQuery' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="TermUtils/FF/FinderQuery.html" title="TermUtils::FF::FinderQuery (class)">FinderQuery</a></span> < Object<small class='search_info'>TermUtils::FF</small></div></li><li id='object_TermUtils::FF::Query' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="TermUtils/FF/Query.html" title="TermUtils::FF::Query (class)">Query</a></span> < Object<small class='search_info'>TermUtils::FF</small></div></li></ul></li><li id='object_TermUtils::PropertyTreeNode' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="TermUtils/PropertyTreeNode.html" title="TermUtils::PropertyTreeNode (class)">PropertyTreeNode</a></span> < Object<small class='search_info'>TermUtils</small></div></li><li id='object_TermUtils::Tab' class='collapsed even'><div class='item' style='padding-left:45px'><a class='toggle'></a> <span class='object_link'><a href="TermUtils/Tab.html" title="TermUtils::Tab (module)">Tab</a></span><small class='search_info'>TermUtils</small></div><ul><li id='object_TermUtils::Tab::Column' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="TermUtils/Tab/Column.html" title="TermUtils::Tab::Column (class)">Column</a></span> < Object<small class='search_info'>TermUtils::Tab</small></div></li><li id='object_TermUtils::Tab::Header' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="TermUtils/Tab/Header.html" title="TermUtils::Tab::Header (class)">Header</a></span> < Object<small class='search_info'>TermUtils::Tab</small></div></li><li id='object_TermUtils::Tab::Holder' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="TermUtils/Tab/Holder.html" title="TermUtils::Tab::Holder (class)">Holder</a></span> < Object<small class='search_info'>TermUtils::Tab</small></div></li><li id='object_TermUtils::Tab::Printer' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="TermUtils/Tab/Printer.html" title="TermUtils::Tab::Printer (class)">Printer</a></span> < Object<small class='search_info'>TermUtils::Tab</small></div></li><li id='object_TermUtils::Tab::Table' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="TermUtils/Tab/Table.html" title="TermUtils::Tab::Table (class)">Table</a></span> < Object<small class='search_info'>TermUtils::Tab</small></div></li><li id='object_TermUtils::Tab::TableError' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="TermUtils/Tab/TableError.html" title="TermUtils::Tab::TableError (class)">TableError</a></span> < StandardError<small class='search_info'>TermUtils::Tab</small></div></li></ul></li></ul></li>
|
47
47
|
|
48
48
|
</ul>
|
49
49
|
</div>
|
data/doc/css/style.css
CHANGED
data/doc/file.README.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
File: README
|
8
8
|
|
9
|
-
— Documentation by YARD 0.9.
|
9
|
+
— Documentation by YARD 0.9.34
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -57,26 +57,27 @@
|
|
57
57
|
<div class="clear"></div>
|
58
58
|
</div>
|
59
59
|
|
60
|
-
<div id="content"><div id='filecontents'>
|
61
|
-
<h1 id="term_utils">term_utils</h1>
|
60
|
+
<div id="content"><div id='filecontents'><h1 id="termutils">term_utils</h1>
|
62
61
|
|
63
62
|
<h2 id="purpose">Purpose</h2>
|
64
63
|
|
65
64
|
<p>Provides utilities like argument parsing, table formatting and file finding.</p>
|
66
65
|
|
67
|
-
<h2 id="
|
66
|
+
<h2 id="getting-started">Getting Started</h2>
|
68
67
|
|
69
68
|
<p>Install term_utils at the command prompt:</p>
|
70
69
|
|
71
|
-
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_gem'>gem</span> <span class='id identifier rubyid_install'>install</span> <span class='id identifier rubyid_term_utils'>term_utils</span
|
70
|
+
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_gem'>gem</span> <span class='id identifier rubyid_install'>install</span> <span class='id identifier rubyid_term_utils'>term_utils</span>
|
71
|
+
</code></pre>
|
72
72
|
|
73
73
|
<p>Require term_utils in the source file:</p>
|
74
74
|
|
75
|
-
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>term_utils</span><span class='tstring_end'>'</span></span
|
75
|
+
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>term_utils</span><span class='tstring_end'>'</span></span>
|
76
|
+
</code></pre>
|
76
77
|
|
77
78
|
<h2 id="content">Content</h2>
|
78
79
|
|
79
|
-
<h3 id="
|
80
|
+
<h3 id="argument-parsing">Argument Parsing</h3>
|
80
81
|
|
81
82
|
<p>Exmaple:</p>
|
82
83
|
|
@@ -103,21 +104,23 @@
|
|
103
104
|
<span class='kw'>end</span>
|
104
105
|
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>limit: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_limit'>limit</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
105
106
|
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>paths:</span><span class='tstring_end'>"</span></span>
|
106
|
-
<span class='id identifier rubyid_paths'>paths</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_p'>p</span><span class='op'>|</span> <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_p'>p</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='rbrace'>}</span
|
107
|
+
<span class='id identifier rubyid_paths'>paths</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_p'>p</span><span class='op'>|</span> <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_p'>p</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='rbrace'>}</span>
|
108
|
+
</code></pre>
|
107
109
|
|
108
110
|
<p>See the <a href="manual/ARGUMENT_PARSING.md">manual</a> for more details.</p>
|
109
111
|
|
110
|
-
<h3 id="
|
112
|
+
<h3 id="table-formatting">Table Formatting</h3>
|
111
113
|
|
112
114
|
<p>Take the following table:</p>
|
113
115
|
|
114
|
-
<pre class="code ruby"><code class="ruby">
|
115
|
-
|
116
|
-
|
116
|
+
<pre class="code ruby"><code class="ruby"> id string8 string16
|
117
|
+
---- -------- ----------------
|
118
|
+
1 Fiat Lux Fiat Lux
|
117
119
|
2 Alea ... Alea jacta est
|
118
|
-
3 Audac... Audaces fortuna juvat
|
119
|
-
|
120
|
-
|
120
|
+
3 Audac... Audaces fortuna juvat
|
121
|
+
---- -------- ----------------
|
122
|
+
id string8 string16
|
123
|
+
</code></pre>
|
121
124
|
|
122
125
|
<p>You can produce it with the following code:</p>
|
123
126
|
|
@@ -144,13 +147,14 @@
|
|
144
147
|
<span class='id identifier rubyid_tpr'>tpr</span><span class='period'>.</span><span class='id identifier rubyid_separator'>separator</span>
|
145
148
|
<span class='id identifier rubyid_tpr'>tpr</span><span class='period'>.</span><span class='id identifier rubyid_header'>header</span>
|
146
149
|
<span class='id identifier rubyid_tpr'>tpr</span><span class='period'>.</span><span class='id identifier rubyid_line'>line</span>
|
147
|
-
<span class='kw'>end</span
|
150
|
+
<span class='kw'>end</span>
|
151
|
+
</code></pre>
|
148
152
|
|
149
|
-
<h3 id="
|
153
|
+
<h3 id="file-finding">File Finding</h3>
|
150
154
|
|
151
155
|
<p>The File Finding module provides a way to query the filesystem.</p>
|
152
156
|
|
153
|
-
<h2 id="
|
157
|
+
<h2 id="version-history">Version History</h2>
|
154
158
|
|
155
159
|
<p><a href="CHANGELOG.md">CHANGELOG</a></p>
|
156
160
|
|
@@ -160,9 +164,9 @@
|
|
160
164
|
</div></div>
|
161
165
|
|
162
166
|
<div id="footer">
|
163
|
-
Generated on
|
164
|
-
<a href="
|
165
|
-
0.9.
|
167
|
+
Generated on Wed Aug 9 17:34:25 2023 by
|
168
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
169
|
+
0.9.34 (ruby-3.2.2).
|
166
170
|
</div>
|
167
171
|
|
168
172
|
</div>
|
data/doc/frames.html
CHANGED