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.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -2
  3. data/COPYING +3 -3
  4. data/README.md +51 -16
  5. data/Rakefile +6 -0
  6. data/doc/TermUtils/AP/Article.html +57 -55
  7. data/doc/TermUtils/AP/ArticleResult.html +584 -0
  8. data/doc/TermUtils/AP/Flag.html +295 -78
  9. data/doc/TermUtils/AP/Parameter.html +891 -103
  10. data/doc/TermUtils/AP/ParameterResult.html +980 -0
  11. data/doc/TermUtils/{FF/Cursor/Context.html → AP/ParameterWalkerHooks.html} +60 -60
  12. data/doc/TermUtils/AP/ParseError.html +651 -19
  13. data/doc/TermUtils/AP/Parser.html +181 -121
  14. data/doc/TermUtils/AP/Result.html +201 -528
  15. data/doc/TermUtils/AP/Syntax.html +103 -393
  16. data/doc/TermUtils/AP/SyntaxError.html +9 -91
  17. data/doc/TermUtils/AP/Walker.html +686 -0
  18. data/doc/TermUtils/AP.html +49 -160
  19. data/doc/TermUtils/FF/Config.html +203 -35
  20. data/doc/TermUtils/FF/Context.html +585 -0
  21. data/doc/TermUtils/FF/Entry.html +626 -0
  22. data/doc/TermUtils/FF/Finder.html +850 -0
  23. data/doc/TermUtils/FF/{Cursor.html → FinderEntry.html} +473 -211
  24. data/doc/TermUtils/FF/FinderQuery.html +946 -0
  25. data/doc/TermUtils/FF/Query.html +402 -70
  26. data/doc/TermUtils/FF.html +135 -11
  27. data/doc/TermUtils/PropertyTreeNode.html +304 -190
  28. data/doc/TermUtils/Tab/Column.html +98 -96
  29. data/doc/TermUtils/Tab/Header.html +30 -30
  30. data/doc/TermUtils/Tab/Holder.html +81 -81
  31. data/doc/TermUtils/Tab/Printer.html +43 -43
  32. data/doc/TermUtils/Tab/Table.html +124 -128
  33. data/doc/TermUtils/Tab/TableError.html +7 -89
  34. data/doc/TermUtils/Tab.html +93 -86
  35. data/doc/TermUtils.html +10 -10
  36. data/doc/_index.html +62 -42
  37. data/doc/class_list.html +3 -3
  38. data/doc/css/style.css +3 -2
  39. data/doc/file.README.html +63 -26
  40. data/doc/file_list.html +2 -2
  41. data/doc/frames.html +2 -2
  42. data/doc/index.html +63 -26
  43. data/doc/js/app.js +14 -3
  44. data/doc/method_list.html +708 -236
  45. data/doc/top-level-namespace.html +7 -7
  46. data/lib/term_utils/ap/article.rb +15 -9
  47. data/lib/term_utils/ap/flag.rb +37 -20
  48. data/lib/term_utils/ap/parameter.rb +88 -19
  49. data/lib/term_utils/ap/parser.rb +143 -116
  50. data/lib/term_utils/ap/result.rb +208 -161
  51. data/lib/term_utils/ap/syntax.rb +53 -69
  52. data/lib/term_utils/ap.rb +79 -24
  53. data/lib/term_utils/ff/config.rb +22 -10
  54. data/lib/term_utils/{ap/no_such_value_error.rb → ff/entry.rb} +26 -8
  55. data/lib/term_utils/ff/finder.rb +255 -0
  56. data/lib/term_utils/ff/query.rb +94 -17
  57. data/lib/term_utils/ff.rb +12 -2
  58. data/lib/term_utils/property_tree_node.rb +47 -19
  59. data/lib/term_utils/tab.rb +106 -61
  60. data/lib/term_utils.rb +8 -1
  61. data/term_utils.gemspec +4 -4
  62. metadata +18 -17
  63. data/doc/TermUtils/AP/Element.html +0 -1025
  64. data/doc/TermUtils/AP/Level.html +0 -638
  65. data/doc/TermUtils/AP/NoSuchValueError.html +0 -217
  66. data/lib/term_utils/ap/element.rb +0 -78
  67. data/lib/term_utils/ap/level.rb +0 -57
  68. data/lib/term_utils/ap/parse_error.rb +0 -27
  69. data/lib/term_utils/ap/syntax_error.rb +0 -27
  70. data/lib/term_utils/ff/cursor.rb +0 -153
@@ -4,18 +4,18 @@
4
4
  <meta charset="utf-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>
7
- Class: TermUtils::FF::Cursor
7
+ Class: TermUtils::FF::FinderEntry
8
8
 
9
- &mdash; Documentation by YARD 0.9.20
9
+ &mdash; Documentation by YARD 0.9.34
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" />
14
14
 
15
- <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" />
16
16
 
17
- <script type="text/javascript" charset="utf-8">
18
- pathId = "TermUtils::FF::Cursor";
17
+ <script type="text/javascript">
18
+ pathId = "TermUtils::FF::FinderEntry";
19
19
  relpath = '../../';
20
20
  </script>
21
21
 
@@ -36,10 +36,10 @@
36
36
  <div id="header">
37
37
  <div id="menu">
38
38
 
39
- <a href="../../_index.html">Index (C)</a> &raquo;
39
+ <a href="../../_index.html">Index (F)</a> &raquo;
40
40
  <span class='title'><span class='object_link'><a href="../../TermUtils.html" title="TermUtils (module)">TermUtils</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../FF.html" title="TermUtils::FF (module)">FF</a></span></span>
