term_utils 0.3.2 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -2
- data/COPYING +3 -3
- data/README.md +51 -16
- data/Rakefile +6 -0
- data/doc/TermUtils/AP/Article.html +57 -55
- data/doc/TermUtils/AP/ArticleResult.html +584 -0
- data/doc/TermUtils/AP/Flag.html +295 -78
- data/doc/TermUtils/AP/Parameter.html +891 -103
- data/doc/TermUtils/AP/ParameterResult.html +980 -0
- data/doc/TermUtils/{FF/Cursor/Context.html → AP/ParameterWalkerHooks.html} +60 -60
- data/doc/TermUtils/AP/ParseError.html +651 -19
- data/doc/TermUtils/AP/Parser.html +181 -121
- data/doc/TermUtils/AP/Result.html +201 -528
- data/doc/TermUtils/AP/Syntax.html +103 -393
- data/doc/TermUtils/AP/SyntaxError.html +9 -91
- data/doc/TermUtils/AP/Walker.html +686 -0
- data/doc/TermUtils/AP.html +49 -160
- data/doc/TermUtils/FF/Config.html +203 -35
- data/doc/TermUtils/FF/Context.html +585 -0
- data/doc/TermUtils/FF/Entry.html +626 -0
- data/doc/TermUtils/FF/Finder.html +850 -0
- data/doc/TermUtils/FF/{Cursor.html → FinderEntry.html} +473 -211
- data/doc/TermUtils/FF/FinderQuery.html +946 -0
- data/doc/TermUtils/FF/Query.html +402 -70
- data/doc/TermUtils/FF.html +135 -11
- data/doc/TermUtils/PropertyTreeNode.html +304 -190
- data/doc/TermUtils/Tab/Column.html +98 -96
- data/doc/TermUtils/Tab/Header.html +30 -30
- data/doc/TermUtils/Tab/Holder.html +81 -81
- data/doc/TermUtils/Tab/Printer.html +43 -43
- data/doc/TermUtils/Tab/Table.html +124 -128
- data/doc/TermUtils/Tab/TableError.html +7 -89
- data/doc/TermUtils/Tab.html +93 -86
- data/doc/TermUtils.html +10 -10
- data/doc/_index.html +62 -42
- data/doc/class_list.html +3 -3
- data/doc/css/style.css +3 -2
- data/doc/file.README.html +63 -26
- data/doc/file_list.html +2 -2
- data/doc/frames.html +2 -2
- data/doc/index.html +63 -26
- data/doc/js/app.js +14 -3
- data/doc/method_list.html +708 -236
- data/doc/top-level-namespace.html +7 -7
- data/lib/term_utils/ap/article.rb +15 -9
- data/lib/term_utils/ap/flag.rb +37 -20
- data/lib/term_utils/ap/parameter.rb +88 -19
- data/lib/term_utils/ap/parser.rb +143 -116
- data/lib/term_utils/ap/result.rb +208 -161
- data/lib/term_utils/ap/syntax.rb +53 -69
- data/lib/term_utils/ap.rb +79 -24
- data/lib/term_utils/ff/config.rb +22 -10
- data/lib/term_utils/{ap/no_such_value_error.rb → ff/entry.rb} +26 -8
- data/lib/term_utils/ff/finder.rb +255 -0
- data/lib/term_utils/ff/query.rb +94 -17
- data/lib/term_utils/ff.rb +12 -2
- data/lib/term_utils/property_tree_node.rb +47 -19
- data/lib/term_utils/tab.rb +106 -61
- data/lib/term_utils.rb +8 -1
- data/term_utils.gemspec +4 -4
- metadata +18 -17
- data/doc/TermUtils/AP/Element.html +0 -1025
- data/doc/TermUtils/AP/Level.html +0 -638
- data/doc/TermUtils/AP/NoSuchValueError.html +0 -217
- data/lib/term_utils/ap/element.rb +0 -78
- data/lib/term_utils/ap/level.rb +0 -57
- data/lib/term_utils/ap/parse_error.rb +0 -27
- data/lib/term_utils/ap/syntax_error.rb +0 -27
- data/lib/term_utils/ff/cursor.rb +0 -153
data/doc/TermUtils/FF/Query.html
CHANGED
@@ -6,15 +6,15 @@
|
|
6
6
|
<title>
|
7
7
|
Class: TermUtils::FF::Query
|
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::FF::Query";
|
19
19
|
relpath = '../../';
|
20
20
|
</script>
|
@@ -118,6 +118,63 @@
|
|
118
118
|
|
119
119
|
|
120
120
|
|
121
|
+
<h2>
|
122
|
+
Class Method Summary
|
123
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
124
|
+
</h2>
|
125
|
+
|
126
|
+
<ul class="summary">
|
127
|
+
|
128
|
+
<li class="public ">
|
129
|
+
<span class="summary_signature">
|
130
|
+
|
131
|
+
<a href="#accept_entry_name%3F-class_method" title="accept_entry_name? (class method)">.<strong>accept_entry_name?</strong>(ctx, name) ⇒ Boolean </a>
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
</span>
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
<span class="summary_desc"><div class='inline'>
|
146
|
+
<p>Tests whether a given entry should be accepted.</p>
|
147
|
+
</div></span>
|
148
|
+
|
149
|
+
</li>
|
150
|
+
|
151
|
+
|
152
|
+
<li class="public ">
|
153
|
+
<span class="summary_signature">
|
154
|
+
|
155
|
+
<a href="#search-class_method" title="search (class method)">.<strong>search</strong>(ctx, parent_entry) ⇒ nil </a>
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
</span>
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
<span class="summary_desc"><div class='inline'>
|
170
|
+
<p>Searches a directory.</p>
|
171
|
+
</div></span>
|
172
|
+
|
173
|
+
</li>
|
174
|
+
|
175
|
+
|
176
|
+
</ul>
|
177
|
+
|
121
178
|
<h2>
|
122
179
|
Instance Method Summary
|
123
180
|
<small><a href="#" class="summary_toggle">collapse</a></small>
|
@@ -128,7 +185,7 @@
|
|
128
185
|
<li class="public ">
|
129
186
|
<span class="summary_signature">
|
130
187
|
|
131
|
-
<a href="#exec-instance_method" title="#exec (instance method)">#<strong>exec</strong>(path) ⇒
|
188
|
+
<a href="#exec-instance_method" title="#exec (instance method)">#<strong>exec</strong>(path, &block) ⇒ Array<Entry> </a>
|
132
189
|
|
133
190
|
|
134
191
|
|
@@ -152,7 +209,7 @@
|
|
152
209
|
<li class="public ">
|
153
210
|
<span class="summary_signature">
|
154
211
|
|
155
|
-
<a href="#ignore-instance_method" title="#ignore (instance method)">#<strong>ignore</strong>(regexp) ⇒
|
212
|
+
<a href="#ignore-instance_method" title="#ignore (instance method)">#<strong>ignore</strong>(regexp) ⇒ Query </a>
|
156
213
|
|
157
214
|
|
158
215
|
|
@@ -167,7 +224,7 @@
|
|
167
224
|
|
168
225
|
|
169
226
|
<span class="summary_desc"><div class='inline'>
|
170
|
-
<p>Adds a Regexp
|
227
|
+
<p>Adds a Regexp for ignoring file names.</p>
|
171
228
|
</div></span>
|
172
229
|
|
173
230
|
</li>
|
@@ -193,7 +250,7 @@
|
|
193
250
|
|
194
251
|
|
195
252
|
<span class="summary_desc"><div class='inline'>
|
196
|
-
<p>
|
253
|
+
<p>Constructs a new Query.</p>
|
197
254
|
</div></span>
|
198
255
|
|
199
256
|
</li>
|
@@ -224,7 +281,7 @@
|
|
224
281
|
<li class="public ">
|
225
282
|
<span class="summary_signature">
|
226
283
|
|
227
|
-
<a href="#max_depth-instance_method" title="#max_depth (instance method)">#<strong>max_depth</strong>(depth) ⇒
|
284
|
+
<a href="#max_depth-instance_method" title="#max_depth (instance method)">#<strong>max_depth</strong>(depth) ⇒ Query </a>
|
228
285
|
|
229
286
|
|
230
287
|
|
@@ -248,7 +305,7 @@
|
|
248
305
|
<li class="public ">
|
249
306
|
<span class="summary_signature">
|
250
307
|
|
251
|
-
<a href="#min_depth-instance_method" title="#min_depth (instance method)">#<strong>min_depth</strong>(depth) ⇒
|
308
|
+
<a href="#min_depth-instance_method" title="#min_depth (instance method)">#<strong>min_depth</strong>(depth) ⇒ Query </a>
|
252
309
|
|
253
310
|
|
254
311
|
|
@@ -272,7 +329,7 @@
|
|
272
329
|
<li class="public ">
|
273
330
|
<span class="summary_signature">
|
274
331
|
|
275
|
-
<a href="#sort-instance_method" title="#sort (instance method)">#<strong>sort</strong>(
|
332
|
+
<a href="#sort-instance_method" title="#sort (instance method)">#<strong>sort</strong>(mode = :forward, &block) ⇒ Query </a>
|
276
333
|
|
277
334
|
|
278
335
|
|
@@ -287,7 +344,7 @@
|
|
287
344
|
|
288
345
|
|
289
346
|
<span class="summary_desc"><div class='inline'>
|
290
|
-
<p>Sets
|
347
|
+
<p>Sets the sorting mode.</p>
|
291
348
|
</div></span>
|
292
349
|
|
293
350
|
</li>
|
@@ -311,7 +368,7 @@
|
|
311
368
|
</h3><div class="docstring">
|
312
369
|
<div class="discussion">
|
313
370
|
|
314
|
-
<p>
|
371
|
+
<p>Constructs a new Query.</p>
|
315
372
|
|
316
373
|
|
317
374
|
</div>
|
@@ -325,12 +382,12 @@
|
|
325
382
|
<pre class="lines">
|
326
383
|
|
327
384
|
|
328
|
-
|
329
|
-
|
330
|
-
|
385
|
+
26
|
386
|
+
27
|
387
|
+
28</pre>
|
331
388
|
</td>
|
332
389
|
<td>
|
333
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/query.rb', line
|
390
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/query.rb', line 26</span>
|
334
391
|
|
335
392
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
336
393
|
<span class='ivar'>@config</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="../FF.html" title="TermUtils::FF (module)">FF</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Config.html" title="TermUtils::FF::Config (class)">Config</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Config.html#initialize-instance_method" title="TermUtils::FF::Config#initialize (method)">new</a></span></span>
|
@@ -343,6 +400,234 @@
|
|
343
400
|
</div>
|
344
401
|
|
345
402
|
|
403
|
+
<div id="class_method_details" class="method_details_list">
|
404
|
+
<h2>Class Method Details</h2>
|
405
|
+
|
406
|
+
|
407
|
+
<div class="method_details first">
|
408
|
+
<h3 class="signature first" id="accept_entry_name?-class_method">
|
409
|
+
|
410
|
+
.<strong>accept_entry_name?</strong>(ctx, name) ⇒ <tt>Boolean</tt>
|
411
|
+
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
|
416
|
+
</h3><div class="docstring">
|
417
|
+
<div class="discussion">
|
418
|
+
|
419
|
+
<p>Tests whether a given entry should be accepted.</p>
|
420
|
+
|
421
|
+
|
422
|
+
</div>
|
423
|
+
</div>
|
424
|
+
<div class="tags">
|
425
|
+
<p class="tag_title">Parameters:</p>
|
426
|
+
<ul class="param">
|
427
|
+
|
428
|
+
<li>
|
429
|
+
|
430
|
+
<span class='name'>ctx</span>
|
431
|
+
|
432
|
+
|
433
|
+
<span class='type'>(<tt><span class='object_link'><a href="Context.html" title="TermUtils::FF::Context (class)">Context</a></span></tt>)</span>
|
434
|
+
|
435
|
+
|
436
|
+
|
437
|
+
</li>
|
438
|
+
|
439
|
+
<li>
|
440
|
+
|
441
|
+
<span class='name'>name</span>
|
442
|
+
|
443
|
+
|
444
|
+
<span class='type'>(<tt>String</tt>)</span>
|
445
|
+
|
446
|
+
|
447
|
+
|
448
|
+
</li>
|
449
|
+
|
450
|
+
</ul>
|
451
|
+
|
452
|
+
<p class="tag_title">Returns:</p>
|
453
|
+
<ul class="return">
|
454
|
+
|
455
|
+
<li>
|
456
|
+
|
457
|
+
|
458
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
459
|
+
|
460
|
+
|
461
|
+
|
462
|
+
</li>
|
463
|
+
|
464
|
+
</ul>
|
465
|
+
|
466
|
+
</div><table class="source_code">
|
467
|
+
<tr>
|
468
|
+
<td>
|
469
|
+
<pre class="lines">
|
470
|
+
|
471
|
+
|
472
|
+
135
|
473
|
+
136
|
474
|
+
137
|
475
|
+
138
|
476
|
+
139
|
477
|
+
140</pre>
|
478
|
+
</td>
|
479
|
+
<td>
|
480
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/query.rb', line 135</span>
|
481
|
+
|
482
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_accept_entry_name?'>accept_entry_name?</span><span class='lparen'>(</span><span class='id identifier rubyid_ctx'>ctx</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
483
|
+
<span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_ignore_list'>ignore_list</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_e'>e</span><span class='op'>|</span>
|
484
|
+
<span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>if</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_match?'>match?</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
485
|
+
<span class='kw'>end</span>
|
486
|
+
<span class='kw'>true</span>
|
487
|
+
<span class='kw'>end</span></pre>
|
488
|
+
</td>
|
489
|
+
</tr>
|
490
|
+
</table>
|
491
|
+
</div>
|
492
|
+
|
493
|
+
<div class="method_details ">
|
494
|
+
<h3 class="signature " id="search-class_method">
|
495
|
+
|
496
|
+
.<strong>search</strong>(ctx, parent_entry) ⇒ <tt>nil</tt>
|
497
|
+
|
498
|
+
|
499
|
+
|
500
|
+
|
501
|
+
|
502
|
+
</h3><div class="docstring">
|
503
|
+
<div class="discussion">
|
504
|
+
|
505
|
+
<p>Searches a directory.</p>
|
506
|
+
|
507
|
+
|
508
|
+
</div>
|
509
|
+
</div>
|
510
|
+
<div class="tags">
|
511
|
+
<p class="tag_title">Parameters:</p>
|
512
|
+
<ul class="param">
|
513
|
+
|
514
|
+
<li>
|
515
|
+
|
516
|
+
<span class='name'>ctx</span>
|
517
|
+
|
518
|
+
|
519
|
+
<span class='type'>(<tt><span class='object_link'><a href="Context.html" title="TermUtils::FF::Context (class)">Context</a></span></tt>)</span>
|
520
|
+
|
521
|
+
|
522
|
+
|
523
|
+
</li>
|
524
|
+
|
525
|
+
<li>
|
526
|
+
|
527
|
+
<span class='name'>parent_entry</span>
|
528
|
+
|
529
|
+
|
530
|
+
<span class='type'>(<tt>entry</tt>)</span>
|
531
|
+
|
532
|
+
|
533
|
+
|
534
|
+
</li>
|
535
|
+
|
536
|
+
</ul>
|
537
|
+
|
538
|
+
<p class="tag_title">Returns:</p>
|
539
|
+
<ul class="return">
|
540
|
+
|
541
|
+
<li>
|
542
|
+
|
543
|
+
|
544
|
+
<span class='type'>(<tt>nil</tt>)</span>
|
545
|
+
|
546
|
+
|
547
|
+
|
548
|
+
</li>
|
549
|
+
|
550
|
+
</ul>
|
551
|
+
|
552
|
+
</div><table class="source_code">
|
553
|
+
<tr>
|
554
|
+
<td>
|
555
|
+
<pre class="lines">
|
556
|
+
|
557
|
+
|
558
|
+
99
|
559
|
+
100
|
560
|
+
101
|
561
|
+
102
|
562
|
+
103
|
563
|
+
104
|
564
|
+
105
|
565
|
+
106
|
566
|
+
107
|
567
|
+
108
|
568
|
+
109
|
569
|
+
110
|
570
|
+
111
|
571
|
+
112
|
572
|
+
113
|
573
|
+
114
|
574
|
+
115
|
575
|
+
116
|
576
|
+
117
|
577
|
+
118
|
578
|
+
119
|
579
|
+
120
|
580
|
+
121
|
581
|
+
122
|
582
|
+
123
|
583
|
+
124
|
584
|
+
125
|
585
|
+
126
|
586
|
+
127
|
587
|
+
128
|
588
|
+
129</pre>
|
589
|
+
</td>
|
590
|
+
<td>
|
591
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/query.rb', line 99</span>
|
592
|
+
|
593
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_search'>search</span><span class='lparen'>(</span><span class='id identifier rubyid_ctx'>ctx</span><span class='comma'>,</span> <span class='id identifier rubyid_parent_entry'>parent_entry</span><span class='rparen'>)</span>
|
594
|
+
<span class='id identifier rubyid_entries'>entries</span> <span class='op'>=</span> <span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_entries'>entries</span><span class='lparen'>(</span><span class='id identifier rubyid_parent_entry'>parent_entry</span><span class='period'>.</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
595
|
+
<span class='kw'>unless</span> <span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_sorting_mode'>sorting_mode</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
596
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_sorting_compare'>sorting_compare</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
597
|
+
<span class='id identifier rubyid_entries'>entries</span><span class='period'>.</span><span class='id identifier rubyid_sort!'>sort!</span>
|
598
|
+
<span class='kw'>else</span>
|
599
|
+
<span class='id identifier rubyid_entries'>entries</span><span class='period'>.</span><span class='id identifier rubyid_sort!'>sort!</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_sorting_compare'>sorting_compare</span><span class='rparen'>)</span>
|
600
|
+
<span class='kw'>end</span>
|
601
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_sorting_mode'>sorting_mode</span> <span class='op'>==</span> <span class='symbol'>:reverse</span>
|
602
|
+
<span class='id identifier rubyid_entries'>entries</span><span class='period'>.</span><span class='id identifier rubyid_reverse!'>reverse!</span>
|
603
|
+
<span class='kw'>end</span>
|
604
|
+
<span class='kw'>end</span>
|
605
|
+
<span class='id identifier rubyid_entries'>entries</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_name'>name</span><span class='op'>|</span>
|
606
|
+
<span class='kw'>next</span> <span class='kw'>if</span> <span class='qwords_beg'>%w[</span><span class='tstring_content'>.</span><span class='words_sep'> </span><span class='tstring_content'>..</span><span class='tstring_end'>]</span></span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span> <span class='id identifier rubyid_name'>name</span>
|
607
|
+
<span class='kw'>next</span> <span class='kw'>unless</span> <span class='id identifier rubyid_accept_entry_name?'>accept_entry_name?</span><span class='lparen'>(</span><span class='id identifier rubyid_ctx'>ctx</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
608
|
+
|
609
|
+
<span class='id identifier rubyid_new_entry'>new_entry</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="../FF.html" title="TermUtils::FF (module)">FF</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Entry.html" title="TermUtils::FF::Entry (class)">Entry</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Entry.html#initialize-instance_method" title="TermUtils::FF::Entry#initialize (method)">new</a></span></span>
|
610
|
+
<span class='id identifier rubyid_new_entry'>new_entry</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='id identifier rubyid_name'>name</span>
|
611
|
+
<span class='id identifier rubyid_new_entry'>new_entry</span><span class='period'>.</span><span class='id identifier rubyid_relative_path_comps'>relative_path_comps</span> <span class='op'>=</span> <span class='id identifier rubyid_parent_entry'>parent_entry</span><span class='period'>.</span><span class='id identifier rubyid_relative_path_comps'>relative_path_comps</span><span class='period'>.</span><span class='id identifier rubyid_dup'>dup</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
612
|
+
<span class='id identifier rubyid_new_entry'>new_entry</span><span class='period'>.</span><span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_base_path'>base_path</span><span class='embexpr_end'>}</span><span class='tstring_content'>/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_new_entry'>new_entry</span><span class='period'>.</span><span class='id identifier rubyid_relative_path_comps'>relative_path_comps</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
613
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_min_depth'>min_depth</span> <span class='op'><=</span> <span class='id identifier rubyid_new_entry'>new_entry</span><span class='period'>.</span><span class='id identifier rubyid_depth'>depth</span>
|
614
|
+
<span class='id identifier rubyid_new_entry'>new_entry</span><span class='period'>.</span><span class='id identifier rubyid_index'>index</span> <span class='op'>=</span> <span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_index_seq'>index_seq</span>
|
615
|
+
<span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_index_seq'>index_seq</span> <span class='op'>+=</span> <span class='int'>1</span>
|
616
|
+
<span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_new_entry'>new_entry</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_block'>block</span>
|
617
|
+
<span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_result'>result</span> <span class='op'><<</span> <span class='id identifier rubyid_new_entry'>new_entry</span>
|
618
|
+
<span class='kw'>end</span>
|
619
|
+
<span class='kw'>if</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_directory?'>directory?</span><span class='lparen'>(</span><span class='id identifier rubyid_new_entry'>new_entry</span><span class='period'>.</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='lparen'>(</span><span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_max_depth'>max_depth</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>||</span> <span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_max_depth'>max_depth</span> <span class='op'>></span> <span class='id identifier rubyid_new_entry'>new_entry</span><span class='period'>.</span><span class='id identifier rubyid_depth'>depth</span><span class='rparen'>)</span>
|
620
|
+
<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="../FF.html" title="TermUtils::FF (module)">FF</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">Query</a></span></span><span class='period'>.</span><span class='id identifier rubyid_search'>search</span><span class='lparen'>(</span><span class='id identifier rubyid_ctx'>ctx</span><span class='comma'>,</span> <span class='id identifier rubyid_new_entry'>new_entry</span><span class='rparen'>)</span>
|
621
|
+
<span class='kw'>end</span>
|
622
|
+
<span class='kw'>end</span>
|
623
|
+
<span class='kw'>end</span></pre>
|
624
|
+
</td>
|
625
|
+
</tr>
|
626
|
+
</table>
|
627
|
+
</div>
|
628
|
+
|
629
|
+
</div>
|
630
|
+
|
346
631
|
<div id="instance_method_details" class="method_details_list">
|
347
632
|
<h2>Instance Method Details</h2>
|
348
633
|
|
@@ -350,7 +635,7 @@
|
|
350
635
|
<div class="method_details first">
|
351
636
|
<h3 class="signature first" id="exec-instance_method">
|
352
637
|
|
353
|
-
#<strong>exec</strong>(path) ⇒ <tt
|
638
|
+
#<strong>exec</strong>(path, &block) ⇒ <tt>Array<<span class='object_link'><a href="Entry.html" title="TermUtils::FF::Entry (class)">Entry</a></span>></tt>
|
354
639
|
|
355
640
|
|
356
641
|
|
@@ -387,7 +672,7 @@
|
|
387
672
|
<li>
|
388
673
|
|
389
674
|
|
390
|
-
<span class='type'>(<tt
|
675
|
+
<span class='type'>(<tt>Array<<span class='object_link'><a href="Entry.html" title="TermUtils::FF::Entry (class)">Entry</a></span>></tt>)</span>
|
391
676
|
|
392
677
|
|
393
678
|
|
@@ -401,15 +686,55 @@
|
|
401
686
|
<pre class="lines">
|
402
687
|
|
403
688
|
|
404
|
-
|
405
|
-
|
406
|
-
|
689
|
+
71
|
690
|
+
72
|
691
|
+
73
|
692
|
+
74
|
693
|
+
75
|
694
|
+
76
|
695
|
+
77
|
696
|
+
78
|
697
|
+
79
|
698
|
+
80
|
699
|
+
81
|
700
|
+
82
|
701
|
+
83
|
702
|
+
84
|
703
|
+
85
|
704
|
+
86
|
705
|
+
87
|
706
|
+
88
|
707
|
+
89
|
708
|
+
90
|
709
|
+
91
|
710
|
+
92
|
711
|
+
93</pre>
|
407
712
|
</td>
|
408
713
|
<td>
|
409
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/query.rb', line
|
410
|
-
|
411
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_exec'>exec</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
412
|
-
<span class='
|
714
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/query.rb', line 71</span>
|
715
|
+
|
716
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_exec'>exec</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
717
|
+
<span class='id identifier rubyid_ctx'>ctx</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Context.html" title="TermUtils::FF::Context (class)">Context</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
718
|
+
<span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span> <span class='op'>=</span> <span class='ivar'>@config</span><span class='period'>.</span><span class='id identifier rubyid_dup'>dup</span>
|
719
|
+
<span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_min_depth'>min_depth</span> <span class='op'>=</span> <span class='int'>0</span> <span class='kw'>if</span> <span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_min_depth'>min_depth</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
720
|
+
<span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_base_path'>base_path</span> <span class='op'>=</span> <span class='id identifier rubyid_path'>path</span>
|
721
|
+
<span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_block'>block</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span>
|
722
|
+
<span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_index_seq'>index_seq</span> <span class='op'>=</span> <span class='int'>0</span>
|
723
|
+
<span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
724
|
+
<span class='id identifier rubyid_first_entry'>first_entry</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="../FF.html" title="TermUtils::FF (module)">FF</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Entry.html" title="TermUtils::FF::Entry (class)">Entry</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Entry.html#initialize-instance_method" title="TermUtils::FF::Entry#initialize (method)">new</a></span></span>
|
725
|
+
<span class='id identifier rubyid_first_entry'>first_entry</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='id identifier rubyid_path'>path</span>
|
726
|
+
<span class='id identifier rubyid_first_entry'>first_entry</span><span class='period'>.</span><span class='id identifier rubyid_relative_path_comps'>relative_path_comps</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
727
|
+
<span class='id identifier rubyid_first_entry'>first_entry</span><span class='period'>.</span><span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='id identifier rubyid_path'>path</span>
|
728
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_min_depth'>min_depth</span> <span class='op'>==</span> <span class='int'>0</span>
|
729
|
+
<span class='id identifier rubyid_first_entry'>first_entry</span><span class='period'>.</span><span class='id identifier rubyid_index'>index</span> <span class='op'>=</span> <span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_index_seq'>index_seq</span>
|
730
|
+
<span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_index_seq'>index_seq</span> <span class='op'>+=</span> <span class='int'>1</span>
|
731
|
+
<span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_first_entry'>first_entry</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_block'>block</span>
|
732
|
+
<span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_result'>result</span> <span class='op'><<</span> <span class='id identifier rubyid_first_entry'>first_entry</span>
|
733
|
+
<span class='kw'>end</span>
|
734
|
+
<span class='kw'>if</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_directory?'>directory?</span><span class='lparen'>(</span><span class='id identifier rubyid_first_entry'>first_entry</span><span class='period'>.</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='lparen'>(</span><span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_max_depth'>max_depth</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>||</span> <span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_max_depth'>max_depth</span> <span class='op'>></span> <span class='int'>0</span><span class='rparen'>)</span>
|
735
|
+
<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="../FF.html" title="TermUtils::FF (module)">FF</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">Query</a></span></span><span class='period'>.</span><span class='id identifier rubyid_search'><span class='object_link'><a href="#search-class_method" title="TermUtils::FF::Query.search (method)">search</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_ctx'>ctx</span><span class='comma'>,</span> <span class='id identifier rubyid_first_entry'>first_entry</span><span class='rparen'>)</span>
|
736
|
+
<span class='kw'>end</span>
|
737
|
+
<span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_result'>result</span>
|
413
738
|
<span class='kw'>end</span></pre>
|
414
739
|
</td>
|
415
740
|
</tr>
|
@@ -419,7 +744,7 @@
|
|
419
744
|
<div class="method_details ">
|
420
745
|
<h3 class="signature " id="ignore-instance_method">
|
421
746
|
|
422
|
-
#<strong>ignore</strong>(regexp) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">
|
747
|
+
#<strong>ignore</strong>(regexp) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">Query</a></span></tt>
|
423
748
|
|
424
749
|
|
425
750
|
|
@@ -428,7 +753,7 @@
|
|
428
753
|
</h3><div class="docstring">
|
429
754
|
<div class="discussion">
|
430
755
|
|
431
|
-
<p>Adds a Regexp
|
756
|
+
<p>Adds a Regexp for ignoring file names.</p>
|
432
757
|
|
433
758
|
|
434
759
|
</div>
|
@@ -456,7 +781,7 @@
|
|
456
781
|
<li>
|
457
782
|
|
458
783
|
|
459
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">
|
784
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">Query</a></span></tt>)</span>
|
460
785
|
|
461
786
|
|
462
787
|
|
@@ -470,13 +795,13 @@
|
|
470
795
|
<pre class="lines">
|
471
796
|
|
472
797
|
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
798
|
+
38
|
799
|
+
39
|
800
|
+
40
|
801
|
+
41</pre>
|
477
802
|
</td>
|
478
803
|
<td>
|
479
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/query.rb', line
|
804
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/query.rb', line 38</span>
|
480
805
|
|
481
806
|
<span class='kw'>def</span> <span class='id identifier rubyid_ignore'>ignore</span><span class='lparen'>(</span><span class='id identifier rubyid_regexp'>regexp</span><span class='rparen'>)</span>
|
482
807
|
<span class='ivar'>@config</span><span class='period'>.</span><span class='id identifier rubyid_ignore_list'>ignore_list</span> <span class='op'><<</span> <span class='id identifier rubyid_regexp'>regexp</span>
|
@@ -502,17 +827,17 @@
|
|
502
827
|
<pre class="lines">
|
503
828
|
|
504
829
|
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
830
|
+
30
|
831
|
+
31
|
832
|
+
32
|
833
|
+
33</pre>
|
509
834
|
</td>
|
510
835
|
<td>
|
511
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/query.rb', line
|
836
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/query.rb', line 30</span>
|
512
837
|
|
513
838
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize_copy'>initialize_copy</span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span>
|
514
|
-
<span class='ivar'>@config</span> <span class='op'>=</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_dup'>dup</span>
|
515
839
|
<span class='kw'>super</span>
|
840
|
+
<span class='ivar'>@config</span> <span class='op'>=</span> <span class='ivar'>@config</span><span class='period'>.</span><span class='id identifier rubyid_dup'>dup</span>
|
516
841
|
<span class='kw'>end</span></pre>
|
517
842
|
</td>
|
518
843
|
</tr>
|
@@ -522,7 +847,7 @@
|
|
522
847
|
<div class="method_details ">
|
523
848
|
<h3 class="signature " id="max_depth-instance_method">
|
524
849
|
|
525
|
-
#<strong>max_depth</strong>(depth) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">
|
850
|
+
#<strong>max_depth</strong>(depth) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">Query</a></span></tt>
|
526
851
|
|
527
852
|
|
528
853
|
|
@@ -559,7 +884,7 @@
|
|
559
884
|
<li>
|
560
885
|
|
561
886
|
|
562
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">
|
887
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">Query</a></span></tt>)</span>
|
563
888
|
|
564
889
|
|
565
890
|
|
@@ -573,13 +898,13 @@
|
|
573
898
|
<pre class="lines">
|
574
899
|
|
575
900
|
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
901
|
+
54
|
902
|
+
55
|
903
|
+
56
|
904
|
+
57</pre>
|
580
905
|
</td>
|
581
906
|
<td>
|
582
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/query.rb', line
|
907
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/query.rb', line 54</span>
|
583
908
|
|
584
909
|
<span class='kw'>def</span> <span class='id identifier rubyid_max_depth'>max_depth</span><span class='lparen'>(</span><span class='id identifier rubyid_depth'>depth</span><span class='rparen'>)</span>
|
585
910
|
<span class='ivar'>@config</span><span class='period'>.</span><span class='id identifier rubyid_max_depth'>max_depth</span> <span class='op'>=</span> <span class='id identifier rubyid_depth'>depth</span>
|
@@ -593,7 +918,7 @@
|
|
593
918
|
<div class="method_details ">
|
594
919
|
<h3 class="signature " id="min_depth-instance_method">
|
595
920
|
|
596
|
-
#<strong>min_depth</strong>(depth) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">
|
921
|
+
#<strong>min_depth</strong>(depth) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">Query</a></span></tt>
|
597
922
|
|
598
923
|
|
599
924
|
|
@@ -630,7 +955,7 @@
|
|
630
955
|
<li>
|
631
956
|
|
632
957
|
|
633
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">
|
958
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">Query</a></span></tt>)</span>
|
634
959
|
|
635
960
|
|
636
961
|
|
@@ -644,13 +969,13 @@
|
|
644
969
|
<pre class="lines">
|
645
970
|
|
646
971
|
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
972
|
+
46
|
973
|
+
47
|
974
|
+
48
|
975
|
+
49</pre>
|
651
976
|
</td>
|
652
977
|
<td>
|
653
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/query.rb', line
|
978
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/query.rb', line 46</span>
|
654
979
|
|
655
980
|
<span class='kw'>def</span> <span class='id identifier rubyid_min_depth'>min_depth</span><span class='lparen'>(</span><span class='id identifier rubyid_depth'>depth</span><span class='rparen'>)</span>
|
656
981
|
<span class='ivar'>@config</span><span class='period'>.</span><span class='id identifier rubyid_min_depth'>min_depth</span> <span class='op'>=</span> <span class='id identifier rubyid_depth'>depth</span>
|
@@ -664,7 +989,7 @@
|
|
664
989
|
<div class="method_details ">
|
665
990
|
<h3 class="signature " id="sort-instance_method">
|
666
991
|
|
667
|
-
#<strong>sort</strong>(
|
992
|
+
#<strong>sort</strong>(mode = :forward, &block) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">Query</a></span></tt>
|
668
993
|
|
669
994
|
|
670
995
|
|
@@ -673,7 +998,7 @@
|
|
673
998
|
</h3><div class="docstring">
|
674
999
|
<div class="discussion">
|
675
1000
|
|
676
|
-
<p>Sets
|
1001
|
+
<p>Sets the sorting mode.</p>
|
677
1002
|
|
678
1003
|
|
679
1004
|
</div>
|
@@ -684,14 +1009,19 @@
|
|
684
1009
|
|
685
1010
|
<li>
|
686
1011
|
|
687
|
-
<span class='name'>
|
1012
|
+
<span class='name'>mode</span>
|
688
1013
|
|
689
1014
|
|
690
|
-
<span class='type'>(<tt>
|
1015
|
+
<span class='type'>(<tt>Symbol</tt>)</span>
|
1016
|
+
|
691
1017
|
|
1018
|
+
<em class="default">(defaults to: <tt>:forward</tt>)</em>
|
692
1019
|
|
693
|
-
<em class="default">(defaults to: <tt>true</tt>)</em>
|
694
1020
|
|
1021
|
+
—
|
1022
|
+
<div class='inline'>
|
1023
|
+
<p>Either ‘:forward`, `:reverse` or `nil` (default).</p>
|
1024
|
+
</div>
|
695
1025
|
|
696
1026
|
</li>
|
697
1027
|
|
@@ -703,7 +1033,7 @@
|
|
703
1033
|
<li>
|
704
1034
|
|
705
1035
|
|
706
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">
|
1036
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">Query</a></span></tt>)</span>
|
707
1037
|
|
708
1038
|
|
709
1039
|
|
@@ -717,16 +1047,18 @@
|
|
717
1047
|
<pre class="lines">
|
718
1048
|
|
719
1049
|
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
1050
|
+
62
|
1051
|
+
63
|
1052
|
+
64
|
1053
|
+
65
|
1054
|
+
66</pre>
|
724
1055
|
</td>
|
725
1056
|
<td>
|
726
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/query.rb', line
|
1057
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/query.rb', line 62</span>
|
727
1058
|
|
728
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_sort'>sort</span><span class='lparen'>(</span><span class='id identifier
|
729
|
-
<span class='ivar'>@config</span><span class='period'>.</span><span class='id identifier
|
1059
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_sort'>sort</span><span class='lparen'>(</span><span class='id identifier rubyid_mode'>mode</span> <span class='op'>=</span> <span class='symbol'>:forward</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
1060
|
+
<span class='ivar'>@config</span><span class='period'>.</span><span class='id identifier rubyid_sorting_mode'>sorting_mode</span> <span class='op'>=</span> <span class='id identifier rubyid_mode'>mode</span>
|
1061
|
+
<span class='ivar'>@config</span><span class='period'>.</span><span class='id identifier rubyid_sorting_compare'>sorting_compare</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span>
|
730
1062
|
<span class='kw'>self</span>
|
731
1063
|
<span class='kw'>end</span></pre>
|
732
1064
|
</td>
|
@@ -739,9 +1071,9 @@
|
|
739
1071
|
</div>
|
740
1072
|
|
741
1073
|
<div id="footer">
|
742
|
-
Generated on
|
743
|
-
<a href="
|
744
|
-
0.9.
|
1074
|
+
Generated on Wed Aug 9 17:34:26 2023 by
|
1075
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1076
|
+
0.9.34 (ruby-3.2.2).
|
745
1077
|
</div>
|
746
1078
|
|
747
1079
|
</div>
|