term_utils 0.3.2 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- 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.html
CHANGED
@@ -6,15 +6,15 @@
|
|
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
|
|
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";
|
19
19
|
relpath = '';
|
20
20
|
</script>
|
@@ -78,8 +78,8 @@
|
|
78
78
|
|
79
79
|
<dl>
|
80
80
|
<dt>Defined in:</dt>
|
81
|
-
<dd>lib/term_utils
|
82
|
-
lib/term_utils/ap.rb,<br /> lib/term_utils/
|
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/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,15 +4,15 @@
|
|
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
|
|
11
|
-
<link rel="stylesheet" href="css/style.css" type="text/css"
|
11
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" />
|
12
12
|
|
13
|
-
<link rel="stylesheet" href="css/common.css" type="text/css"
|
13
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" />
|
14
14
|
|
15
|
-
<script type="text/javascript"
|
15
|
+
<script type="text/javascript">
|
16
16
|
pathId = null;
|
17
17
|
relpath = '';
|
18
18
|
</script>
|
@@ -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
|
|
@@ -94,6 +94,13 @@
|
|
94
94
|
|
95
95
|
</li>
|
96
96
|
|
97
|
+
<li>
|
98
|
+
<span class='object_link'><a href="TermUtils/AP/ArticleResult.html" title="TermUtils::AP::ArticleResult (class)">ArticleResult</a></span>
|
99
|
+
|
100
|
+
<small>(TermUtils::AP)</small>
|
101
|
+
|
102
|
+
</li>
|
103
|
+
|
97
104
|
</ul>
|
98
105
|
</ul>
|
99
106
|
|
@@ -117,14 +124,7 @@
|
|
117
124
|
</li>
|
118
125
|
|
119
126
|
<li>
|
120
|
-
<span class='object_link'><a href="TermUtils/FF/
|
121
|
-
|
122
|
-
<small>(TermUtils::FF::Cursor)</small>
|
123
|
-
|
124
|
-
</li>
|
125
|
-
|
126
|
-
<li>
|
127
|
-
<span class='object_link'><a href="TermUtils/FF/Cursor.html" title="TermUtils::FF::Cursor (class)">Cursor</a></span>
|
127
|
+
<span class='object_link'><a href="TermUtils/FF/Context.html" title="TermUtils::FF::Context (class)">Context</a></span>
|
128
128
|
|
129
129
|
<small>(TermUtils::FF)</small>
|
130
130
|
|
@@ -139,9 +139,9 @@
|
|
139
139
|
<ul>
|
140
140
|
|
141
141
|
<li>
|
142
|
-
<span class='object_link'><a href="TermUtils/
|
142
|
+
<span class='object_link'><a href="TermUtils/FF/Entry.html" title="TermUtils::FF::Entry (class)">Entry</a></span>
|
143
143
|
|
144
|
-
<small>(TermUtils::
|
144
|
+
<small>(TermUtils::FF)</small>
|
145
145
|
|
146
146
|
</li>
|
147
147
|
|
@@ -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,45 +214,26 @@
|
|
193
214
|
</ul>
|
194
215
|
|
195
216
|
|
196
|
-
<ul id="
|
197
|
-
<li class="letter">
|
217
|
+
<ul id="alpha_P" class="alpha">
|
218
|
+
<li class="letter">P</li>
|
198
219
|
<ul>
|
199
220
|
|
200
221
|
<li>
|
201
|
-
<span class='object_link'><a href="TermUtils/AP/
|
222
|
+
<span class='object_link'><a href="TermUtils/AP/Parameter.html" title="TermUtils::AP::Parameter (class)">Parameter</a></span>
|
202
223
|
|
203
224
|
<small>(TermUtils::AP)</small>
|
204
225
|
|
205
226
|
</li>
|
206
227
|
|
207
|
-
</ul>
|
208
|
-
</ul>
|
209
|
-
|
210
|
-
|
211
|
-
<ul id="alpha_N" class="alpha">
|
212
|
-
<li class="letter">N</li>
|
213
|
-
<ul>
|
214
|
-
|
215
228
|
<li>
|
216
|
-
<span class='object_link'><a href="TermUtils/AP/
|
229
|
+
<span class='object_link'><a href="TermUtils/AP/ParameterResult.html" title="TermUtils::AP::ParameterResult (class)">ParameterResult</a></span>
|
217
230
|
|
218
231
|
<small>(TermUtils::AP)</small>
|
219
232
|
|
220
233
|
</li>
|
221
234
|
|
222
|
-
</ul>
|
223
|
-
</ul>
|
224
|
-
|
225
|
-
|
226
|
-
</td><td valign='top' width="33%">
|
227
|
-
|
228
|
-
|
229
|
-
<ul id="alpha_P" class="alpha">
|
230
|
-
<li class="letter">P</li>
|
231
|
-
<ul>
|
232
|
-
|
233
235
|
<li>
|
234
|
-
<span class='object_link'><a href="TermUtils/AP/
|
236
|
+
<span class='object_link'><a href="TermUtils/AP/ParameterWalkerHooks.html" title="TermUtils::AP::ParameterWalkerHooks (class)">ParameterWalkerHooks</a></span>
|
235
237
|
|
236
238
|
<small>(TermUtils::AP)</small>
|
237
239
|
|
@@ -284,6 +286,9 @@
|
|
284
286
|
</ul>
|
285
287
|
|
286
288
|
|
289
|
+
</td><td valign='top' width="33%">
|
290
|
+
|
291
|
+
|
287
292
|
<ul id="alpha_R" class="alpha">
|
288
293
|
<li class="letter">R</li>
|
289
294
|
<ul>
|
@@ -354,6 +359,21 @@
|
|
354
359
|
</ul>
|
355
360
|
</ul>
|
356
361
|
|
362
|
+
|
363
|
+
<ul id="alpha_W" class="alpha">
|
364
|
+
<li class="letter">W</li>
|
365
|
+
<ul>
|
366
|
+
|
367
|
+
<li>
|
368
|
+
<span class='object_link'><a href="TermUtils/AP/Walker.html" title="TermUtils::AP::Walker (class)">Walker</a></span>
|
369
|
+
|
370
|
+
<small>(TermUtils::AP)</small>
|
371
|
+
|
372
|
+
</li>
|
373
|
+
|
374
|
+
</ul>
|
375
|
+
</ul>
|
376
|
+
|
357
377
|
</td>
|
358
378
|
</tr>
|
359
379
|
</table>
|
@@ -363,9 +383,9 @@
|
|
363
383
|
</div>
|
364
384
|
|
365
385
|
<div id="footer">
|
366
|
-
Generated on
|
367
|
-
<a href="
|
368
|
-
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).
|
369
389
|
</div>
|
370
390
|
|
371
391
|
</div>
|
data/doc/class_list.html
CHANGED
@@ -4,9 +4,9 @@
|
|
4
4
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
5
5
|
<meta charset="utf-8" />
|
6
6
|
|
7
|
-
<link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen"
|
7
|
+
<link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" />
|
8
8
|
|
9
|
-
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen"
|
9
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" />
|
10
10
|
|
11
11
|
|
12
12
|
|
@@ -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::
|
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
@@ -52,6 +52,7 @@ body {
|
|
52
52
|
background: #fff;
|
53
53
|
padding: 1.2em;
|
54
54
|
padding-top: 0.2em;
|
55
|
+
box-sizing: border-box;
|
55
56
|
}
|
56
57
|
|
57
58
|
@media (max-width: 920px) {
|
@@ -422,8 +423,8 @@ li.r2 { background: #fafafa; }
|
|
422
423
|
#toc ol { padding-left: 1.8em; }
|
423
424
|
#toc li { font-size: 1.1em; line-height: 1.7em; }
|
424
425
|
#toc > ol > li { font-size: 1.1em; font-weight: bold; }
|
425
|
-
#toc ol > ol { font-size: 0.9em; }
|
426
|
-
#toc ol ol > ol { padding-left: 2.3em; }
|
426
|
+
#toc ol > li > ol { font-size: 0.9em; }
|
427
|
+
#toc ol ol > li > ol { padding-left: 2.3em; }
|
427
428
|
#toc ol + li { margin-top: 0.3em; }
|
428
429
|
#toc.hidden { padding: 10px; background: #fefefe; box-shadow: none; }
|
429
430
|
#toc.hidden:hover { background: #fafafa; }
|
data/doc/file.README.html
CHANGED
@@ -6,15 +6,15 @@
|
|
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
|
|
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 = "README";
|
19
19
|
relpath = '';
|
20
20
|
</script>
|
@@ -57,25 +57,66 @@
|
|
57
57
|
<div class="clear"></div>
|
58
58
|
</div>
|
59
59
|
|
60
|
-
<div id="content"><div id='filecontents'>
|
61
|
-
<h1 id="label-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
|
-
<
|
66
|
+
<h2 id="getting-started">Getting Started</h2>
|
68
67
|
|
69
|
-
<
|
68
|
+
<p>Install term_utils at the command prompt:</p>
|
70
69
|
|
71
|
-
<
|
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
|
+
|
73
|
+
<p>Require term_utils in the source file:</p>
|
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>
|
76
|
+
</code></pre>
|
77
|
+
|
78
|
+
<h2 id="content">Content</h2>
|
79
|
+
|
80
|
+
<h3 id="argument-parsing">Argument Parsing</h3>
|
81
|
+
|
82
|
+
<p>Exmaple:</p>
|
83
|
+
|
84
|
+
<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/ap</span><span class='tstring_end'>'</span></span>
|
85
|
+
<span class='id identifier rubyid_syntax'>syntax</span> <span class='op'>=</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="TermUtils/AP.html" title="TermUtils::AP (module)">AP</a></span></span><span class='period'>.</span><span class='id identifier rubyid_create_syntax'><span class='object_link'><a href="TermUtils/AP.html#create_syntax-class_method" title="TermUtils::AP.create_syntax (method)">create_syntax</a></span></span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_s'>s</span><span class='op'>|</span>
|
86
|
+
<span class='id identifier rubyid_s'>s</span><span class='period'>.</span><span class='id identifier rubyid_define_parameter'>define_parameter</span> <span class='symbol'>:limit</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_p'>p</span><span class='op'>|</span>
|
87
|
+
<span class='id identifier rubyid_p'>p</span><span class='period'>.</span><span class='id identifier rubyid_define_flag'>define_flag</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>-l</span><span class='tstring_end'>'</span></span>
|
88
|
+
<span class='id identifier rubyid_p'>p</span><span class='period'>.</span><span class='id identifier rubyid_define_article'>define_article</span>
|
89
|
+
<span class='kw'>end</span>
|
90
|
+
<span class='id identifier rubyid_s'>s</span><span class='period'>.</span><span class='id identifier rubyid_define_parameter'>define_parameter</span> <span class='symbol'>:path</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_p'>p</span><span class='op'>|</span>
|
91
|
+
<span class='id identifier rubyid_p'>p</span><span class='period'>.</span><span class='id identifier rubyid_max_occurs'>max_occurs</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
92
|
+
<span class='id identifier rubyid_p'>p</span><span class='period'>.</span><span class='id identifier rubyid_define_article'>define_article</span>
|
93
|
+
<span class='kw'>end</span>
|
94
|
+
<span class='kw'>end</span>
|
95
|
+
<span class='id identifier rubyid_limit'>limit</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
96
|
+
<span class='id identifier rubyid_paths'>paths</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
97
|
+
<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="TermUtils/AP.html" title="TermUtils::AP (module)">AP</a></span></span><span class='period'>.</span><span class='id identifier rubyid_parse_arguments'><span class='object_link'><a href="TermUtils/AP.html#parse_arguments-class_method" title="TermUtils::AP.parse_arguments (method)">parse_arguments</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_syntax'>syntax</span><span class='comma'>,</span> <span class='const'>ARGV</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_on'>on</span><span class='op'>|</span>
|
98
|
+
<span class='id identifier rubyid_on'>on</span><span class='period'>.</span><span class='id identifier rubyid_parameter'>parameter</span> <span class='symbol'>:limit</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_p'>p</span><span class='op'>|</span>
|
99
|
+
<span class='id identifier rubyid_limit'>limit</span> <span class='op'>=</span> <span class='id identifier rubyid_p'>p</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span>
|
100
|
+
<span class='kw'>end</span>
|
101
|
+
<span class='id identifier rubyid_on'>on</span><span class='period'>.</span><span class='id identifier rubyid_parameter'>parameter</span> <span class='symbol'>:path</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_p'>p</span><span class='op'>|</span>
|
102
|
+
<span class='id identifier rubyid_paths'>paths</span> <span class='op'><<</span> <span class='id identifier rubyid_p'>p</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span>
|
103
|
+
<span class='kw'>end</span>
|
104
|
+
<span class='kw'>end</span>
|
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>
|
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>
|
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>
|
109
|
+
|
110
|
+
<p>See the <a href="manual/ARGUMENT_PARSING.md">manual</a> for more details.</p>
|
111
|
+
|
112
|
+
<h3 id="table-formatting">Table Formatting</h3>
|
72
113
|
|
73
114
|
<p>Take the following table:</p>
|
74
115
|
|
75
|
-
<pre class="code ruby"><code class="ruby"> id string8 string16
|
116
|
+
<pre class="code ruby"><code class="ruby"> id string8 string16
|
76
117
|
---- -------- ----------------
|
77
|
-
1 Fiat Lux Fiat Lux
|
78
|
-
2 Alea ... Alea jacta est
|
118
|
+
1 Fiat Lux Fiat Lux
|
119
|
+
2 Alea ... Alea jacta est
|
79
120
|
3 Audac... Audaces fortuna juvat
|
80
121
|
---- -------- ----------------
|
81
122
|
id string8 string16
|
@@ -109,27 +150,23 @@
|
|
109
150
|
<span class='kw'>end</span>
|
110
151
|
</code></pre>
|
111
152
|
|
112
|
-
<h3 id="
|
113
|
-
|
114
|
-
<p>The Argument Parsing module provides a way to parse command line arguments.</p>
|
115
|
-
|
116
|
-
<p>See Samples.</p>
|
153
|
+
<h3 id="file-finding">File Finding</h3>
|
117
154
|
|
118
|
-
<
|
155
|
+
<p>The File Finding module provides a way to query the filesystem.</p>
|
119
156
|
|
120
|
-
<
|
157
|
+
<h2 id="version-history">Version History</h2>
|
121
158
|
|
122
|
-
<p>
|
159
|
+
<p><a href="CHANGELOG.md">CHANGELOG</a></p>
|
123
160
|
|
124
|
-
<h2 id="
|
161
|
+
<h2 id="license">License</h2>
|
125
162
|
|
126
163
|
<p>GPL-3.0-only.</p>
|
127
164
|
</div></div>
|
128
165
|
|
129
166
|
<div id="footer">
|
130
|
-
Generated on
|
131
|
-
<a href="
|
132
|
-
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).
|
133
170
|
</div>
|
134
171
|
|
135
172
|
</div>
|
data/doc/file_list.html
CHANGED
@@ -4,9 +4,9 @@
|
|
4
4
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
5
5
|
<meta charset="utf-8" />
|
6
6
|
|
7
|
-
<link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen"
|
7
|
+
<link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" />
|
8
8
|
|
9
|
-
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen"
|
9
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" />
|
10
10
|
|
11
11
|
|
12
12
|
|
data/doc/frames.html
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8">
|
5
|
-
<title>Documentation by YARD 0.9.
|
5
|
+
<title>Documentation by YARD 0.9.34</title>
|
6
6
|
</head>
|
7
|
-
<script type="text/javascript"
|
7
|
+
<script type="text/javascript">
|
8
8
|
var match = unescape(window.location.hash).match(/^#!(.+)/);
|
9
9
|
var name = match ? match[1] : 'index.html';
|
10
10
|
name = name.replace(/^(\w+):\/\//, '').replace(/^\/\//, '');
|