41
41
  &raquo;
42
- <span class="title">Cursor</span>
42
+ <span class="title">FinderEntry</span>
43
43
 
44
44
  </div>
45
45
 
@@ -59,7 +59,7 @@
59
59
  <div class="clear"></div>
60
60
  </div>
61
61
 
62
- <div id="content"><h1>Class: TermUtils::FF::Cursor
62
+ <div id="content"><h1>Class: TermUtils::FF::FinderEntry
63
63
 
64
64
 
65
65
 
@@ -74,7 +74,7 @@
74
74
  <ul class="fullTree">
75
75
  <li>Object</li>
76
76
 
77
- <li class="next">TermUtils::FF::Cursor</li>
77
+ <li class="next">TermUtils::FF::FinderEntry</li>
78
78
 
79
79
  </ul>
80
80
  <a href="#" class="inheritanceTree">show all</a>
@@ -94,7 +94,7 @@
94
94
 
95
95
  <dl>
96
96
  <dt>Defined in:</dt>
97
- <dd>lib/term_utils/ff/cursor.rb</dd>
97
+ <dd>lib/term_utils/ff/finder.rb</dd>
98
98
  </dl>
99
99
 
100
100
  </div>
@@ -102,7 +102,7 @@
102
102
  <h2>Overview</h2><div class="docstring">
103
103
  <div class="discussion">
104
104
 
105
- <p>Represents a query cursor.</p>
105
+ <p>Represents filesystem Entry.</p>
106
106
 
107
107
 
108
108
  </div>
@@ -110,22 +110,39 @@
110
110
  <div class="tags">
111
111
 
112
112
 
113
- </div><h2>Defined Under Namespace</h2>
114
- <p class="children">
115
-
113
+ </div>
114
+
115
+
116
+
117
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
118
+ <ul class="summary">
116
119
 
120
+ <li class="public ">
121
+ <span class="summary_signature">
122
+
123
+ <a href="#gid-instance_method" title="#gid (instance method)">#<strong>gid</strong> &#x21d2; Integer </a>
124
+
125
+
126
+
127
+ </span>
128
+
129
+
117
130
 
118
131
 
119
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="Cursor/Context.html" title="TermUtils::FF::Cursor::Context (class)">Context</a></span>
120
132
 
121
133
 
122
- </p>
123
-
124
-
134
+
135
+
136
+
137
+
125
138
 
139
+
140
+ <span class="summary_desc"><div class='inline'>
141
+ <p>Returns the numeric group id of the owner of stat.</p>
142
+ </div></span>
143
+
144
+ </li>
126
145
 
127
- <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
128
- <ul class="summary">
129
146
 
130
147
  <li class="public ">
131
148
  <span class="summary_signature">
@@ -139,8 +156,6 @@
139
156
 
140
157
 
141
158
 
142
- <span class="note title readonly">readonly</span>
143
-
144
159
 
145
160
 
146
161
 
@@ -154,23 +169,37 @@
154
169
  </li>
155
170
 
156
171
 
157
- </ul>
158
-
159
-
172
+ <li class="public ">
173
+ <span class="summary_signature">
174
+
175
+ <a href="#kind-instance_method" title="#kind (instance method)">#<strong>kind</strong> &#x21d2; String </a>
176
+
160
177
 
178
+
179
+ </span>
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
161
190
 
162
191
 
163
- <h2>
164
- Instance Method Summary
165
- <small><a href="#" class="summary_toggle">collapse</a></small>
166
- </h2>
192
+ <span class="summary_desc"><div class='inline'>
193
+ <p>Identifies the type of stat.</p>
194
+ </div></span>
195
+
196
+ </li>
167
197
 
168
- <ul class="summary">
169
-
170
- <li class="public ">
198
+
199
+ <li class="public ">
171
200
  <span class="summary_signature">
172
201
 
173
- <a href="#bootstrap-instance_method" title="#bootstrap (instance method)">#<strong>bootstrap</strong> &#x21d2; TermUtils::FF::Cursor<sup>?</sup> </a>
202
+ <a href="#mode-instance_method" title="#mode (instance method)">#<strong>mode</strong> &#x21d2; Integer </a>
174
203
 
175
204
 
176
205
 
@@ -178,6 +207,9 @@
178
207
 
179
208
 
180
209
 
210
+
211
+
212
+
181
213
 
182
214
 
183
215
 
@@ -185,16 +217,16 @@
185
217
 
186
218
 
187
219
  <span class="summary_desc"><div class='inline'>
188
- <p>Starts the query.</p>
220
+ <p>Returns an integer representing the permission bits of stat.</p>
189
221
  </div></span>
190
222
 
191
223
  </li>
192
224
 
193
-
194
- <li class="public ">
225
+
226
+ <li class="public ">
195
227
  <span class="summary_signature">
196
228
 
197
- <a href="#components-instance_method" title="#components (instance method)">#<strong>components</strong> &#x21d2; Array&lt;String&gt; </a>
229
+ <a href="#name-instance_method" title="#name (instance method)">#<strong>name</strong> &#x21d2; String </a>
198
230
 
199
231
 
200
232
 
@@ -202,23 +234,24 @@
202
234
 
203
235
 
204
236
 
237
+
238
+
239
+
205
240
 
206
241
 
207
242
 
208
243
 
209
244
 
210
245
 
211
- <span class="summary_desc"><div class='inline'>
212
- <p>Returns the path components.</p>
213
- </div></span>
246
+ <span class="summary_desc"><div class='inline'></div></span>
214
247
 
215
248
  </li>
216
249
 
217
-
218
- <li class="public ">
250
+
251
+ <li class="public ">
219
252
  <span class="summary_signature">
