dirtravel 0.0.5 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.rdoc +5 -0
- data/README.rdoc +2 -2
- data/doc/DirTravel/DirEntry.html +61 -60
- data/doc/DirTravel/DirTravelError.html +59 -47
- data/doc/DirTravel/Entry.html +164 -163
- data/doc/DirTravel/FileEntry.html +94 -73
- data/doc/DirTravel/Travel.html +291 -172
- data/doc/DirTravel.html +141 -58
- data/doc/_index.html +32 -35
- data/doc/class_list.html +27 -29
- data/doc/css/full_list.css +32 -31
- data/doc/css/style.css +254 -95
- data/doc/file.CHANGELOG.html +45 -43
- data/doc/file.README.html +37 -41
- data/doc/file_list.html +32 -29
- data/doc/frames.html +15 -21
- data/doc/index.html +37 -41
- data/doc/js/app.js +172 -72
- data/doc/js/full_list.js +168 -130
- data/doc/method_list.html +154 -99
- data/doc/top-level-namespace.html +38 -40
- data/lib/dirtravel.rb +98 -39
- data/lib/version.rb +6 -0
- data/test/test_dirtravel.rb +5 -5
- metadata +34 -39
- data/Rakefile +0 -28
data/doc/DirTravel/Entry.html
CHANGED
@@ -1,23 +1,22 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
4
3
|
<head>
|
5
|
-
<meta
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
7
|
Class: DirTravel::Entry
|
8
8
|
|
9
|
-
— Documentation by YARD 0.
|
9
|
+
— Documentation by YARD 0.9.36
|
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"
|
18
|
-
|
17
|
+
<script type="text/javascript">
|
18
|
+
pathId = "DirTravel::Entry";
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!" + escape(window.location.href);
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,51 +27,48 @@
|
|
28
27
|
|
29
28
|
</head>
|
30
29
|
<body>
|
31
|
-
<div
|
32
|
-
<
|
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">
|
33
38
|
|
34
39
|
<a href="../_index.html">Index (E)</a> »
|
35
40
|
<span class='title'><span class='object_link'><a href="../DirTravel.html" title="DirTravel (module)">DirTravel</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">Entry</span>
|
38
43
|
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
44
|
</div>
|
42
45
|
|
43
|
-
|
46
|
+
<div id="search">
|
44
47
|
|
45
48
|
<a class="full_list_link" id="class_list_link"
|
46
49
|
href="../class_list.html">
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../file_list.html">
|
57
|
-
File List
|
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>
|
58
56
|
</a>
|
59
57
|
|
60
58
|
</div>
|
61
|
-
|
62
|
-
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
63
61
|
|
64
|
-
|
65
|
-
|
66
|
-
<div id="content"><h1>Class: DirTravel::Entry
|
62
|
+
<div id="content"><h1>Class: DirTravel::Entry
|
67
63
|
|
68
64
|
|
69
65
|
|
70
66
|
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
67
|
+
<div class="box_info">
|
73
68
|
|
74
|
-
|
75
|
-
<
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
76
72
|
<span class="inheritName">Tree::TreeNode</span>
|
77
73
|
|
78
74
|
<ul class="fullTree">
|
@@ -85,21 +81,25 @@
|
|
85
81
|
</ul>
|
86
82
|
<a href="#" class="inheritanceTree">show all</a>
|
87
83
|
|
88
|
-
|
89
|
-
|
84
|
+
</dd>
|
85
|
+
</dl>
|
90
86
|
|
87
|
+
|
91
88
|
|
92
|
-
|
93
89
|
|
94
|
-
|
95
90
|
|
96
91
|
|
97
92
|
|
98
|
-
|
99
|
-
<dd class="r2 last">lib/dirtravel.rb</dd>
|
93
|
+
|
100
94
|
|
101
|
-
|
102
|
-
|
95
|
+
|
96
|
+
|
97
|
+
<dl>
|
98
|
+
<dt>Defined in:</dt>
|
99
|
+
<dd>lib/dirtravel.rb</dd>
|
100
|
+
</dl>
|
101
|
+
|
102
|
+
</div>
|
103
103
|
|
104
104
|
<h2>Overview</h2><div class="docstring">
|
105
105
|
<div class="discussion">
|
@@ -120,13 +120,13 @@
|
|
120
120
|
|
121
121
|
|
122
122
|
|
123
|
-
<h2>Instance Attribute Summary <small
|
123
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
124
124
|
<ul class="summary">
|
125
125
|
|
126
126
|
<li class="public ">
|
127
127
|
<span class="summary_signature">
|
128
128
|
|
129
|
-
<a href="#name-instance_method" title="#name (instance method)"
|
129
|
+
<a href="#name-instance_method" title="#name (instance method)">#<strong>name</strong> ⇒ Object </a>
|
130
130
|
|
131
131
|
|
132
132
|
|
@@ -144,7 +144,7 @@
|
|
144
144
|
|
145
145
|
|
146
146
|
<span class="summary_desc"><div class='inline'>
|
147
|
-
<p>
|
147
|
+
<p>Node name.</p>
|
148
148
|
</div></span>
|
149
149
|
|
150
150
|
</li>
|
@@ -158,7 +158,7 @@
|
|
158
158
|
|
159
159
|
<h2>
|
160
160
|
Instance Method Summary
|
161
|
-
<small
|
161
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
162
162
|
</h2>
|
163
163
|
|
164
164
|
<ul class="summary">
|
@@ -166,7 +166,7 @@
|
|
166
166
|
<li class="public ">
|
167
167
|
<span class="summary_signature">
|
168
168
|
|
169
|
-
<a href="#abspath-instance_method" title="#abspath (instance method)"
|
169
|
+
<a href="#abspath-instance_method" title="#abspath (instance method)">#<strong>abspath</strong> ⇒ Object </a>
|
170
170
|
|
171
171
|
|
172
172
|
|
@@ -190,7 +190,7 @@
|
|
190
190
|
<li class="public ">
|
191
191
|
<span class="summary_signature">
|
192
192
|
|
193
|
-
<a href="#dir-instance_method" title="#dir (instance method)"
|
193
|
+
<a href="#dir-instance_method" title="#dir (instance method)">#<strong>dir</strong>(basedir = self) ⇒ String </a>
|
194
194
|
|
195
195
|
|
196
196
|
|
@@ -214,7 +214,7 @@
|
|
214
214
|
<li class="public ">
|
215
215
|
<span class="summary_signature">
|
216
216
|
|
217
|
-
<a href="#files-instance_method" title="#files (instance method)"
|
217
|
+
<a href="#files-instance_method" title="#files (instance method)">#<strong>files</strong> ⇒ Object </a>
|
218
218
|
|
219
219
|
|
220
220
|
|
@@ -238,7 +238,7 @@
|
|
238
238
|
<li class="public ">
|
239
239
|
<span class="summary_signature">
|
240
240
|
|
241
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)"
|
241
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(name) ⇒ Entry </a>
|
242
242
|
|
243
243
|
|
244
244
|
|
@@ -255,7 +255,7 @@
|
|
255
255
|
|
256
256
|
|
257
257
|
<span class="summary_desc"><div class='inline'>
|
258
|
-
<p>
|
258
|
+
<p>Set name for <span class='object_link'><a href="" title="DirTravel::Entry (class)">Entry</a></span> (Dir/File).</p>
|
259
259
|
</div></span>
|
260
260
|
|
261
261
|
</li>
|
@@ -264,7 +264,7 @@
|
|
264
264
|
<li class="public ">
|
265
265
|
<span class="summary_signature">
|
266
266
|
|
267
|
-
<a href="#parts-instance_method" title="#parts (instance method)"
|
267
|
+
<a href="#parts-instance_method" title="#parts (instance method)">#<strong>parts</strong>(basedir = self) ⇒ Array </a>
|
268
268
|
|
269
269
|
|
270
270
|
|
@@ -290,7 +290,7 @@
|
|
290
290
|
<li class="public ">
|
291
291
|
<span class="summary_signature">
|
292
292
|
|
293
|
-
<a href="#path-instance_method" title="#path (instance method)"
|
293
|
+
<a href="#path-instance_method" title="#path (instance method)">#<strong>path</strong> ⇒ Object </a>
|
294
294
|
|
295
295
|
|
296
296
|
|
@@ -314,7 +314,7 @@
|
|
314
314
|
<li class="public ">
|
315
315
|
<span class="summary_signature">
|
316
316
|
|
317
|
-
<a href="#relative%3F-instance_method" title="#relative? (instance method)"
|
317
|
+
<a href="#relative%3F-instance_method" title="#relative? (instance method)">#<strong>relative?</strong> ⇒ Boolean </a>
|
318
318
|
|
319
319
|
|
320
320
|
|
@@ -329,7 +329,7 @@
|
|
329
329
|
|
330
330
|
|
331
331
|
<span class="summary_desc"><div class='inline'>
|
332
|
-
<p>Relative path Entry
|
332
|
+
<p>Relative path <span class='object_link'><a href="" title="DirTravel::Entry (class)">Entry</a></span>.</p>
|
333
333
|
</div></span>
|
334
334
|
|
335
335
|
</li>
|
@@ -338,7 +338,7 @@
|
|
338
338
|
<li class="public ">
|
339
339
|
<span class="summary_signature">
|
340
340
|
|
341
|
-
<a href="#rename-instance_method" title="#rename (instance method)"
|
341
|
+
<a href="#rename-instance_method" title="#rename (instance method)">#<strong>rename</strong>(name) ⇒ Object </a>
|
342
342
|
|
343
343
|
|
344
344
|
|
@@ -362,7 +362,7 @@
|
|
362
362
|
<li class="public ">
|
363
363
|
<span class="summary_signature">
|
364
364
|
|
365
|
-
<a href="#select_level-instance_method" title="#select_level (instance method)"
|
365
|
+
<a href="#select_level-instance_method" title="#select_level (instance method)">#<strong>select_level</strong>(level) ⇒ Array </a>
|
366
366
|
|
367
367
|
|
368
368
|
|
@@ -386,7 +386,7 @@
|
|
386
386
|
<li class="public ">
|
387
387
|
<span class="summary_signature">
|
388
388
|
|
389
|
-
<a href="#stat-instance_method" title="#stat (instance method)"
|
389
|
+
<a href="#stat-instance_method" title="#stat (instance method)">#<strong>stat</strong> ⇒ Object </a>
|
390
390
|
|
391
391
|
|
392
392
|
|
@@ -401,7 +401,7 @@
|
|
401
401
|
|
402
402
|
|
403
403
|
<span class="summary_desc"><div class='inline'>
|
404
|
-
<p>File.stat data for the Entry
|
404
|
+
<p>File.stat data for the <span class='object_link'><a href="" title="DirTravel::Entry (class)">Entry</a></span>.</p>
|
405
405
|
</div></span>
|
406
406
|
|
407
407
|
</li>
|
@@ -410,7 +410,7 @@
|
|
410
410
|
<li class="public ">
|
411
411
|
<span class="summary_signature">
|
412
412
|
|
413
|
-
<a href="#subpath-instance_method" title="#subpath (instance method)"
|
413
|
+
<a href="#subpath-instance_method" title="#subpath (instance method)">#<strong>subpath</strong>(level = 1) ⇒ Object </a>
|
414
414
|
|
415
415
|
|
416
416
|
|
@@ -434,7 +434,7 @@
|
|
434
434
|
<li class="public ">
|
435
435
|
<span class="summary_signature">
|
436
436
|
|
437
|
-
<a href="#tip-instance_method" title="#tip (instance method)"
|
437
|
+
<a href="#tip-instance_method" title="#tip (instance method)">#<strong>tip</strong> ⇒ Object </a>
|
438
438
|
|
439
439
|
|
440
440
|
|
@@ -465,7 +465,7 @@
|
|
465
465
|
<div class="method_details first">
|
466
466
|
<h3 class="signature first" id="initialize-instance_method">
|
467
467
|
|
468
|
-
|
468
|
+
#<strong>initialize</strong>(name) ⇒ <tt><span class='object_link'><a href="" title="DirTravel::Entry (class)">Entry</a></span></tt>
|
469
469
|
|
470
470
|
|
471
471
|
|
@@ -474,7 +474,7 @@
|
|
474
474
|
</h3><div class="docstring">
|
475
475
|
<div class="discussion">
|
476
476
|
|
477
|
-
<p>
|
477
|
+
<p>Set name for <span class='object_link'><a href="" title="DirTravel::Entry (class)">DirTravel::Entry</a></span> (Dir/File). Initialize abspath.</p>
|
478
478
|
|
479
479
|
|
480
480
|
</div>
|
@@ -488,13 +488,13 @@
|
|
488
488
|
<pre class="lines">
|
489
489
|
|
490
490
|
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
491
|
+
55
|
492
|
+
56
|
493
|
+
57
|
494
|
+
58</pre>
|
495
495
|
</td>
|
496
496
|
<td>
|
497
|
-
<pre class="code"><span class="info file"># File 'lib/dirtravel.rb', line
|
497
|
+
<pre class="code"><span class="info file"># File 'lib/dirtravel.rb', line 55</span>
|
498
498
|
|
499
499
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span> <span class='id identifier rubyid_name'>name</span> <span class='rparen'>)</span>
|
500
500
|
<span class='kw'>super</span><span class='lparen'>(</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
|
@@ -515,7 +515,7 @@
|
|
515
515
|
<div class="method_details first">
|
516
516
|
<h3 class="signature first" id="name-instance_method">
|
517
517
|
|
518
|
-
|
518
|
+
#<strong>name</strong> ⇒ <tt>Object</tt>
|
519
519
|
|
520
520
|
|
521
521
|
|
@@ -524,7 +524,7 @@
|
|
524
524
|
</h3><div class="docstring">
|
525
525
|
<div class="discussion">
|
526
526
|
|
527
|
-
<p>
|
527
|
+
<p>Node name.</p>
|
528
528
|
|
529
529
|
|
530
530
|
</div>
|
@@ -538,12 +538,12 @@
|
|
538
538
|
<pre class="lines">
|
539
539
|
|
540
540
|
|
541
|
-
|
542
|
-
|
543
|
-
|
541
|
+
51
|
542
|
+
52
|
543
|
+
53</pre>
|
544
544
|
</td>
|
545
545
|
<td>
|
546
|
-
<pre class="code"><span class="info file"># File 'lib/dirtravel.rb', line
|
546
|
+
<pre class="code"><span class="info file"># File 'lib/dirtravel.rb', line 51</span>
|
547
547
|
|
548
548
|
<span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
|
549
549
|
<span class='ivar'>@name</span>
|
@@ -563,7 +563,7 @@
|
|
563
563
|
<div class="method_details first">
|
564
564
|
<h3 class="signature first" id="abspath-instance_method">
|
565
565
|
|
566
|
-
|
566
|
+
#<strong>abspath</strong> ⇒ <tt>Object</tt>
|
567
567
|
|
568
568
|
|
569
569
|
|
@@ -586,22 +586,22 @@
|
|
586
586
|
<pre class="lines">
|
587
587
|
|
588
588
|
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
589
|
+
96
|
590
|
+
97
|
591
|
+
98
|
592
|
+
99
|
593
|
+
100
|
594
|
+
101
|
595
|
+
102</pre>
|
596
596
|
</td>
|
597
597
|
<td>
|
598
|
-
<pre class="code"><span class="info file"># File 'lib/dirtravel.rb', line
|
598
|
+
<pre class="code"><span class="info file"># File 'lib/dirtravel.rb', line 96</span>
|
599
599
|
|
600
600
|
<span class='kw'>def</span> <span class='id identifier rubyid_abspath'>abspath</span>
|
601
601
|
<span class='kw'>if</span> <span class='ivar'>@abspath</span>
|
602
602
|
<span class='ivar'>@abspath</span>
|
603
603
|
<span class='kw'>else</span>
|
604
|
-
<span class='id identifier rubyid_root'>root</span><span class='period'>.</span><span class='id identifier rubyid_abspath'>abspath</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'
|
604
|
+
<span class='id identifier rubyid_root'><span class='object_link'><a href="../top-level-namespace.html" title="Top Level Namespace (root)">root</a></span></span><span class='period'>.</span><span class='id identifier rubyid_abspath'>abspath</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/</span><span class='tstring_end'>'</span></span> <span class='op'>+</span> <span class='id identifier rubyid_subpath'>subpath</span>
|
605
605
|
<span class='kw'>end</span>
|
606
606
|
<span class='kw'>end</span></pre>
|
607
607
|
</td>
|
@@ -612,7 +612,7 @@
|
|
612
612
|
<div class="method_details ">
|
613
613
|
<h3 class="signature " id="dir-instance_method">
|
614
614
|
|
615
|
-
|
615
|
+
#<strong>dir</strong>(basedir = self) ⇒ <tt>String</tt>
|
616
616
|
|
617
617
|
|
618
618
|
|
@@ -675,15 +675,15 @@
|
|
675
675
|
<pre class="lines">
|
676
676
|
|
677
677
|
|
678
|
-
|
679
|
-
|
680
|
-
|
678
|
+
115
|
679
|
+
116
|
680
|
+
117</pre>
|
681
681
|
</td>
|
682
682
|
<td>
|
683
|
-
<pre class="code"><span class="info file"># File 'lib/dirtravel.rb', line
|
683
|
+
<pre class="code"><span class="info file"># File 'lib/dirtravel.rb', line 115</span>
|
684
684
|
|
685
685
|
<span class='kw'>def</span> <span class='id identifier rubyid_dir'>dir</span><span class='lparen'>(</span> <span class='id identifier rubyid_basedir'>basedir</span> <span class='op'>=</span> <span class='kw'>self</span> <span class='rparen'>)</span>
|
686
|
-
<span class='id identifier rubyid_parts'>parts</span><span class='lparen'>(</span> <span class='id identifier rubyid_basedir'>basedir</span><span class='period'>.</span><span class='id identifier rubyid_parent'>parent</span> <span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span> <span class='tstring'><span class='tstring_beg'
|
686
|
+
<span class='id identifier rubyid_parts'>parts</span><span class='lparen'>(</span> <span class='id identifier rubyid_basedir'>basedir</span><span class='period'>.</span><span class='id identifier rubyid_parent'>parent</span> <span class='rparen'>)</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>
|
687
687
|
<span class='kw'>end</span></pre>
|
688
688
|
</td>
|
689
689
|
</tr>
|
@@ -693,7 +693,7 @@
|
|
693
693
|
<div class="method_details ">
|
694
694
|
<h3 class="signature " id="files-instance_method">
|
695
695
|
|
696
|
-
|
696
|
+
#<strong>files</strong> ⇒ <tt>Object</tt>
|
697
697
|
|
698
698
|
|
699
699
|
|
@@ -716,15 +716,15 @@
|
|
716
716
|
<pre class="lines">
|
717
717
|
|
718
718
|
|
719
|
-
|
720
|
-
|
721
|
-
|
719
|
+
131
|
720
|
+
132
|
721
|
+
133</pre>
|
722
722
|
</td>
|
723
723
|
<td>
|
724
|
-
<pre class="code"><span class="info file"># File 'lib/dirtravel.rb', line
|
724
|
+
<pre class="code"><span class="info file"># File 'lib/dirtravel.rb', line 131</span>
|
725
725
|
|
726
726
|
<span class='kw'>def</span> <span class='id identifier rubyid_files'>files</span>
|
727
|
-
<span class='id identifier rubyid_select'>select</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_i'>i</span><span class='op'>|</span> <span class='id identifier rubyid_i'>i</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span><span class='lparen'>(</span> <span class='const'>FileEntry</span> <span class='rparen'>)</span> <span class='kw'>end</span>
|
727
|
+
<span class='id identifier rubyid_select'>select</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_i'>i</span><span class='op'>|</span> <span class='id identifier rubyid_i'>i</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span><span class='lparen'>(</span> <span class='const'><span class='object_link'><a href="FileEntry.html" title="DirTravel::FileEntry (class)">FileEntry</a></span></span> <span class='rparen'>)</span> <span class='kw'>end</span>
|
728
728
|
<span class='kw'>end</span></pre>
|
729
729
|
</td>
|
730
730
|
</tr>
|
@@ -734,7 +734,7 @@
|
|
734
734
|
<div class="method_details ">
|
735
735
|
<h3 class="signature " id="parts-instance_method">
|
736
736
|
|
737
|
-
|
737
|
+
#<strong>parts</strong>(basedir = self) ⇒ <tt>Array</tt>
|
738
738
|
|
739
739
|
|
740
740
|
|
@@ -801,17 +801,17 @@
|
|
801
801
|
<pre class="lines">
|
802
802
|
|
803
803
|
|
804
|
-
59
|
805
|
-
60
|
806
|
-
61
|
807
|
-
62
|
808
|
-
63
|
809
|
-
64
|
810
804
|
65
|
811
|
-
66
|
805
|
+
66
|
806
|
+
67
|
807
|
+
68
|
808
|
+
69
|
809
|
+
70
|
810
|
+
71
|
811
|
+
72</pre>
|
812
812
|
</td>
|
813
813
|
<td>
|
814
|
-
<pre class="code"><span class="info file"># File 'lib/dirtravel.rb', line
|
814
|
+
<pre class="code"><span class="info file"># File 'lib/dirtravel.rb', line 65</span>
|
815
815
|
|
816
816
|
<span class='kw'>def</span> <span class='id identifier rubyid_parts'>parts</span><span class='lparen'>(</span> <span class='id identifier rubyid_basedir'>basedir</span> <span class='op'>=</span> <span class='kw'>self</span> <span class='rparen'>)</span>
|
817
817
|
<span class='id identifier rubyid_parents'>parents</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
@@ -829,7 +829,7 @@
|
|
829
829
|
<div class="method_details ">
|
830
830
|
<h3 class="signature " id="path-instance_method">
|
831
831
|
|
832
|
-
|
832
|
+
#<strong>path</strong> ⇒ <tt>Object</tt>
|
833
833
|
|
834
834
|
|
835
835
|
|
@@ -852,15 +852,15 @@
|
|
852
852
|
<pre class="lines">
|
853
853
|
|
854
854
|
|
855
|
-
|
856
|
-
|
857
|
-
|
855
|
+
78
|
856
|
+
79
|
857
|
+
80</pre>
|
858
858
|
</td>
|
859
859
|
<td>
|
860
|
-
<pre class="code"><span class="info file"># File 'lib/dirtravel.rb', line
|
860
|
+
<pre class="code"><span class="info file"># File 'lib/dirtravel.rb', line 78</span>
|
861
861
|
|
862
862
|
<span class='kw'>def</span> <span class='id identifier rubyid_path'>path</span>
|
863
|
-
<span class='id identifier rubyid_parts'>parts</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span> <span class='tstring'><span class='tstring_beg'
|
863
|
+
<span class='id identifier rubyid_parts'>parts</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>
|
864
864
|
<span class='kw'>end</span></pre>
|
865
865
|
</td>
|
866
866
|
</tr>
|
@@ -870,7 +870,7 @@
|
|
870
870
|
<div class="method_details ">
|
871
871
|
<h3 class="signature " id="relative?-instance_method">
|
872
872
|
|
873
|
-
|
873
|
+
#<strong>relative?</strong> ⇒ <tt>Boolean</tt>
|
874
874
|
|
875
875
|
|
876
876
|
|
@@ -879,7 +879,7 @@
|
|
879
879
|
</h3><div class="docstring">
|
880
880
|
<div class="discussion">
|
881
881
|
|
882
|
-
<p>Relative path Entry
|
882
|
+
<p>Relative path <span class='object_link'><a href="" title="DirTravel::Entry (class)">DirTravel::Entry</a></span>.</p>
|
883
883
|
|
884
884
|
|
885
885
|
</div>
|
@@ -906,15 +906,15 @@
|
|
906
906
|
<pre class="lines">
|
907
907
|
|
908
908
|
|
909
|
-
|
910
|
-
|
911
|
-
|
909
|
+
143
|
910
|
+
144
|
911
|
+
145</pre>
|
912
912
|
</td>
|
913
913
|
<td>
|
914
|
-
<pre class="code"><span class="info file"># File 'lib/dirtravel.rb', line
|
914
|
+
<pre class="code"><span class="info file"># File 'lib/dirtravel.rb', line 143</span>
|
915
915
|
|
916
916
|
<span class='kw'>def</span> <span class='id identifier rubyid_relative?'>relative?</span>
|
917
|
-
<span class='ivar'>@name</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span> <span class='op'>!=</span> <span class='tstring'><span class='tstring_beg'
|
917
|
+
<span class='ivar'>@name</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span> <span class='op'>!=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/</span><span class='tstring_end'>'</span></span>
|
918
918
|
<span class='kw'>end</span></pre>
|
919
919
|
</td>
|
920
920
|
</tr>
|
@@ -924,7 +924,7 @@
|
|
924
924
|
<div class="method_details ">
|
925
925
|
<h3 class="signature " id="rename-instance_method">
|
926
926
|
|
927
|
-
|
927
|
+
#<strong>rename</strong>(name) ⇒ <tt>Object</tt>
|
928
928
|
|
929
929
|
|
930
930
|
|
@@ -953,7 +953,7 @@
|
|
953
953
|
|
954
954
|
—
|
955
955
|
<div class='inline'>
|
956
|
-
<p>If name is abspath then Entry becomes abspath.</p>
|
956
|
+
<p>If name is abspath then <span class='object_link'><a href="" title="DirTravel::Entry (class)">DirTravel::Entry</a></span> becomes abspath.</p>
|
957
957
|
</div>
|
958
958
|
|
959
959
|
</li>
|
@@ -967,23 +967,23 @@
|
|
967
967
|
<pre class="lines">
|
968
968
|
|
969
969
|
|
970
|
-
144
|
971
|
-
145
|
972
|
-
146
|
973
|
-
147
|
974
|
-
148
|
975
|
-
149
|
976
|
-
150
|
977
|
-
151
|
978
970
|
152
|
979
|
-
153
|
971
|
+
153
|
972
|
+
154
|
973
|
+
155
|
974
|
+
156
|
975
|
+
157
|
976
|
+
158
|
977
|
+
159
|
978
|
+
160
|
979
|
+
161</pre>
|
980
980
|
</td>
|
981
981
|
<td>
|
982
|
-
<pre class="code"><span class="info file"># File 'lib/dirtravel.rb', line
|
982
|
+
<pre class="code"><span class="info file"># File 'lib/dirtravel.rb', line 152</span>
|
983
983
|
|
984
984
|
<span class='kw'>def</span> <span class='id identifier rubyid_rename'>rename</span><span class='lparen'>(</span> <span class='id identifier rubyid_name'>name</span> <span class='rparen'>)</span>
|
985
985
|
<span class='ivar'>@name</span> <span class='op'>=</span> <span class='id identifier rubyid_name'>name</span>
|
986
|
-
|
986
|
+
|
987
987
|
<span class='comment'># Absolute or relative path?
|
988
988
|
</span> <span class='kw'>if</span> <span class='id identifier rubyid_name'>name</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/</span><span class='tstring_end'>"</span></span>
|
989
989
|
<span class='ivar'>@abspath</span> <span class='op'>=</span> <span class='id identifier rubyid_name'>name</span>
|
@@ -999,7 +999,7 @@
|
|
999
999
|
<div class="method_details ">
|
1000
1000
|
<h3 class="signature " id="select_level-instance_method">
|
1001
1001
|
|
1002
|
-
|
1002
|
+
#<strong>select_level</strong>(level) ⇒ <tt>Array</tt>
|
1003
1003
|
|
1004
1004
|
|
1005
1005
|
|
@@ -1060,12 +1060,12 @@
|
|
1060
1060
|
<pre class="lines">
|
1061
1061
|
|
1062
1062
|
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1063
|
+
125
|
1064
|
+
126
|
1065
|
+
127</pre>
|
1066
1066
|
</td>
|
1067
1067
|
<td>
|
1068
|
-
<pre class="code"><span class="info file"># File 'lib/dirtravel.rb', line
|
1068
|
+
<pre class="code"><span class="info file"># File 'lib/dirtravel.rb', line 125</span>
|
1069
1069
|
|
1070
1070
|
<span class='kw'>def</span> <span class='id identifier rubyid_select_level'>select_level</span><span class='lparen'>(</span> <span class='id identifier rubyid_level'>level</span> <span class='rparen'>)</span>
|
1071
1071
|
<span class='id identifier rubyid_select'>select</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_i'>i</span><span class='op'>|</span> <span class='id identifier rubyid_i'>i</span><span class='period'>.</span><span class='id identifier rubyid_node_depth'>node_depth</span> <span class='op'>==</span> <span class='id identifier rubyid_level'>level</span><span class='semicolon'>;</span> <span class='kw'>end</span>
|
@@ -1078,7 +1078,7 @@
|
|
1078
1078
|
<div class="method_details ">
|
1079
1079
|
<h3 class="signature " id="stat-instance_method">
|
1080
1080
|
|
1081
|
-
|
1081
|
+
#<strong>stat</strong> ⇒ <tt>Object</tt>
|
1082
1082
|
|
1083
1083
|
|
1084
1084
|
|
@@ -1087,7 +1087,7 @@
|
|
1087
1087
|
</h3><div class="docstring">
|
1088
1088
|
<div class="discussion">
|
1089
1089
|
|
1090
|
-
<p>File.stat data for the Entry
|
1090
|
+
<p>File.stat data for the <span class='object_link'><a href="" title="DirTravel::Entry (class)">DirTravel::Entry</a></span>.</p>
|
1091
1091
|
|
1092
1092
|
|
1093
1093
|
</div>
|
@@ -1101,12 +1101,12 @@
|
|
1101
1101
|
<pre class="lines">
|
1102
1102
|
|
1103
1103
|
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1104
|
+
137
|
1105
|
+
138
|
1106
|
+
139</pre>
|
1107
1107
|
</td>
|
1108
1108
|
<td>
|
1109
|
-
<pre class="code"><span class="info file"># File 'lib/dirtravel.rb', line
|
1109
|
+
<pre class="code"><span class="info file"># File 'lib/dirtravel.rb', line 137</span>
|
1110
1110
|
|
1111
1111
|
<span class='kw'>def</span> <span class='id identifier rubyid_stat'>stat</span>
|
1112
1112
|
<span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_stat'>stat</span><span class='lparen'>(</span> <span class='id identifier rubyid_path'>path</span> <span class='rparen'>)</span>
|
@@ -1119,7 +1119,7 @@
|
|
1119
1119
|
<div class="method_details ">
|
1120
1120
|
<h3 class="signature " id="subpath-instance_method">
|
1121
1121
|
|
1122
|
-
|
1122
|
+
#<strong>subpath</strong>(level = 1) ⇒ <tt>Object</tt>
|
1123
1123
|
|
1124
1124
|
|
1125
1125
|
|
@@ -1164,23 +1164,23 @@
|
|
1164
1164
|
<pre class="lines">
|
1165
1165
|
|
1166
1166
|
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
1167
|
+
86
|
1168
|
+
87
|
1169
|
+
88
|
1170
|
+
89
|
1171
|
+
90
|
1172
|
+
91
|
1173
|
+
92</pre>
|
1174
1174
|
</td>
|
1175
1175
|
<td>
|
1176
|
-
<pre class="code"><span class="info file"># File 'lib/dirtravel.rb', line
|
1176
|
+
<pre class="code"><span class="info file"># File 'lib/dirtravel.rb', line 86</span>
|
1177
1177
|
|
1178
1178
|
<span class='kw'>def</span> <span class='id identifier rubyid_subpath'>subpath</span><span class='lparen'>(</span> <span class='id identifier rubyid_level'>level</span> <span class='op'>=</span> <span class='int'>1</span> <span class='rparen'>)</span>
|
1179
1179
|
<span class='id identifier rubyid_pa'>pa</span> <span class='op'>=</span> <span class='id identifier rubyid_parts'>parts</span>
|
1180
1180
|
<span class='kw'>if</span> <span class='id identifier rubyid_level'>level</span> <span class='op'><</span> <span class='int'>0</span> <span class='op'>||</span> <span class='id identifier rubyid_level'>level</span> <span class='op'>></span> <span class='id identifier rubyid_pa'>pa</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span>
|
1181
|
-
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>DirTravelError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Invalid index for subpath level!</span><span class='tstring_end'>"</span></span>
|
1181
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="DirTravelError.html" title="DirTravel::DirTravelError (class)">DirTravelError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Invalid index for subpath level!</span><span class='tstring_end'>"</span></span>
|
1182
1182
|
<span class='kw'>end</span>
|
1183
|
-
<span class='id identifier rubyid_pa'>pa</span><span class='lbracket'>[</span> <span class='id identifier rubyid_level'>level</span> <span class='op'>..</span> <span class='op'>-</span><span class='int'>1</span> <span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span> <span class='tstring'><span class='tstring_beg'
|
1183
|
+
<span class='id identifier rubyid_pa'>pa</span><span class='lbracket'>[</span> <span class='id identifier rubyid_level'>level</span> <span class='op'>..</span> <span class='op'>-</span><span class='int'>1</span> <span class='rbracket'>]</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>
|
1184
1184
|
<span class='kw'>end</span></pre>
|
1185
1185
|
</td>
|
1186
1186
|
</tr>
|
@@ -1190,7 +1190,7 @@
|
|
1190
1190
|
<div class="method_details ">
|
1191
1191
|
<h3 class="signature " id="tip-instance_method">
|
1192
1192
|
|
1193
|
-
|
1193
|
+
#<strong>tip</strong> ⇒ <tt>Object</tt>
|
1194
1194
|
|
1195
1195
|
|
1196
1196
|
|
@@ -1213,12 +1213,12 @@
|
|
1213
1213
|
<pre class="lines">
|
1214
1214
|
|
1215
1215
|
|
1216
|
-
|
1217
|
-
|
1218
|
-
|
1216
|
+
106
|
1217
|
+
107
|
1218
|
+
108</pre>
|
1219
1219
|
</td>
|
1220
1220
|
<td>
|
1221
|
-
<pre class="code"><span class="info file"># File 'lib/dirtravel.rb', line
|
1221
|
+
<pre class="code"><span class="info file"># File 'lib/dirtravel.rb', line 106</span>
|
1222
1222
|
|
1223
1223
|
<span class='kw'>def</span> <span class='id identifier rubyid_tip'>tip</span>
|
1224
1224
|
<span class='ivar'>@name</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</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='lbracket'>[</span><span class='op'>-</span><span class='int'>1</span><span class='rbracket'>]</span>
|
@@ -1232,11 +1232,12 @@
|
|
1232
1232
|
|
1233
1233
|
</div>
|
1234
1234
|
|
1235
|
-
|
1236
|
-
Generated on
|
1237
|
-
<a href="
|
1238
|
-
0.
|
1235
|
+
<div id="footer">
|
1236
|
+
Generated on Fri Jun 28 14:38:02 2024 by
|
1237
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1238
|
+
0.9.36 (ruby-3.1.2).
|
1239
1239
|
</div>
|
1240
1240
|
|
1241
|
+
</div>
|
1241
1242
|
</body>
|
1242
1243
|
</html>
|