term_utils 0.3.2 → 0.4.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 +9 -2
- data/COPYING +3 -3
- data/README.md +51 -16
- data/doc/TermUtils.html +9 -9
- data/doc/TermUtils/AP.html +48 -159
- data/doc/TermUtils/AP/Article.html +48 -46
- data/doc/TermUtils/AP/ArticleResult.html +584 -0
- data/doc/TermUtils/AP/Flag.html +294 -77
- data/doc/TermUtils/AP/NoSuchValueError.html +13 -13
- data/doc/TermUtils/AP/Parameter.html +885 -97
- data/doc/TermUtils/AP/ParameterResult.html +980 -0
- data/doc/TermUtils/{FF/Cursor/Context.html → AP/ParameterWalkerHooks.html} +59 -59
- data/doc/TermUtils/AP/ParseError.html +13 -13
- data/doc/TermUtils/AP/Parser.html +174 -142
- data/doc/TermUtils/AP/Result.html +200 -527
- data/doc/TermUtils/AP/Syntax.html +102 -392
- data/doc/TermUtils/AP/SyntaxError.html +13 -13
- data/doc/TermUtils/AP/Walker.html +686 -0
- data/doc/TermUtils/FF.html +10 -10
- data/doc/TermUtils/FF/Config.html +201 -33
- data/doc/TermUtils/FF/Context.html +585 -0
- data/doc/TermUtils/FF/Entry.html +626 -0
- data/doc/TermUtils/FF/Query.html +402 -66
- data/doc/TermUtils/PropertyTreeNode.html +302 -188
- data/doc/TermUtils/Tab.html +90 -83
- data/doc/TermUtils/Tab/Column.html +94 -92
- data/doc/TermUtils/Tab/Header.html +26 -26
- data/doc/TermUtils/Tab/Holder.html +74 -74
- data/doc/TermUtils/Tab/Printer.html +42 -42
- data/doc/TermUtils/Tab/Table.html +124 -128
- data/doc/TermUtils/Tab/TableError.html +11 -11
- data/doc/_index.html +48 -34
- data/doc/class_list.html +3 -3
- data/doc/css/style.css +2 -2
- data/doc/file.README.html +64 -31
- data/doc/file_list.html +2 -2
- data/doc/frames.html +2 -2
- data/doc/index.html +64 -31
- data/doc/js/app.js +14 -3
- data/doc/method_list.html +387 -211
- data/doc/top-level-namespace.html +6 -6
- data/lib/term_utils.rb +8 -1
- data/lib/term_utils/ap.rb +41 -30
- data/lib/term_utils/ap/article.rb +14 -8
- data/lib/term_utils/ap/flag.rb +36 -19
- data/lib/term_utils/ap/parameter.rb +87 -18
- data/lib/term_utils/ap/parser.rb +141 -115
- data/lib/term_utils/ap/result.rb +207 -160
- data/lib/term_utils/ap/syntax.rb +52 -68
- data/lib/term_utils/ff.rb +11 -2
- data/lib/term_utils/ff/config.rb +20 -8
- data/lib/term_utils/{ap/no_such_value_error.rb → ff/entry.rb} +25 -7
- data/lib/term_utils/ff/query.rb +93 -14
- data/lib/term_utils/property_tree_node.rb +47 -19
- data/lib/term_utils/tab.rb +102 -58
- data/term_utils.gemspec +4 -4
- metadata +12 -14
- data/doc/TermUtils/AP/Element.html +0 -1025
- data/doc/TermUtils/AP/Level.html +0 -638
- data/doc/TermUtils/FF/Cursor.html +0 -929
- 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.25
|
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
|
|
@@ -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,238 @@
|
|
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
|
478
|
+
141
|
479
|
+
142</pre>
|
480
|
+
</td>
|
481
|
+
<td>
|
482
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/query.rb', line 135</span>
|
483
|
+
|
484
|
+
<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>
|
485
|
+
<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_i'>i</span><span class='op'>|</span>
|
486
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_i'>i</span><span class='period'>.</span><span class='id identifier rubyid_match?'>match?</span> <span class='id identifier rubyid_name'>name</span>
|
487
|
+
<span class='kw'>return</span> <span class='kw'>false</span>
|
488
|
+
<span class='kw'>end</span>
|
489
|
+
<span class='kw'>end</span>
|
490
|
+
<span class='kw'>true</span>
|
491
|
+
<span class='kw'>end</span></pre>
|
492
|
+
</td>
|
493
|
+
</tr>
|
494
|
+
</table>
|
495
|
+
</div>
|
496
|
+
|
497
|
+
<div class="method_details ">
|
498
|
+
<h3 class="signature " id="search-class_method">
|
499
|
+
|
500
|
+
.<strong>search</strong>(ctx, parent_entry) ⇒ <tt>nil</tt>
|
501
|
+
|
502
|
+
|
503
|
+
|
504
|
+
|
505
|
+
|
506
|
+
</h3><div class="docstring">
|
507
|
+
<div class="discussion">
|
508
|
+
|
509
|
+
<p>Searches a directory.</p>
|
510
|
+
|
511
|
+
|
512
|
+
</div>
|
513
|
+
</div>
|
514
|
+
<div class="tags">
|
515
|
+
<p class="tag_title">Parameters:</p>
|
516
|
+
<ul class="param">
|
517
|
+
|
518
|
+
<li>
|
519
|
+
|
520
|
+
<span class='name'>ctx</span>
|
521
|
+
|
522
|
+
|
523
|
+
<span class='type'>(<tt><span class='object_link'><a href="Context.html" title="TermUtils::FF::Context (class)">Context</a></span></tt>)</span>
|
524
|
+
|
525
|
+
|
526
|
+
|
527
|
+
</li>
|
528
|
+
|
529
|
+
<li>
|
530
|
+
|
531
|
+
<span class='name'>parent_entry</span>
|
532
|
+
|
533
|
+
|
534
|
+
<span class='type'>(<tt>entry</tt>)</span>
|
535
|
+
|
536
|
+
|
537
|
+
|
538
|
+
</li>
|
539
|
+
|
540
|
+
</ul>
|
541
|
+
|
542
|
+
<p class="tag_title">Returns:</p>
|
543
|
+
<ul class="return">
|
544
|
+
|
545
|
+
<li>
|
546
|
+
|
547
|
+
|
548
|
+
<span class='type'>(<tt>nil</tt>)</span>
|
549
|
+
|
550
|
+
|
551
|
+
|
552
|
+
</li>
|
553
|
+
|
554
|
+
</ul>
|
555
|
+
|
556
|
+
</div><table class="source_code">
|
557
|
+
<tr>
|
558
|
+
<td>
|
559
|
+
<pre class="lines">
|
560
|
+
|
561
|
+
|
562
|
+
99
|
563
|
+
100
|
564
|
+
101
|
565
|
+
102
|
566
|
+
103
|
567
|
+
104
|
568
|
+
105
|
569
|
+
106
|
570
|
+
107
|
571
|
+
108
|
572
|
+
109
|
573
|
+
110
|
574
|
+
111
|
575
|
+
112
|
576
|
+
113
|
577
|
+
114
|
578
|
+
115
|
579
|
+
116
|
580
|
+
117
|
581
|
+
118
|
582
|
+
119
|
583
|
+
120
|
584
|
+
121
|
585
|
+
122
|
586
|
+
123
|
587
|
+
124
|
588
|
+
125
|
589
|
+
126
|
590
|
+
127
|
591
|
+
128
|
592
|
+
129</pre>
|
593
|
+
</td>
|
594
|
+
<td>
|
595
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/query.rb', line 99</span>
|
596
|
+
|
597
|
+
<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>
|
598
|
+
<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>
|
599
|
+
<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>
|
600
|
+
<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>
|
601
|
+
<span class='id identifier rubyid_entries'>entries</span><span class='period'>.</span><span class='id identifier rubyid_sort!'>sort!</span>
|
602
|
+
<span class='kw'>else</span>
|
603
|
+
<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>
|
604
|
+
<span class='kw'>end</span>
|
605
|
+
<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>
|
606
|
+
<span class='id identifier rubyid_entries'>entries</span><span class='period'>.</span><span class='id identifier rubyid_reverse!'>reverse!</span>
|
607
|
+
<span class='kw'>end</span>
|
608
|
+
<span class='kw'>end</span>
|
609
|
+
<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>
|
610
|
+
<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>
|
611
|
+
<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>
|
612
|
+
|
613
|
+
<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>
|
614
|
+
<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>
|
615
|
+
<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>
|
616
|
+
<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>
|
617
|
+
<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>
|
618
|
+
<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>
|
619
|
+
<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>
|
620
|
+
<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>
|
621
|
+
<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>
|
622
|
+
<span class='kw'>end</span>
|
623
|
+
<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>
|
624
|
+
<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>
|
625
|
+
<span class='kw'>end</span>
|
626
|
+
<span class='kw'>end</span>
|
627
|
+
<span class='kw'>end</span></pre>
|
628
|
+
</td>
|
629
|
+
</tr>
|
630
|
+
</table>
|
631
|
+
</div>
|
632
|
+
|
633
|
+
</div>
|
634
|
+
|
346
635
|
<div id="instance_method_details" class="method_details_list">
|
347
636
|
<h2>Instance Method Details</h2>
|
348
637
|
|
@@ -350,7 +639,7 @@
|
|
350
639
|
<div class="method_details first">
|
351
640
|
<h3 class="signature first" id="exec-instance_method">
|
352
641
|
|
353
|
-
#<strong>exec</strong>(path) ⇒ <tt
|
642
|
+
#<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
643
|
|
355
644
|
|
356
645
|
|
@@ -387,7 +676,7 @@
|
|
387
676
|
<li>
|
388
677
|
|
389
678
|
|
390
|
-
<span class='type'>(<tt
|
679
|
+
<span class='type'>(<tt>Array<<span class='object_link'><a href="Entry.html" title="TermUtils::FF::Entry (class)">Entry</a></span>></tt>)</span>
|
391
680
|
|
392
681
|
|
393
682
|
|
@@ -401,15 +690,55 @@
|
|
401
690
|
<pre class="lines">
|
402
691
|
|
403
692
|
|
404
|
-
|
405
|
-
|
406
|
-
|
693
|
+
71
|
694
|
+
72
|
695
|
+
73
|
696
|
+
74
|
697
|
+
75
|
698
|
+
76
|
699
|
+
77
|
700
|
+
78
|
701
|
+
79
|
702
|
+
80
|
703
|
+
81
|
704
|
+
82
|
705
|
+
83
|
706
|
+
84
|
707
|
+
85
|
708
|
+
86
|
709
|
+
87
|
710
|
+
88
|
711
|
+
89
|
712
|
+
90
|
713
|
+
91
|
714
|
+
92
|
715
|
+
93</pre>
|
407
716
|
</td>
|
408
717
|
<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='
|
718
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/query.rb', line 71</span>
|
719
|
+
|
720
|
+
<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>
|
721
|
+
<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>
|
722
|
+
<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>
|
723
|
+
<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>
|
724
|
+
<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>
|
725
|
+
<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>
|
726
|
+
<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>
|
727
|
+
<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>
|
728
|
+
<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>
|
729
|
+
<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>
|
730
|
+
<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>
|
731
|
+
<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>
|
732
|
+
<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>
|
733
|
+
<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>
|
734
|
+
<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>
|
735
|
+
<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>
|
736
|
+
<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>
|
737
|
+
<span class='kw'>end</span>
|
738
|
+
<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>
|
739
|
+
<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>
|
740
|
+
<span class='kw'>end</span>
|
741
|
+
<span class='id identifier rubyid_ctx'>ctx</span><span class='period'>.</span><span class='id identifier rubyid_result'>result</span>
|
413
742
|
<span class='kw'>end</span></pre>
|
414
743
|
</td>
|
415
744
|
</tr>
|
@@ -419,7 +748,7 @@
|
|
419
748
|
<div class="method_details ">
|
420
749
|
<h3 class="signature " id="ignore-instance_method">
|
421
750
|
|
422
|
-
#<strong>ignore</strong>(regexp) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">
|
751
|
+
#<strong>ignore</strong>(regexp) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">Query</a></span></tt>
|
423
752
|
|
424
753
|
|
425
754
|
|
@@ -456,7 +785,7 @@
|
|
456
785
|
<li>
|
457
786
|
|
458
787
|
|
459
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">
|
788
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">Query</a></span></tt>)</span>
|
460
789
|
|
461
790
|
|
462
791
|
|
@@ -470,13 +799,13 @@
|
|
470
799
|
<pre class="lines">
|
471
800
|
|
472
801
|
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
802
|
+
38
|
803
|
+
39
|
804
|
+
40
|
805
|
+
41</pre>
|
477
806
|
</td>
|
478
807
|
<td>
|
479
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/query.rb', line
|
808
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/query.rb', line 38</span>
|
480
809
|
|
481
810
|
<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
811
|
<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,13 +831,13 @@
|
|
502
831
|
<pre class="lines">
|
503
832
|
|
504
833
|
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
834
|
+
30
|
835
|
+
31
|
836
|
+
32
|
837
|
+
33</pre>
|
509
838
|
</td>
|
510
839
|
<td>
|
511
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/query.rb', line
|
840
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/query.rb', line 30</span>
|
512
841
|
|
513
842
|
<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
843
|
<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>
|
@@ -522,7 +851,7 @@
|
|
522
851
|
<div class="method_details ">
|
523
852
|
<h3 class="signature " id="max_depth-instance_method">
|
524
853
|
|
525
|
-
#<strong>max_depth</strong>(depth) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">
|
854
|
+
#<strong>max_depth</strong>(depth) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">Query</a></span></tt>
|
526
855
|
|
527
856
|
|
528
857
|
|
@@ -559,7 +888,7 @@
|
|
559
888
|
<li>
|
560
889
|
|
561
890
|
|
562
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">
|
891
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">Query</a></span></tt>)</span>
|
563
892
|
|
564
893
|
|
565
894
|
|
@@ -573,13 +902,13 @@
|
|
573
902
|
<pre class="lines">
|
574
903
|
|
575
904
|
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
905
|
+
54
|
906
|
+
55
|
907
|
+
56
|
908
|
+
57</pre>
|
580
909
|
</td>
|
581
910
|
<td>
|
582
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/query.rb', line
|
911
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/query.rb', line 54</span>
|
583
912
|
|
584
913
|
<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
914
|
<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 +922,7 @@
|
|
593
922
|
<div class="method_details ">
|
594
923
|
<h3 class="signature " id="min_depth-instance_method">
|
595
924
|
|
596
|
-
#<strong>min_depth</strong>(depth) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">
|
925
|
+
#<strong>min_depth</strong>(depth) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">Query</a></span></tt>
|
597
926
|
|
598
927
|
|
599
928
|
|
@@ -630,7 +959,7 @@
|
|
630
959
|
<li>
|
631
960
|
|
632
961
|
|
633
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">
|
962
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">Query</a></span></tt>)</span>
|
634
963
|
|
635
964
|
|
636
965
|
|
@@ -644,13 +973,13 @@
|
|
644
973
|
<pre class="lines">
|
645
974
|
|
646
975
|
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
976
|
+
46
|
977
|
+
47
|
978
|
+
48
|
979
|
+
49</pre>
|
651
980
|
</td>
|
652
981
|
<td>
|
653
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/query.rb', line
|
982
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/query.rb', line 46</span>
|
654
983
|
|
655
984
|
<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
985
|
<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 +993,7 @@
|
|
664
993
|
<div class="method_details ">
|
665
994
|
<h3 class="signature " id="sort-instance_method">
|
666
995
|
|
667
|
-
#<strong>sort</strong>(
|
996
|
+
#<strong>sort</strong>(mode = :forward, &block) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">Query</a></span></tt>
|
668
997
|
|
669
998
|
|
670
999
|
|
@@ -673,7 +1002,7 @@
|
|
673
1002
|
</h3><div class="docstring">
|
674
1003
|
<div class="discussion">
|
675
1004
|
|
676
|
-
<p>Sets
|
1005
|
+
<p>Sets the sorting mode.</p>
|
677
1006
|
|
678
1007
|
|
679
1008
|
</div>
|
@@ -684,14 +1013,19 @@
|
|
684
1013
|
|
685
1014
|
<li>
|
686
1015
|
|
687
|
-
<span class='name'>
|
1016
|
+
<span class='name'>mode</span>
|
688
1017
|
|
689
1018
|
|
690
|
-
<span class='type'>(<tt>
|
1019
|
+
<span class='type'>(<tt>Symbol</tt>)</span>
|
1020
|
+
|
691
1021
|
|
1022
|
+
<em class="default">(defaults to: <tt>:forward</tt>)</em>
|
692
1023
|
|
693
|
-
<em class="default">(defaults to: <tt>true</tt>)</em>
|
694
1024
|
|
1025
|
+
—
|
1026
|
+
<div class='inline'>
|
1027
|
+
<p>Either `:forward`, `:reverse` or `nil` (default).</p>
|
1028
|
+
</div>
|
695
1029
|
|
696
1030
|
</li>
|
697
1031
|
|
@@ -703,7 +1037,7 @@
|
|
703
1037
|
<li>
|
704
1038
|
|
705
1039
|
|
706
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">
|
1040
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="TermUtils::FF::Query (class)">Query</a></span></tt>)</span>
|
707
1041
|
|
708
1042
|
|
709
1043
|
|
@@ -717,16 +1051,18 @@
|
|
717
1051
|
<pre class="lines">
|
718
1052
|
|
719
1053
|
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
1054
|
+
62
|
1055
|
+
63
|
1056
|
+
64
|
1057
|
+
65
|
1058
|
+
66</pre>
|
724
1059
|
</td>
|
725
1060
|
<td>
|
726
|
-
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/query.rb', line
|
1061
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/query.rb', line 62</span>
|
727
1062
|
|
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
|
1063
|
+
<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>
|
1064
|
+
<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>
|
1065
|
+
<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
1066
|
<span class='kw'>self</span>
|
731
1067
|
<span class='kw'>end</span></pre>
|
732
1068
|
</td>
|
@@ -739,9 +1075,9 @@
|
|
739
1075
|
</div>
|
740
1076
|
|
741
1077
|
<div id="footer">
|
742
|
-
Generated on
|
1078
|
+
Generated on Sun Aug 2 18:35:09 2020 by
|
743
1079
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
744
|
-
0.9.
|
1080
|
+
0.9.25 (ruby-2.6.5).
|
745
1081
|
</div>
|
746
1082
|
|
747
1083
|
</div>
|