220
253
 
221
- <a href="#depth-instance_method" title="#depth (instance method)">#<strong>depth</strong> &#x21d2; Integer </a>
254
+ <a href="#path-instance_method" title="#path (instance method)">#<strong>path</strong> &#x21d2; String </a>
222
255
 
223
256
 
224
257
 
@@ -226,6 +259,9 @@
226
259
 
227
260
 
228
261
 
262
+
263
+
264
+
229
265
 
230
266
 
231
267
 
@@ -236,11 +272,11 @@
236
272
 
237
273
  </li>
238
274
 
239
-
240
- <li class="public ">
275
+
276
+ <li class="public ">
241
277
  <span class="summary_signature">
242
278
 
243
- <a href="#following-instance_method" title="#following (instance method)">#<strong>following</strong> &#x21d2; TermUtils::FF::Cursor<sup>?</sup> </a>
279
+ <a href="#path_parts-instance_method" title="#path_parts (instance method)">#<strong>path_parts</strong> &#x21d2; Array&lt;String&gt; </a>
244
280
 
245
281
 
246
282
 
@@ -248,6 +284,34 @@
248
284
 
249
285
 
250
286
 
287
+
288
+
289
+
290
+
291
+
292
+
293
+
294
+
295
+
296
+ <span class="summary_desc"><div class='inline'></div></span>
297
+
298
+ </li>
299
+
300
+
301
+ <li class="public ">
302
+ <span class="summary_signature">
303
+
304
+ <a href="#size-instance_method" title="#size (instance method)">#<strong>size</strong> &#x21d2; Integer </a>
305
+
306
+
307
+
308
+ </span>
309
+
310
+
311
+
312
+
313
+
314
+
251
315
 
252
316
 
253
317
 
@@ -255,24 +319,25 @@
255
319
 
256
320
 
257
321
  <span class="summary_desc"><div class='inline'>
258
- <p>Returns the next cursor.</p>
322
+ <p>Returns the size of stat in bytes.</p>
259
323
  </div></span>
260
324
 
261
325
  </li>
262
326
 
263
-
264
- <li class="public ">
327
+
328
+ <li class="public ">
265
329
  <span class="summary_signature">
266
330
 
267
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(config, path) &#x21d2; Cursor </a>
331
+ <a href="#uid-instance_method" title="#uid (instance method)">#<strong>uid</strong> &#x21d2; Integer </a>
268
332
 
269
333
 
270
334
 
271
335
  </span>
272
336
 
273
337
 
274
- <span class="note title constructor">constructor</span>
275
338
 
339
+
340
+
276
341
 
277
342
 
278
343
 
@@ -281,16 +346,51 @@
281
346
 
282
347
 
283
348
  <span class="summary_desc"><div class='inline'>
284
- <p>A new instance of Cursor.</p>
349
+ <p>Returns the numeric user id of the owner of stat.</p>
285
350
  </div></span>
286
351
 
287
352
  </li>
288
353
 
354
+
355
+ </ul>
356
+
357
+
358
+
359
+
360
+
361
+ <h2>
362
+ Instance Method Summary
363
+ <small><a href="#" class="summary_toggle">collapse</a></small>
364
+ </h2>
365
+
366
+ <ul class="summary">
289
367
 
290
368
  <li class="public ">
291
369
  <span class="summary_signature">
292
370
 
293
- <a href="#name-instance_method" title="#name (instance method)">#<strong>name</strong> &#x21d2; String </a>
371
+ <a href="#depth-instance_method" title="#depth (instance method)">#<strong>depth</strong> &#x21d2; Integer </a>
372
+
373
+
374
+
375
+ </span>
376
+
377
+
378
+
379
+
380
+
381
+
382
+
383
+
384
+
385
+ <span class="summary_desc"><div class='inline'></div></span>
386
+
387
+ </li>
388
+
389
+
390
+ <li class="public ">
391
+ <span class="summary_signature">
392
+
393
+ <a href="#directory%3F-instance_method" title="#directory? (instance method)">#<strong>directory?</strong> &#x21d2; Boolean </a>
294
394
 
295
395
 
296
396
 
@@ -312,7 +412,7 @@
312
412
  <li class="public ">
313
413
  <span class="summary_signature">
314
414
 
315
- <a href="#relative_path-instance_method" title="#relative_path (instance method)">#<strong>relative_path</strong> &#x21d2; String </a>
415
+ <a href="#file%3F-instance_method" title="#file? (instance method)">#<strong>file?</strong> &#x21d2; Boolean </a>
316
416
 
317
417
 
318
418
 
@@ -334,13 +434,15 @@
334
434
  <li class="public ">
335
435
  <span class="summary_signature">
336
436
 
337
- <a href="#result-instance_method" title="#result (instance method)">#<strong>result</strong> &#x21d2; String </a>
437
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong> &#x21d2; FinderEntry </a>
338
438
 
339
439
 
340
440
 
341
441
  </span>
342
442
 
343
443
 
444
+ <span class="note title constructor">constructor</span>
445
+
344
446
 
345
447
 
346
448
 
@@ -349,7 +451,7 @@
349
451
 
350
452
 
351
453
  <span class="summary_desc"><div class='inline'>
352
- <p>Returns the result associated to this one.</p>
454
+ <p>A new instance of FinderEntry.</p>
353
455
  </div></span>
354
456
 
355
457
  </li>
@@ -364,7 +466,7 @@
364
466
  <div class="method_details first">
365
467
  <h3 class="signature first" id="initialize-instance_method">
366
468
 
