term_utils 0.1.1 → 0.2.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/AUTHORS +1 -0
- data/CHANGELOG.md +19 -0
- data/COPYING +674 -0
- data/README.md +58 -0
- data/Rakefile +46 -0
- data/doc/TermUtils/FF/Config.html +606 -0
- data/doc/TermUtils/FF/Cursor/Context.html +409 -0
- data/doc/TermUtils/FF/Cursor.html +929 -0
- data/doc/TermUtils/FF/Query.html +749 -0
- data/doc/TermUtils/FF.html +128 -0
- data/doc/TermUtils/Tab/Column.html +1290 -0
- data/doc/TermUtils/Tab/Holder.html +674 -0
- data/doc/TermUtils/Tab/Printer.html +967 -0
- data/doc/TermUtils/Tab/Table.html +1414 -0
- data/doc/TermUtils/Tab.html +508 -0
- data/doc/TermUtils.html +136 -0
- data/doc/_index.html +217 -0
- data/doc/class_list.html +51 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +58 -0
- data/doc/css/style.css +496 -0
- data/doc/file.README.html +131 -0
- data/doc/file_list.html +56 -0
- data/doc/frames.html +17 -0
- data/doc/index.html +131 -0
- data/doc/js/app.js +303 -0
- data/doc/js/full_list.js +216 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +555 -0
- data/doc/top-level-namespace.html +110 -0
- data/lib/term_utils/ff/config.rb +43 -0
- data/lib/term_utils/ff/cursor.rb +153 -0
- data/lib/term_utils/ff/query.rb +66 -0
- data/lib/term_utils/ff.rb +18 -0
- data/lib/term_utils/tab.rb +22 -3
- data/lib/term_utils.rb +3 -0
- data/term_utils.gemspec +16 -0
- metadata +40 -4
@@ -0,0 +1,929 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Class: TermUtils::FF::Cursor
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.20
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
pathId = "TermUtils::FF::Cursor";
|
19
|
+
relpath = '../../';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
24
|
+
|
25
|
+
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
38
|
+
|
39
|
+
<a href="../../_index.html">Index (C)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../../TermUtils.html" title="TermUtils (module)">TermUtils</a></span></span> » <span class='title'><span class='object_link'><a href="../FF.html" title="TermUtils::FF (module)">FF</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">Cursor</span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="search">
|
47
|
+
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
49
|
+
href="../../class_list.html">
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="content"><h1>Class: TermUtils::FF::Cursor
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
72
|
+
<span class="inheritName">Object</span>
|
73
|
+
|
74
|
+
<ul class="fullTree">
|
75
|
+
<li>Object</li>
|
76
|
+
|
77
|
+
<li class="next">TermUtils::FF::Cursor</li>
|
78
|
+
|
79
|
+
</ul>
|
80
|
+
<a href="#" class="inheritanceTree">show all</a>
|
81
|
+
|
82
|
+
</dd>
|
83
|
+
</dl>
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
<dl>
|
96
|
+
<dt>Defined in:</dt>
|
97
|
+
<dd>lib/term_utils/ff/cursor.rb</dd>
|
98
|
+
</dl>
|
99
|
+
|
100
|
+
</div>
|
101
|
+
|
102
|
+
<h2>Overview</h2><div class="docstring">
|
103
|
+
<div class="discussion">
|
104
|
+
|
105
|
+
<p>Represents a query cursor.</p>
|
106
|
+
|
107
|
+
|
108
|
+
</div>
|
109
|
+
</div>
|
110
|
+
<div class="tags">
|
111
|
+
|
112
|
+
|
113
|
+
</div><h2>Defined Under Namespace</h2>
|
114
|
+
<p class="children">
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
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
|
+
|
121
|
+
|
122
|
+
</p>
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
128
|
+
<ul class="summary">
|
129
|
+
|
130
|
+
<li class="public ">
|
131
|
+
<span class="summary_signature">
|
132
|
+
|
133
|
+
<a href="#index-instance_method" title="#index (instance method)">#<strong>index</strong> ⇒ Integer </a>
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
</span>
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
<span class="note title readonly">readonly</span>
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
153
|
+
|
154
|
+
</li>
|
155
|
+
|
156
|
+
|
157
|
+
</ul>
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
<h2>
|
164
|
+
Instance Method Summary
|
165
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
166
|
+
</h2>
|
167
|
+
|
168
|
+
<ul class="summary">
|
169
|
+
|
170
|
+
<li class="public ">
|
171
|
+
<span class="summary_signature">
|
172
|
+
|
173
|
+
<a href="#bootstrap-instance_method" title="#bootstrap (instance method)">#<strong>bootstrap</strong> ⇒ TermUtils::FF::Cursor<sup>?</sup> </a>
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
</span>
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
<span class="summary_desc"><div class='inline'>
|
188
|
+
<p>Starts the query.</p>
|
189
|
+
</div></span>
|
190
|
+
|
191
|
+
</li>
|
192
|
+
|
193
|
+
|
194
|
+
<li class="public ">
|
195
|
+
<span class="summary_signature">
|
196
|
+
|
197
|
+
<a href="#components-instance_method" title="#components (instance method)">#<strong>components</strong> ⇒ Array<String> </a>
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
</span>
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
<span class="summary_desc"><div class='inline'>
|
212
|
+
<p>Returns the path components.</p>
|
213
|
+
</div></span>
|
214
|
+
|
215
|
+
</li>
|
216
|
+
|
217
|
+
|
218
|
+
<li class="public ">
|
219
|
+
<span class="summary_signature">
|
220
|
+
|
221
|
+
<a href="#depth-instance_method" title="#depth (instance method)">#<strong>depth</strong> ⇒ Integer </a>
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
</span>
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
236
|
+
|
237
|
+
</li>
|
238
|
+
|
239
|
+
|
240
|
+
<li class="public ">
|
241
|
+
<span class="summary_signature">
|
242
|
+
|
243
|
+
<a href="#following-instance_method" title="#following (instance method)">#<strong>following</strong> ⇒ TermUtils::FF::Cursor<sup>?</sup> </a>
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
</span>
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
<span class="summary_desc"><div class='inline'>
|
258
|
+
<p>Returns the next cursor.</p>
|
259
|
+
</div></span>
|
260
|
+
|
261
|
+
</li>
|
262
|
+
|
263
|
+
|
264
|
+
<li class="public ">
|
265
|
+
<span class="summary_signature">
|
266
|
+
|
267
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(config, path) ⇒ Cursor </a>
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
</span>
|
272
|
+
|
273
|
+
|
274
|
+
<span class="note title constructor">constructor</span>
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
<span class="summary_desc"><div class='inline'>
|
284
|
+
<p>A new instance of Cursor.</p>
|
285
|
+
</div></span>
|
286
|
+
|
287
|
+
</li>
|
288
|
+
|
289
|
+
|
290
|
+
<li class="public ">
|
291
|
+
<span class="summary_signature">
|
292
|
+
|
293
|
+
<a href="#name-instance_method" title="#name (instance method)">#<strong>name</strong> ⇒ String </a>
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
</span>
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
308
|
+
|
309
|
+
</li>
|
310
|
+
|
311
|
+
|
312
|
+
<li class="public ">
|
313
|
+
<span class="summary_signature">
|
314
|
+
|
315
|
+
<a href="#relative_path-instance_method" title="#relative_path (instance method)">#<strong>relative_path</strong> ⇒ String </a>
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
</span>
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
330
|
+
|
331
|
+
</li>
|
332
|
+
|
333
|
+
|
334
|
+
<li class="public ">
|
335
|
+
<span class="summary_signature">
|
336
|
+
|
337
|
+
<a href="#result-instance_method" title="#result (instance method)">#<strong>result</strong> ⇒ String </a>
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
</span>
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
<span class="summary_desc"><div class='inline'>
|
352
|
+
<p>Returns the result associated to this one.</p>
|
353
|
+
</div></span>
|
354
|
+
|
355
|
+
</li>
|
356
|
+
|
357
|
+
|
358
|
+
</ul>
|
359
|
+
|
360
|
+
|
361
|
+
<div id="constructor_details" class="method_details_list">
|
362
|
+
<h2>Constructor Details</h2>
|
363
|
+
|
364
|
+
<div class="method_details first">
|
365
|
+
<h3 class="signature first" id="initialize-instance_method">
|
366
|
+
|
367
|
+
#<strong>initialize</strong>(config, path) ⇒ <tt><span class='object_link'><a href="" title="TermUtils::FF::Cursor (class)">Cursor</a></span></tt>
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
</h3><div class="docstring">
|
374
|
+
<div class="discussion">
|
375
|
+
|
376
|
+
<p>Returns a new instance of Cursor</p>
|
377
|
+
|
378
|
+
|
379
|
+
</div>
|
380
|
+
</div>
|
381
|
+
<div class="tags">
|
382
|
+
<p class="tag_title">Parameters:</p>
|
383
|
+
<ul class="param">
|
384
|
+
|
385
|
+
<li>
|
386
|
+
|
387
|
+
<span class='name'>config</span>
|
388
|
+
|
389
|
+
|
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>
|
391
|
+
|
392
|
+
|
393
|
+
|
394
|
+
</li>
|
395
|
+
|
396
|
+
<li>
|
397
|
+
|
398
|
+
<span class='name'>path</span>
|
399
|
+
|
400
|
+
|
401
|
+
<span class='type'>(<tt>String</tt>)</span>
|
402
|
+
|
403
|
+
|
404
|
+
|
405
|
+
</li>
|
406
|
+
|
407
|
+
</ul>
|
408
|
+
|
409
|
+
|
410
|
+
</div><table class="source_code">
|
411
|
+
<tr>
|
412
|
+
<td>
|
413
|
+
<pre class="lines">
|
414
|
+
|
415
|
+
|
416
|
+
29
|
417
|
+
30
|
418
|
+
31
|
419
|
+
32
|
420
|
+
33
|
421
|
+
34
|
422
|
+
35</pre>
|
423
|
+
</td>
|
424
|
+
<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>
|
433
|
+
<span class='kw'>end</span></pre>
|
434
|
+
</td>
|
435
|
+
</tr>
|
436
|
+
</table>
|
437
|
+
</div>
|
438
|
+
|
439
|
+
</div>
|
440
|
+
|
441
|
+
<div id="instance_attr_details" class="attr_details">
|
442
|
+
<h2>Instance Attribute Details</h2>
|
443
|
+
|
444
|
+
|
445
|
+
<span id=""></span>
|
446
|
+
<div class="method_details first">
|
447
|
+
<h3 class="signature first" id="index-instance_method">
|
448
|
+
|
449
|
+
#<strong>index</strong> ⇒ <tt>Integer</tt> <span class="extras">(readonly)</span>
|
450
|
+
|
451
|
+
|
452
|
+
|
453
|
+
|
454
|
+
|
455
|
+
</h3><div class="docstring">
|
456
|
+
<div class="discussion">
|
457
|
+
|
458
|
+
|
459
|
+
</div>
|
460
|
+
</div>
|
461
|
+
<div class="tags">
|
462
|
+
|
463
|
+
<p class="tag_title">Returns:</p>
|
464
|
+
<ul class="return">
|
465
|
+
|
466
|
+
<li>
|
467
|
+
|
468
|
+
|
469
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
470
|
+
|
471
|
+
|
472
|
+
|
473
|
+
</li>
|
474
|
+
|
475
|
+
</ul>
|
476
|
+
|
477
|
+
</div><table class="source_code">
|
478
|
+
<tr>
|
479
|
+
<td>
|
480
|
+
<pre class="lines">
|
481
|
+
|
482
|
+
|
483
|
+
26
|
484
|
+
27
|
485
|
+
28</pre>
|
486
|
+
</td>
|
487
|
+
<td>
|
488
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/cursor.rb', line 26</span>
|
489
|
+
|
490
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_index'>index</span>
|
491
|
+
<span class='ivar'>@index</span>
|
492
|
+
<span class='kw'>end</span></pre>
|
493
|
+
</td>
|
494
|
+
</tr>
|
495
|
+
</table>
|
496
|
+
</div>
|
497
|
+
|
498
|
+
</div>
|
499
|
+
|
500
|
+
|
501
|
+
<div id="instance_method_details" class="method_details_list">
|
502
|
+
<h2>Instance Method Details</h2>
|
503
|
+
|
504
|
+
|
505
|
+
<div class="method_details first">
|
506
|
+
<h3 class="signature first" id="bootstrap-instance_method">
|
507
|
+
|
508
|
+
#<strong>bootstrap</strong> ⇒ <tt><span class='object_link'><a href="" title="TermUtils::FF::Cursor (class)">TermUtils::FF::Cursor</a></span></tt><sup>?</sup>
|
509
|
+
|
510
|
+
|
511
|
+
|
512
|
+
|
513
|
+
|
514
|
+
</h3><div class="docstring">
|
515
|
+
<div class="discussion">
|
516
|
+
|
517
|
+
<p>Starts the query.</p>
|
518
|
+
|
519
|
+
|
520
|
+
</div>
|
521
|
+
</div>
|
522
|
+
<div class="tags">
|
523
|
+
|
524
|
+
<p class="tag_title">Returns:</p>
|
525
|
+
<ul class="return">
|
526
|
+
|
527
|
+
<li>
|
528
|
+
|
529
|
+
|
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>
|
531
|
+
|
532
|
+
|
533
|
+
|
534
|
+
</li>
|
535
|
+
|
536
|
+
</ul>
|
537
|
+
|
538
|
+
</div><table class="source_code">
|
539
|
+
<tr>
|
540
|
+
<td>
|
541
|
+
<pre class="lines">
|
542
|
+
|
543
|
+
|
544
|
+
38
|
545
|
+
39
|
546
|
+
40
|
547
|
+
41
|
548
|
+
42
|
549
|
+
43
|
550
|
+
44
|
551
|
+
45
|
552
|
+
46
|
553
|
+
47</pre>
|
554
|
+
</td>
|
555
|
+
<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'><</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>
|
567
|
+
<span class='kw'>end</span></pre>
|
568
|
+
</td>
|
569
|
+
</tr>
|
570
|
+
</table>
|
571
|
+
</div>
|
572
|
+
|
573
|
+
<div class="method_details ">
|
574
|
+
<h3 class="signature " id="components-instance_method">
|
575
|
+
|
576
|
+
#<strong>components</strong> ⇒ <tt>Array<String></tt>
|
577
|
+
|
578
|
+
|
579
|
+
|
580
|
+
|
581
|
+
|
582
|
+
</h3><div class="docstring">
|
583
|
+
<div class="discussion">
|
584
|
+
|
585
|
+
<p>Returns the path components.</p>
|
586
|
+
|
587
|
+
|
588
|
+
</div>
|
589
|
+
</div>
|
590
|
+
<div class="tags">
|
591
|
+
|
592
|
+
<p class="tag_title">Returns:</p>
|
593
|
+
<ul class="return">
|
594
|
+
|
595
|
+
<li>
|
596
|
+
|
597
|
+
|
598
|
+
<span class='type'>(<tt>Array<String></tt>)</span>
|
599
|
+
|
600
|
+
|
601
|
+
|
602
|
+
</li>
|
603
|
+
|
604
|
+
</ul>
|
605
|
+
|
606
|
+
</div><table class="source_code">
|
607
|
+
<tr>
|
608
|
+
<td>
|
609
|
+
<pre class="lines">
|
610
|
+
|
611
|
+
|
612
|
+
85
|
613
|
+
86
|
614
|
+
87</pre>
|
615
|
+
</td>
|
616
|
+
<td>
|
617
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/cursor.rb', line 85</span>
|
618
|
+
|
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>
|
621
|
+
<span class='kw'>end</span></pre>
|
622
|
+
</td>
|
623
|
+
</tr>
|
624
|
+
</table>
|
625
|
+
</div>
|
626
|
+
|
627
|
+
<div class="method_details ">
|
628
|
+
<h3 class="signature " id="depth-instance_method">
|
629
|
+
|
630
|
+
#<strong>depth</strong> ⇒ <tt>Integer</tt>
|
631
|
+
|
632
|
+
|
633
|
+
|
634
|
+
|
635
|
+
|
636
|
+
</h3><div class="docstring">
|
637
|
+
<div class="discussion">
|
638
|
+
|
639
|
+
|
640
|
+
</div>
|
641
|
+
</div>
|
642
|
+
<div class="tags">
|
643
|
+
|
644
|
+
<p class="tag_title">Returns:</p>
|
645
|
+
<ul class="return">
|
646
|
+
|
647
|
+
<li>
|
648
|
+
|
649
|
+
|
650
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
651
|
+
|
652
|
+
|
653
|
+
|
654
|
+
</li>
|
655
|
+
|
656
|
+
</ul>
|
657
|
+
|
658
|
+
</div><table class="source_code">
|
659
|
+
<tr>
|
660
|
+
<td>
|
661
|
+
<pre class="lines">
|
662
|
+
|
663
|
+
|
664
|
+
72
|
665
|
+
73
|
666
|
+
74</pre>
|
667
|
+
</td>
|
668
|
+
<td>
|
669
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/cursor.rb', line 72</span>
|
670
|
+
|
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>
|
673
|
+
<span class='kw'>end</span></pre>
|
674
|
+
</td>
|
675
|
+
</tr>
|
676
|
+
</table>
|
677
|
+
</div>
|
678
|
+
|
679
|
+
<div class="method_details ">
|
680
|
+
<h3 class="signature " id="following-instance_method">
|
681
|
+
|
682
|
+
#<strong>following</strong> ⇒ <tt><span class='object_link'><a href="" title="TermUtils::FF::Cursor (class)">TermUtils::FF::Cursor</a></span></tt><sup>?</sup>
|
683
|
+
|
684
|
+
|
685
|
+
|
686
|
+
|
687
|
+
|
688
|
+
</h3><div class="docstring">
|
689
|
+
<div class="discussion">
|
690
|
+
|
691
|
+
<p>Returns the next cursor.</p>
|
692
|
+
|
693
|
+
|
694
|
+
</div>
|
695
|
+
</div>
|
696
|
+
<div class="tags">
|
697
|
+
|
698
|
+
<p class="tag_title">Returns:</p>
|
699
|
+
<ul class="return">
|
700
|
+
|
701
|
+
<li>
|
702
|
+
|
703
|
+
|
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>
|
705
|
+
|
706
|
+
|
707
|
+
|
708
|
+
</li>
|
709
|
+
|
710
|
+
</ul>
|
711
|
+
|
712
|
+
</div><table class="source_code">
|
713
|
+
<tr>
|
714
|
+
<td>
|
715
|
+
<pre class="lines">
|
716
|
+
|
717
|
+
|
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>
|
734
|
+
</td>
|
735
|
+
<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'><</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'>></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>
|
753
|
+
<span class='kw'>end</span></pre>
|
754
|
+
</td>
|
755
|
+
</tr>
|
756
|
+
</table>
|
757
|
+
</div>
|
758
|
+
|
759
|
+
<div class="method_details ">
|
760
|
+
<h3 class="signature " id="name-instance_method">
|
761
|
+
|
762
|
+
#<strong>name</strong> ⇒ <tt>String</tt>
|
763
|
+
|
764
|
+
|
765
|
+
|
766
|
+
|
767
|
+
|
768
|
+
</h3><div class="docstring">
|
769
|
+
<div class="discussion">
|
770
|
+
|
771
|
+
|
772
|
+
</div>
|
773
|
+
</div>
|
774
|
+
<div class="tags">
|
775
|
+
|
776
|
+
<p class="tag_title">Returns:</p>
|
777
|
+
<ul class="return">
|
778
|
+
|
779
|
+
<li>
|
780
|
+
|
781
|
+
|
782
|
+
<span class='type'>(<tt>String</tt>)</span>
|
783
|
+
|
784
|
+
|
785
|
+
|
786
|
+
</li>
|
787
|
+
|
788
|
+
</ul>
|
789
|
+
|
790
|
+
</div><table class="source_code">
|
791
|
+
<tr>
|
792
|
+
<td>
|
793
|
+
<pre class="lines">
|
794
|
+
|
795
|
+
|
796
|
+
80
|
797
|
+
81
|
798
|
+
82</pre>
|
799
|
+
</td>
|
800
|
+
<td>
|
801
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/cursor.rb', line 80</span>
|
802
|
+
|
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>
|
805
|
+
<span class='kw'>end</span></pre>
|
806
|
+
</td>
|
807
|
+
</tr>
|
808
|
+
</table>
|
809
|
+
</div>
|
810
|
+
|
811
|
+
<div class="method_details ">
|
812
|
+
<h3 class="signature " id="relative_path-instance_method">
|
813
|
+
|
814
|
+
#<strong>relative_path</strong> ⇒ <tt>String</tt>
|
815
|
+
|
816
|
+
|
817
|
+
|
818
|
+
|
819
|
+
|
820
|
+
</h3><div class="docstring">
|
821
|
+
<div class="discussion">
|
822
|
+
|
823
|
+
|
824
|
+
</div>
|
825
|
+
</div>
|
826
|
+
<div class="tags">
|
827
|
+
|
828
|
+
<p class="tag_title">Returns:</p>
|
829
|
+
<ul class="return">
|
830
|
+
|
831
|
+
<li>
|
832
|
+
|
833
|
+
|
834
|
+
<span class='type'>(<tt>String</tt>)</span>
|
835
|
+
|
836
|
+
|
837
|
+
|
838
|
+
</li>
|
839
|
+
|
840
|
+
</ul>
|
841
|
+
|
842
|
+
</div><table class="source_code">
|
843
|
+
<tr>
|
844
|
+
<td>
|
845
|
+
<pre class="lines">
|
846
|
+
|
847
|
+
|
848
|
+
76
|
849
|
+
77
|
850
|
+
78</pre>
|
851
|
+
</td>
|
852
|
+
<td>
|
853
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/cursor.rb', line 76</span>
|
854
|
+
|
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'>"</span><span class='tstring_content'>/</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
857
|
+
<span class='kw'>end</span></pre>
|
858
|
+
</td>
|
859
|
+
</tr>
|
860
|
+
</table>
|
861
|
+
</div>
|
862
|
+
|
863
|
+
<div class="method_details ">
|
864
|
+
<h3 class="signature " id="result-instance_method">
|
865
|
+
|
866
|
+
#<strong>result</strong> ⇒ <tt>String</tt>
|
867
|
+
|
868
|
+
|
869
|
+
|
870
|
+
|
871
|
+
|
872
|
+
</h3><div class="docstring">
|
873
|
+
<div class="discussion">
|
874
|
+
|
875
|
+
<p>Returns the result associated to this one.</p>
|
876
|
+
|
877
|
+
|
878
|
+
</div>
|
879
|
+
</div>
|
880
|
+
<div class="tags">
|
881
|
+
|
882
|
+
<p class="tag_title">Returns:</p>
|
883
|
+
<ul class="return">
|
884
|
+
|
885
|
+
<li>
|
886
|
+
|
887
|
+
|
888
|
+
<span class='type'>(<tt>String</tt>)</span>
|
889
|
+
|
890
|
+
|
891
|
+
|
892
|
+
</li>
|
893
|
+
|
894
|
+
</ul>
|
895
|
+
|
896
|
+
</div><table class="source_code">
|
897
|
+
<tr>
|
898
|
+
<td>
|
899
|
+
<pre class="lines">
|
900
|
+
|
901
|
+
|
902
|
+
68
|
903
|
+
69
|
904
|
+
70</pre>
|
905
|
+
</td>
|
906
|
+
<td>
|
907
|
+
<pre class="code"><span class="info file"># File 'lib/term_utils/ff/cursor.rb', line 68</span>
|
908
|
+
|
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>
|
911
|
+
<span class='kw'>end</span></pre>
|
912
|
+
</td>
|
913
|
+
</tr>
|
914
|
+
</table>
|
915
|
+
</div>
|
916
|
+
|
917
|
+
</div>
|
918
|
+
|
919
|
+
</div>
|
920
|
+
|
921
|
+
<div id="footer">
|
922
|
+
Generated on Thu Oct 17 22:50:58 2019 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).
|
925
|
+
</div>
|
926
|
+
|
927
|
+
</div>
|
928
|
+
</body>
|
929
|
+
</html>
|