367
- #<strong>initialize</strong>(config, path) &#x21d2; <tt><span class='object_link'><a href="" title="TermUtils::FF::Cursor (class)">Cursor</a></span></tt>
469
+ #<strong>initialize</strong> &#x21d2; <tt><span class='object_link'><a href="" title="TermUtils::FF::FinderEntry (class)">FinderEntry</a></span></tt>
368
470
 
369
471
 
370
472
 
@@ -373,29 +475,183 @@
373
475
  </h3><div class="docstring">
374
476
  <div class="discussion">
375
477
 
376
- <p>Returns a new instance of Cursor</p>
478
+ <p>Returns a new instance of FinderEntry.</p>
377
479
 
378
480
 
379
481
  </div>
380
482
  </div>
381
483
  <div class="tags">
382
- <p class="tag_title">Parameters:</p>
383
- <ul class="param">
384
484
 
385
- <li>
485
+
486
+ </div><table class="source_code">
487
+ <tr>
488
+ <td>
489
+ <pre class="lines">
490
+
491
+
492
+ 50
493
+ 51
494
+ 52
495
+ 53
496
+ 54
497
+ 55
498
+ 56</pre>
499
+ </td>
500
+ <td>
501
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ff/finder.rb', line 50</span>
502
+
503
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
504
+ <span class='ivar'>@index</span> <span class='op'>=</span> <span class='kw'>nil</span>
505
+ <span class='ivar'>@name</span> <span class='op'>=</span> <span class='kw'>nil</span>
506
+ <span class='ivar'>@kind</span> <span class='op'>=</span> <span class='kw'>nil</span>
507
+ <span class='ivar'>@path_parts</span> <span class='op'>=</span> <span class='kw'>nil</span>
508
+ <span class='ivar'>@path</span> <span class='op'>=</span> <span class='kw'>nil</span>
509
+ <span class='kw'>end</span></pre>
510
+ </td>
511
+ </tr>
512
+ </table>
513
+ </div>
514
+
515
+ </div>
516
+
517
+ <div id="instance_attr_details" class="attr_details">
518
+ <h2>Instance Attribute Details</h2>
519
+
386
520
 
387
- <span class='name'>config</span>
521
+ <span id="gid=-instance_method"></span>
522
+ <div class="method_details first">
523
+ <h3 class="signature first" id="gid-instance_method">
524
+
525
+ #<strong>gid</strong> &#x21d2; <tt>Integer</tt>
526
+
527
+
528
+
529
+
530
+
531
+ </h3><div class="docstring">
532
+ <div class="discussion">
533
+
534
+ <p>Returns the numeric group id of the owner of stat.</p>
535
+
536
+
537
+ </div>
538
+ </div>
539
+ <div class="tags">
540
+
541
+ <p class="tag_title">Returns:</p>
542
+ <ul class="return">
543
+
544
+ <li>
388
545
 
389
546
 
390
- <span class='type'>(<tt><span class='object_link'><a href="Config.html" title="TermUtils::FF::Config (class)">TermUtils::FF::Config</a></span></tt>)</span>
547
+ <span class='type'>(<tt>Integer</tt>)</span>
391
548
 
392
549
 
393
550
 
394
551
  </li>
395
552
 
553
+ </ul>
554
+
555
+ </div><table class="source_code">
556
+ <tr>
557
+ <td>
558
+ <pre class="lines">
559
+
560
+
561
+ 37
562
+ 38
563
+ 39</pre>
564
+ </td>
565
+ <td>
566
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ff/finder.rb', line 37</span>
567
+
568
+ <span class='kw'>def</span> <span class='id identifier rubyid_gid'>gid</span>
569
+ <span class='ivar'>@gid</span>
570
+ <span class='kw'>end</span></pre>
571
+ </td>
572
+ </tr>
573
+ </table>
574
+ </div>
575
+
576
+
577
+ <span id="index=-instance_method"></span>
578
+ <div class="method_details ">
579
+ <h3 class="signature " id="index-instance_method">
580
+
581
+ #<strong>index</strong> &#x21d2; <tt>Integer</tt>
582
+
583
+
584
+
585
+
586
+
587
+ </h3><div class="docstring">
588
+ <div class="discussion">
589
+
590
+
591
+ </div>
592
+ </div>
593
+ <div class="tags">
594
+
595
+ <p class="tag_title">Returns:</p>
596
+ <ul class="return">
597
+
396
598
  <li>
397
599
 
398
- <span class='name'>path</span>
600
+
601
+ <span class='type'>(<tt>Integer</tt>)</span>
602
+
603
+
604
+
605
+ </li>
606
+
607
+ </ul>
608
+
609
+ </div><table class="source_code">
610
+ <tr>
611
+ <td>
612
+ <pre class="lines">
613
+
614
+
615
+ 24
616
+ 25
617
+ 26</pre>
618
+ </td>
619
+ <td>
620
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ff/finder.rb', line 24</span>
621
+
622
+ <span class='kw'>def</span> <span class='id identifier rubyid_index'>index</span>
623
+ <span class='ivar'>@index</span>
624
+ <span class='kw'>end</span></pre>
625
+ </td>
626
+ </tr>
627
+ </table>
628
+ </div>
629
+
630
+
631
+ <span id="kind=-instance_method"></span>
632
+ <div class="method_details ">
633
+ <h3 class="signature " id="kind-instance_method">
634
+
635
+ #<strong>kind</strong> &#x21d2; <tt>String</tt>
636
+
637
+
638
+
639
+
640
+
641
+ </h3><div class="docstring">
642
+ <div class="discussion">
643
+
644
+ <p>Identifies the type of stat. The return string is one of: “file”, “directory”, “characterSpecial”, “blockSpecial”, “fifo”, “link”, “socket”, or “unknown”.</p>
645
+
646
+
647
+ </div>
648
+ </div>
649
+ <div class="tags">
650
+
651
+ <p class="tag_title">Returns:</p>
652
+ <ul class="return">
653
+
654
+ <li>
399
655
 
400
656
 
401
657
  <span class='type'>(<tt>String</tt>)</span>
@@ -406,47 +662,33 @@
406
662
 
407
663
  </ul>
408
664
 
409
-
410
665
  </div><table class="source_code">
411
666
  <tr>
412
667
  <td>
413
668
  <pre class="lines">
414
669
 
415
670
 
416
- 29
417
- 30
418
671
  31
419
672
  32
420
- 33
421
- 34
422
- 35</pre>
673
+ 33</pre>
423
674
  </td>
424
675
  <td>
425
- <pre class="code"><span class="info file"># File 'lib/term_utils/ff/cursor.rb', line 29</span>
426
-
427
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_config'>config</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
428
- <span class='ivar'>@config</span> <span class='op'>=</span> <span class='id identifier rubyid_config'>config</span>
429
- <span class='ivar'>@path</span> <span class='op'>=</span> <span class='id identifier rubyid_path'>path</span>
430
- <span class='ivar'>@contexts</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
431
- <span class='id identifier rubyid_push_context'>push_context</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
432
- <span class='ivar'>@index</span> <span class='op'>=</span> <span class='int'>0</span>
676
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ff/finder.rb', line 31</span>
677
+
678
+ <span class='kw'>def</span> <span class='id identifier rubyid_kind'>kind</span>
679
+ <span class='ivar'>@kind</span>
433
680
  <span class='kw'>end</span></pre>
434
681
  </td>
435
682
  </tr>
436
683
  </table>
437
684
  </div>
438
-
439
- </div>
440
-
441
- <div id="instance_attr_details" class="attr_details">
442
- <h2>Instance Attribute Details</h2>
443
685
 
444
686
 
445
- <span id=""></span>
446
- <div class="method_details first">
447
- <h3 class="signature first" id="index-instance_method">
687
+ <span id="mode=-instance_method"></span>
688
+ <div class="method_details ">
689
+ <h3 class="signature " id="mode-instance_method">
448
690
 
449
- #<strong>index</strong> &#x21d2; <tt>Integer</tt> <span class="extras">(readonly)</span>
691
+ #<strong>mode</strong> &#x21d2; <tt>Integer</tt>
450
692
 
451
693
 
452
694
 
@@ -455,6 +697,8 @@
455
697
  </h3><div class="docstring">
456
698
  <div class="discussion">
457
699
 
700
+ <p>Returns an integer representing the permission bits of stat. The meaning of the bits is platform dependent.</p>
701
+
458
702
 
459
703
  </div>
460
704
  </div>
@@ -480,32 +724,81 @@
480
724
  <pre class="lines">
481
725
 
482
726
 
483
- 26
484
- 27
485
- 28</pre>
727
+ 41
728
+ 42
729
+ 43</pre>
486
730
  </td>
487
731
  <td>
488
- <pre class="code"><span class="info file"># File 'lib/term_utils/ff/cursor.rb', line 26</span>
732
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ff/finder.rb', line 41</span>
489
733
 
490
- <span class='kw'>def</span> <span class='id identifier rubyid_index'>index</span>
491
- <span class='ivar'>@index</span>
734
+ <span class='kw'>def</span> <span class='id identifier rubyid_mode'>mode</span>
735
+ <span class='ivar'>@mode</span>
492
736
  <span class='kw'>end</span></pre>
493
737
  </td>
494
738
  </tr>
495
739
  </table>
496
740
  </div>
497
741
 
742
+
743
+ <span id="name=-instance_method"></span>
744
+ <div class="method_details ">
745
+ <h3 class="signature " id="name-instance_method">
746
+
747
+ #<strong>name</strong> &#x21d2; <tt>String</tt>
748
+
749
+
750
+
751
+
752
+
753
+ </h3><div class="docstring">
754
+ <div class="discussion">
755
+
756
+
498
757
  </div>
758
+ </div>
759
+ <div class="tags">
760
+
761
+ <p class="tag_title">Returns:</p>
762
+ <ul class="return">
763
+
764
+ <li>
765
+
766
+
767
+ <span class='type'>(<tt>String</tt>)</span>
768
+
769
+
770
+
771
+ </li>
772
+
773
+ </ul>
499
774
 
775
+ </div><table class="source_code">
776
+ <tr>
777
+ <td>
778
+ <pre class="lines">
500
779
 
501
- <div id="instance_method_details" class="method_details_list">
502
- <h2>Instance Method Details</h2>
503
780
 
781
+ 26
782
+ 27
783
+ 28</pre>
784
+ </td>
785
+ <td>
786
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ff/finder.rb', line 26</span>
787
+
788
+ <span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
789
+ <span class='ivar'>@name</span>
790
+ <span class='kw'>end</span></pre>
791
+ </td>
792
+ </tr>
793
+ </table>
794
+ </div>
504
795
 
505
- <div class="method_details first">
506
- <h3 class="signature first" id="bootstrap-instance_method">
796
+
797
+ <span id="path=-instance_method"></span>
798
+ <div class="method_details ">
799
+ <h3 class="signature " id="path-instance_method">
507
800
 
508
- #<strong>bootstrap</strong> &#x21d2; <tt><span class='object_link'><a href="" title="TermUtils::FF::Cursor (class)">TermUtils::FF::Cursor</a></span></tt><sup>?</sup>
801
+ #<strong>path</strong> &#x21d2; <tt>String</tt>
509
802
 
510
803
 
511
804
 
@@ -514,8 +807,6 @@
514
807
  </h3><div class="docstring">
515
808
  <div class="discussion">
516
809
 
517
- <p>Starts the query.</p>
518
-
519
810
 
520
811
  </div>
521
812
  </div>
@@ -527,7 +818,7 @@
527
818
  <li>
528
819
 
529
820
 
530
- <span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::FF::Cursor (class)">TermUtils::FF::Cursor</a></span></tt>, <tt>nil</tt>)</span>
821
+ <span class='type'>(<tt>String</tt>)</span>
531
822
 
532
823
 
533
824
 
@@ -541,39 +832,27 @@
541
832
  <pre class="lines">
542
833
 
543
834
 
544
- 38
545
- 39
546
- 40
547
- 41
548
- 42
549
- 43
550
- 44
551
- 45
552
- 46
553
- 47</pre>
835
+ 48
836
+ 49
837
+ 50</pre>
554
838
  </td>
555
839
  <td>
556
- <pre class="code"><span class="info file"># File 'lib/term_utils/ff/cursor.rb', line 38</span>
557
-
558
- <span class='kw'>def</span> <span class='id identifier rubyid_bootstrap'>bootstrap</span>
559
- <span class='id identifier rubyid_res'>res</span> <span class='op'>=</span> <span class='kw'>self</span>
560
- <span class='kw'>if</span> <span class='ivar'>@config</span><span class='period'>.</span><span class='id identifier rubyid_min_depth'>min_depth</span>
561
- <span class='kw'>while</span> <span class='id identifier rubyid_depth'>depth</span> <span class='op'>&lt;</span> <span class='ivar'>@config</span><span class='period'>.</span><span class='id identifier rubyid_min_depth'>min_depth</span>
562
- <span class='id identifier rubyid_res'>res</span> <span class='op'>=</span> <span class='id identifier rubyid_following0'>following0</span>
563
- <span class='kw'>break</span> <span class='kw'>unless</span> <span class='id identifier rubyid_res'>res</span>
564
- <span class='kw'>end</span>
565
- <span class='kw'>end</span>
566
- <span class='id identifier rubyid_res'>res</span>
840
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ff/finder.rb', line 48</span>
841
+
842
+ <span class='kw'>def</span> <span class='id identifier rubyid_path'>path</span>
843
+ <span class='ivar'>@path</span>
567
844
  <span class='kw'>end</span></pre>
568
845
  </td>
569
846
  </tr>
570
847
  </table>
571
848
  </div>
572
849
 
850
+
851
+ <span id="path_parts=-instance_method"></span>
573
852
  <div class="method_details ">
574
- <h3 class="signature " id="components-instance_method">
853
+ <h3 class="signature " id="path_parts-instance_method">
575
854
 
576
- #<strong>components</strong> &#x21d2; <tt>Array&lt;String&gt;</tt>
855
+ #<strong>path_parts</strong> &#x21d2; <tt>Array&lt;String&gt;</tt>
577
856
 
578
857
 
579
858
 
@@ -582,8 +861,6 @@
582
861
  </h3><div class="docstring">
583
862
  <div class="discussion">
584
863
 
585
- <p>Returns the path components.</p>
586
-
587
864
 
588
865
  </div>
589
866
  </div>
@@ -609,25 +886,27 @@
609
886
  <pre class="lines">
610
887
 
611
888
 
612
- 85
613
- 86
614
- 87</pre>
889
+ 46
890
+ 47
891
+ 48</pre>
615
892
  </td>
616
893
  <td>
617
- <pre class="code"><span class="info file"># File 'lib/term_utils/ff/cursor.rb', line 85</span>
894
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ff/finder.rb', line 46</span>
618
895
 
619
- <span class='kw'>def</span> <span class='id identifier rubyid_components'>components</span>
620
- <span class='ivar'>@contexts</span><span class='period'>.</span><span class='id identifier rubyid_last'>last</span><span class='period'>.</span><span class='id identifier rubyid_components'>components</span><span class='period'>.</span><span class='id identifier rubyid_dup'>dup</span>
896
+ <span class='kw'>def</span> <span class='id identifier rubyid_path_parts'>path_parts</span>
897
+ <span class='ivar'>@path_parts</span>
621
898
  <span class='kw'>end</span></pre>
622
899
  </td>
623
900
  </tr>
624
901
  </table>
625
902
  </div>
626
903
 
904
+
905
+ <span id="size=-instance_method"></span>
627
906
  <div class="method_details ">
628
- <h3 class="signature " id="depth-instance_method">
907
+ <h3 class="signature " id="size-instance_method">
629
908
 
630
- #<strong>depth</strong> &#x21d2; <tt>Integer</tt>
909
+ #<strong>size</strong> &#x21d2; <tt>Integer</tt>
631
910
 
632
911
 
633
912
 
@@ -636,6 +915,8 @@
636
915
  </h3><div class="docstring">
637
916
  <div class="discussion">
638
917
 
918
+ <p>Returns the size of stat in bytes.</p>
919
+
639
920
 
640
921
  </div>
641
922
  </div>
@@ -661,25 +942,27 @@
661
942
  <pre class="lines">
662
943
 
663
944
 
664
- 72
665
- 73
666
- 74</pre>
945
+ 44
946
+ 45
947
+ 46</pre>
667
948
  </td>
668
949
  <td>
669
- <pre class="code"><span class="info file"># File 'lib/term_utils/ff/cursor.rb', line 72</span>
950
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ff/finder.rb', line 44</span>
670
951
 
671
- <span class='kw'>def</span> <span class='id identifier rubyid_depth'>depth</span>
672
- <span class='ivar'>@contexts</span><span class='period'>.</span><span class='id identifier rubyid_last'>last</span><span class='period'>.</span><span class='id identifier rubyid_components'>components</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span>
952
+ <span class='kw'>def</span> <span class='id identifier rubyid_size'>size</span>
953
+ <span class='ivar'>@size</span>
673
954
  <span class='kw'>end</span></pre>
674
955
  </td>
675
956
  </tr>
676
957
  </table>
677
958
  </div>
678
959
 
960
+
961
+ <span id="uid=-instance_method"></span>
679
962
  <div class="method_details ">
680
- <h3 class="signature " id="following-instance_method">
963
+ <h3 class="signature " id="uid-instance_method">
681
964
 
682
- #<strong>following</strong> &#x21d2; <tt><span class='object_link'><a href="" title="TermUtils::FF::Cursor (class)">TermUtils::FF::Cursor</a></span></tt><sup>?</sup>
965
+ #<strong>uid</strong> &#x21d2; <tt>Integer</tt>
683
966
 
684
967
 
685
968
 
@@ -688,7 +971,7 @@
688
971
  </h3><div class="docstring">
689
972
  <div class="discussion">
690
973
 
691
- <p>Returns the next cursor.</p>
974
+ <p>Returns the numeric user id of the owner of stat.</p>
692
975
 
693
976
 
694
977
  </div>
@@ -701,7 +984,7 @@
701
984
  <li>
702
985
 
703
986
 
704
- <span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::FF::Cursor (class)">TermUtils::FF::Cursor</a></span></tt>, <tt>nil</tt>)</span>
987
+ <span class='type'>(<tt>Integer</tt>)</span>
705
988
 
706
989
 
707
990
 
@@ -715,51 +998,32 @@
715
998
  <pre class="lines">
716
999
 
717
1000
 
718
- 50
719
- 51
720
- 52
721
- 53
722
- 54
723
- 55
724
- 56
725
- 57
726
- 58
727
- 59
728
- 60
729
- 61
730
- 62
731
- 63
732
- 64
733
- 65</pre>
1001
+ 34
1002
+ 35
1003
+ 36</pre>
734
1004
  </td>
735
1005
  <td>
736
- <pre class="code"><span class="info file"># File 'lib/term_utils/ff/cursor.rb', line 50</span>
737
-
738
- <span class='kw'>def</span> <span class='id identifier rubyid_following'>following</span>
739
- <span class='id identifier rubyid_res'>res</span> <span class='op'>=</span> <span class='kw'>nil</span>
740
- <span class='id identifier rubyid_loop'>loop</span> <span class='kw'>do</span>
741
- <span class='id identifier rubyid_res'>res</span> <span class='op'>=</span> <span class='id identifier rubyid_following0'>following0</span>
742
- <span class='kw'>break</span> <span class='kw'>unless</span> <span class='id identifier rubyid_res'>res</span>
743
- <span class='kw'>if</span> <span class='ivar'>@config</span><span class='period'>.</span><span class='id identifier rubyid_min_depth'>min_depth</span>
744
- <span class='kw'>next</span> <span class='kw'>if</span> <span class='id identifier rubyid_depth'>depth</span> <span class='op'>&lt;</span> <span class='ivar'>@config</span><span class='period'>.</span><span class='id identifier rubyid_min_depth'>min_depth</span>
745
- <span class='kw'>end</span>
746
- <span class='kw'>if</span> <span class='ivar'>@config</span><span class='period'>.</span><span class='id identifier rubyid_max_depth'>max_depth</span>
747
- <span class='kw'>next</span> <span class='kw'>if</span> <span class='id identifier rubyid_depth'>depth</span> <span class='op'>&gt;</span> <span class='ivar'>@config</span><span class='period'>.</span><span class='id identifier rubyid_max_depth'>max_depth</span>
748
- <span class='kw'>end</span>
749
- <span class='ivar'>@index</span> <span class='op'>+=</span> <span class='int'>1</span>
750
- <span class='kw'>break</span>
751
- <span class='kw'>end</span>
752
- <span class='id identifier rubyid_res'>res</span>
1006
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ff/finder.rb', line 34</span>
1007
+
1008
+ <span class='kw'>def</span> <span class='id identifier rubyid_uid'>uid</span>
1009
+ <span class='ivar'>@uid</span>
753
1010
  <span class='kw'>end</span></pre>
754
1011
  </td>
755
1012
  </tr>
756
1013
  </table>
757
1014
  </div>
758
1015
 
759
- <div class="method_details ">
760
- <h3 class="signature " id="name-instance_method">
1016
+ </div>
1017
+
1018
+
1019
+ <div id="instance_method_details" class="method_details_list">
1020
+ <h2>Instance Method Details</h2>
1021
+
1022
+
1023
+ <div class="method_details first">
1024
+ <h3 class="signature first" id="depth-instance_method">
761
1025
 
762
- #<strong>name</strong> &#x21d2; <tt>String</tt>
1026
+ #<strong>depth</strong> &#x21d2; <tt>Integer</tt>
763
1027
 
764
1028
 
765
1029
 
@@ -779,7 +1043,7 @@
779
1043
  <li>
780
1044
 
781
1045
 
782
- <span class='type'>(<tt>String</tt>)</span>
1046
+ <span class='type'>(<tt>Integer</tt>)</span>
783
1047
 
784
1048
 
785
1049
 
@@ -793,15 +1057,15 @@
793
1057
  <pre class="lines">
794
1058
 
795
1059
 
796
- 80
797
- 81
798
- 82</pre>
1060
+ 67
1061
+ 68
1062
+ 69</pre>
799
1063
  </td>
800
1064
  <td>
801
- <pre class="code"><span class="info file"># File 'lib/term_utils/ff/cursor.rb', line 80</span>
1065
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ff/finder.rb', line 67</span>
802
1066
 
803
- <span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
804
- <span class='ivar'>@contexts</span><span class='period'>.</span><span class='id identifier rubyid_last'>last</span><span class='period'>.</span><span class='id identifier rubyid_components'>components</span><span class='lbracket'>[</span><span class='op'>-</span><span class='int'>1</span><span class='rbracket'>]</span>
1067
+ <span class='kw'>def</span> <span class='id identifier rubyid_depth'>depth</span>
1068
+ <span class='ivar'>@path_parts</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span>
805
1069
  <span class='kw'>end</span></pre>
806
1070
  </td>
807
1071
  </tr>
@@ -809,9 +1073,9 @@
809
1073
  </div>
810
1074
 
811
1075
  <div class="method_details ">
812
- <h3 class="signature " id="relative_path-instance_method">
1076
+ <h3 class="signature " id="directory?-instance_method">
813
1077
 
814
- #<strong>relative_path</strong> &#x21d2; <tt>String</tt>
1078
+ #<strong>directory?</strong> &#x21d2; <tt>Boolean</tt>
815
1079
 
816
1080
 
817
1081
 
@@ -831,7 +1095,7 @@
831
1095
  <li>
832
1096
 
833
1097
 
834
- <span class='type'>(<tt>String</tt>)</span>
1098
+ <span class='type'>(<tt>Boolean</tt>)</span>
835
1099
 
836
1100
 
837
1101
 
@@ -845,15 +1109,15 @@
845
1109
  <pre class="lines">
846
1110
 
847
1111
 
848
- 76
849
- 77
850
- 78</pre>
1112
+ 58
1113
+ 59
1114
+ 60</pre>
851
1115
  </td>
852
1116
  <td>
853
- <pre class="code"><span class="info file"># File 'lib/term_utils/ff/cursor.rb', line 76</span>
1117
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ff/finder.rb', line 58</span>
854
1118
 
855
- <span class='kw'>def</span> <span class='id identifier rubyid_relative_path'>relative_path</span>
856
- <span class='ivar'>@contexts</span><span class='period'>.</span><span class='id identifier rubyid_last'>last</span><span class='period'>.</span><span class='id identifier rubyid_components'>components</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
1119
+ <span class='kw'>def</span> <span class='id identifier rubyid_directory?'>directory?</span>
1120
+ <span class='ivar'>@kind</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>directory</span><span class='tstring_end'>&#39;</span></span>
857
1121
  <span class='kw'>end</span></pre>
858
1122
  </td>
859
1123
  </tr>
@@ -861,9 +1125,9 @@
861
1125
  </div>
862
1126
 
863
1127
  <div class="method_details ">
864
- <h3 class="signature " id="result-instance_method">
1128
+ <h3 class="signature " id="file?-instance_method">
865
1129
 
866
- #<strong>result</strong> &#x21d2; <tt>String</tt>
1130
+ #<strong>file?</strong> &#x21d2; <tt>Boolean</tt>
867
1131
 
868
1132
 
869
1133
 
@@ -872,8 +1136,6 @@
872
1136
  </h3><div class="docstring">
873
1137
  <div class="discussion">
874
1138
 
875
- <p>Returns the result associated to this one.</p>
876
-
877
1139
 
878
1140
  </div>
879
1141
  </div>
@@ -885,7 +1147,7 @@
885
1147
  <li>
886
1148
 
887
1149
 
888
- <span class='type'>(<tt>String</tt>)</span>
1150
+ <span class='type'>(<tt>Boolean</tt>)</span>
889
1151
 
890
1152
 
891
1153
 
@@ -899,15 +1161,15 @@
899
1161
  <pre class="lines">
900
1162
 
901
1163
 
902
- 68
903
- 69
904
- 70</pre>
1164
+ 62
1165
+ 63
1166
+ 64</pre>
905
1167
  </td>
906
1168
  <td>
907
- <pre class="code"><span class="info file"># File 'lib/term_utils/ff/cursor.rb', line 68</span>
1169
+ <pre class="code"><span class="info file"># File 'lib/term_utils/ff/finder.rb', line 62</span>
908
1170
 
909
- <span class='kw'>def</span> <span class='id identifier rubyid_result'>result</span>
910
- <span class='ivar'>@contexts</span><span class='period'>.</span><span class='id identifier rubyid_last'>last</span><span class='period'>.</span><span class='id identifier rubyid_path'>path</span>
1171
+ <span class='kw'>def</span> <span class='id identifier rubyid_file?'>file?</span>
1172
+ <span class='ivar'>@kind</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>file</span><span class='tstring_end'>&#39;</span></span>
911
1173
  <span class='kw'>end</span></pre>
912
1174
  </td>
913
1175
  </tr>
@@ -919,9 +1181,9 @@
919
1181
  </div>
920
1182
 
921
1183
  <div id="footer">
922
- Generated on Fri Feb 7 18:54:41 2020 by
923
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
924
- 0.9.20 (ruby-2.6.5).
1184
+ Generated on Wed Aug 9 17:34:27 2023 by
1185
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1186
+ 0.9.34 (ruby-3.2.2).
925
1187
  </div>
926
1188
 
927
1189
  </div>