rubu 0.0.1
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 +7 -0
- data/CHANGELOG.rdoc +3 -0
- data/LICENSE +20 -0
- data/README.rdoc +63 -0
- data/doc/Array.html +422 -0
- data/doc/Rubu.html +201 -0
- data/doc/Rubu/Action.html +1002 -0
- data/doc/Rubu/AlwaysBuild.html +275 -0
- data/doc/Rubu/Build.html +1663 -0
- data/doc/Rubu/DateBuild.html +275 -0
- data/doc/Rubu/Flow.html +893 -0
- data/doc/Rubu/FlowRun.html +377 -0
- data/doc/Rubu/Fork.html +253 -0
- data/doc/Rubu/Info.html +264 -0
- data/doc/Rubu/Mark.html +1375 -0
- data/doc/Rubu/MarkBuild.html +275 -0
- data/doc/Rubu/Order.html +264 -0
- data/doc/Rubu/RubyCommand.html +315 -0
- data/doc/Rubu/ShellCommand.html +333 -0
- data/doc/Rubu/State.html +412 -0
- data/doc/Rubu/Var.html +264 -0
- data/doc/Rubu/Walk.html +184 -0
- data/doc/_index.html +313 -0
- data/doc/class_list.html +58 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +339 -0
- data/doc/file.CHANGELOG.html +79 -0
- data/doc/file.README.html +133 -0
- data/doc/file_list.html +63 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +133 -0
- data/doc/js/app.js +219 -0
- data/doc/js/full_list.js +181 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +549 -0
- data/doc/top-level-namespace.html +114 -0
- data/example/bin/gen_world +10 -0
- data/example/bin/rubu_example +178 -0
- data/example/runme +26 -0
- data/example/src/hello_world.c +11 -0
- data/lib/rubu.rb +790 -0
- data/lib/version.rb +6 -0
- metadata +92 -0
data/doc/Rubu/Info.html
ADDED
@@ -0,0 +1,264 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: Rubu::Info
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.7.6
|
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
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '../';
|
20
|
+
framesUrl = "../frames.html#!Rubu/Info.html";
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="../_index.html">Index (I)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../Rubu.html" title="Rubu (module)">Rubu</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">Info</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="../class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="../method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="../file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: Rubu::Info
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName">Object</span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next">Rubu::Info</li>
|
82
|
+
|
83
|
+
</ul>
|
84
|
+
<a href="#" class="inheritanceTree">show all</a>
|
85
|
+
|
86
|
+
</dd>
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
<dt class="r2 last">Defined in:</dt>
|
97
|
+
<dd class="r2 last">lib/rubu.rb</dd>
|
98
|
+
|
99
|
+
</dl>
|
100
|
+
<div class="clear"></div>
|
101
|
+
|
102
|
+
<h2>Overview</h2><div class="docstring">
|
103
|
+
<div class="discussion">
|
104
|
+
|
105
|
+
<p>Information space for program.</p>
|
106
|
+
|
107
|
+
|
108
|
+
</div>
|
109
|
+
</div>
|
110
|
+
<div class="tags">
|
111
|
+
|
112
|
+
|
113
|
+
</div>
|
114
|
+
<h2>Constant Summary</h2>
|
115
|
+
|
116
|
+
<dl class="constants">
|
117
|
+
|
118
|
+
<dt id="info-classvariable" class="">@@info =
|
119
|
+
|
120
|
+
</dt>
|
121
|
+
<dd><pre class="code"><span class='lbrace'>{</span><span class='rbrace'>}</span></pre></dd>
|
122
|
+
|
123
|
+
</dl>
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
<h2>
|
134
|
+
Class Method Summary
|
135
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
136
|
+
</h2>
|
137
|
+
|
138
|
+
<ul class="summary">
|
139
|
+
|
140
|
+
<li class="public ">
|
141
|
+
<span class="summary_signature">
|
142
|
+
|
143
|
+
<a href="#%5B%5D-class_method" title="[] (class method)">+ (Object) <strong>[]</strong>(key) </a>
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
</span>
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
158
|
+
|
159
|
+
</li>
|
160
|
+
|
161
|
+
|
162
|
+
<li class="public ">
|
163
|
+
<span class="summary_signature">
|
164
|
+
|
165
|
+
<a href="#%5B%5D%3D-class_method" title="[]= (class method)">+ (Object) <strong>[]=</strong>(key, val) </a>
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
</span>
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
180
|
+
|
181
|
+
</li>
|
182
|
+
|
183
|
+
|
184
|
+
</ul>
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
<div id="class_method_details" class="method_details_list">
|
190
|
+
<h2>Class Method Details</h2>
|
191
|
+
|
192
|
+
|
193
|
+
<div class="method_details first">
|
194
|
+
<h3 class="signature first" id="[]-class_method">
|
195
|
+
|
196
|
+
+ (<tt>Object</tt>) <strong>[]</strong>(key)
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
</h3><table class="source_code">
|
203
|
+
<tr>
|
204
|
+
<td>
|
205
|
+
<pre class="lines">
|
206
|
+
|
207
|
+
|
208
|
+
413
|
209
|
+
414
|
210
|
+
415</pre>
|
211
|
+
</td>
|
212
|
+
<td>
|
213
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 413</span>
|
214
|
+
|
215
|
+
<span class='kw'>def</span> <span class='const'>Info</span><span class='period'>.</span><span class='op'>[]</span><span class='lparen'>(</span> <span class='id identifier rubyid_key'>key</span> <span class='rparen'>)</span>
|
216
|
+
<span class='cvar'>@@info</span><span class='lbracket'>[</span> <span class='id identifier rubyid_key'>key</span> <span class='rbracket'>]</span>
|
217
|
+
<span class='kw'>end</span></pre>
|
218
|
+
</td>
|
219
|
+
</tr>
|
220
|
+
</table>
|
221
|
+
</div>
|
222
|
+
|
223
|
+
<div class="method_details ">
|
224
|
+
<h3 class="signature " id="[]=-class_method">
|
225
|
+
|
226
|
+
+ (<tt>Object</tt>) <strong>[]=</strong>(key, val)
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
</h3><table class="source_code">
|
233
|
+
<tr>
|
234
|
+
<td>
|
235
|
+
<pre class="lines">
|
236
|
+
|
237
|
+
|
238
|
+
409
|
239
|
+
410
|
240
|
+
411</pre>
|
241
|
+
</td>
|
242
|
+
<td>
|
243
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 409</span>
|
244
|
+
|
245
|
+
<span class='kw'>def</span> <span class='const'>Info</span><span class='period'>.</span><span class='op'>[]=</span><span class='lparen'>(</span> <span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_val'>val</span> <span class='rparen'>)</span>
|
246
|
+
<span class='cvar'>@@info</span><span class='lbracket'>[</span> <span class='id identifier rubyid_key'>key</span> <span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_val'>val</span>
|
247
|
+
<span class='kw'>end</span></pre>
|
248
|
+
</td>
|
249
|
+
</tr>
|
250
|
+
</table>
|
251
|
+
</div>
|
252
|
+
|
253
|
+
</div>
|
254
|
+
|
255
|
+
</div>
|
256
|
+
|
257
|
+
<div id="footer">
|
258
|
+
Generated on Fri Jun 29 10:04:07 2018 by
|
259
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
260
|
+
0.8.7.6 (ruby-2.3.3).
|
261
|
+
</div>
|
262
|
+
|
263
|
+
</body>
|
264
|
+
</html>
|
data/doc/Rubu/Mark.html
ADDED
@@ -0,0 +1,1375 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: Rubu::Mark
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.7.6
|
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
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '../';
|
20
|
+
framesUrl = "../frames.html#!Rubu/Mark.html";
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="../_index.html">Index (M)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../Rubu.html" title="Rubu (module)">Rubu</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">Mark</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="../class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="../method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="../file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: Rubu::Mark
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName">Object</span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next">Rubu::Mark</li>
|
82
|
+
|
83
|
+
</ul>
|
84
|
+
<a href="#" class="inheritanceTree">show all</a>
|
85
|
+
|
86
|
+
</dd>
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
<dt class="r2 last">Defined in:</dt>
|
97
|
+
<dd class="r2 last">lib/rubu.rb</dd>
|
98
|
+
|
99
|
+
</dl>
|
100
|
+
<div class="clear"></div>
|
101
|
+
|
102
|
+
<h2>Overview</h2><div class="docstring">
|
103
|
+
<div class="discussion">
|
104
|
+
|
105
|
+
<p>Source or Target file for build commands. Rubu handles only Marks, and
|
106
|
+
hence bare file names are not usable.</p>
|
107
|
+
|
108
|
+
|
109
|
+
</div>
|
110
|
+
</div>
|
111
|
+
<div class="tags">
|
112
|
+
|
113
|
+
|
114
|
+
</div>
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
119
|
+
<ul class="summary">
|
120
|
+
|
121
|
+
<li class="public ">
|
122
|
+
<span class="summary_signature">
|
123
|
+
|
124
|
+
<a href="#base-instance_method" title="#base (instance method)">- (Object) <strong>base</strong> </a>
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
</span>
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
<span class="note title readonly">readonly</span>
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
<span class="summary_desc"><div class='inline'>
|
144
|
+
<p>Base name.</p>
|
145
|
+
</div></span>
|
146
|
+
|
147
|
+
</li>
|
148
|
+
|
149
|
+
|
150
|
+
<li class="public ">
|
151
|
+
<span class="summary_signature">
|
152
|
+
|
153
|
+
<a href="#dir-instance_method" title="#dir (instance method)">- (Object) <strong>dir</strong> </a>
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
</span>
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
<span class="note title readonly">readonly</span>
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
<span class="summary_desc"><div class='inline'>
|
173
|
+
<p>Absolute directory.</p>
|
174
|
+
</div></span>
|
175
|
+
|
176
|
+
</li>
|
177
|
+
|
178
|
+
|
179
|
+
<li class="public ">
|
180
|
+
<span class="summary_signature">
|
181
|
+
|
182
|
+
<a href="#ext-instance_method" title="#ext (instance method)">- (Object) <strong>ext</strong> </a>
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
</span>
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
<span class="note title readonly">readonly</span>
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
<span class="summary_desc"><div class='inline'>
|
202
|
+
<p>File extension.</p>
|
203
|
+
</div></span>
|
204
|
+
|
205
|
+
</li>
|
206
|
+
|
207
|
+
|
208
|
+
<li class="public ">
|
209
|
+
<span class="summary_signature">
|
210
|
+
|
211
|
+
<a href="#rdir-instance_method" title="#rdir (instance method)">- (Object) <strong>rdir</strong> </a>
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
</span>
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
<span class="note title readonly">readonly</span>
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
<span class="summary_desc"><div class='inline'>
|
231
|
+
<p>Relative directory.</p>
|
232
|
+
</div></span>
|
233
|
+
|
234
|
+
</li>
|
235
|
+
|
236
|
+
|
237
|
+
<li class="public ">
|
238
|
+
<span class="summary_signature">
|
239
|
+
|
240
|
+
<a href="#skip-instance_method" title="#skip (instance method)">- (Object) <strong>skip</strong> </a>
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
</span>
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
<span class="summary_desc"><div class='inline'>
|
258
|
+
<p>Skip file.</p>
|
259
|
+
</div></span>
|
260
|
+
|
261
|
+
</li>
|
262
|
+
|
263
|
+
|
264
|
+
</ul>
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
<h2>
|
271
|
+
Class Method Summary
|
272
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
273
|
+
</h2>
|
274
|
+
|
275
|
+
<ul class="summary">
|
276
|
+
|
277
|
+
<li class="public ">
|
278
|
+
<span class="summary_signature">
|
279
|
+
|
280
|
+
<a href="#glob-class_method" title="glob (class method)">+ (Object) <strong>glob</strong>(pattern) </a>
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
</span>
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
<span class="summary_desc"><div class='inline'>
|
295
|
+
<p>Convert a list of file names matched with pattern to Marks.</p>
|
296
|
+
</div></span>
|
297
|
+
|
298
|
+
</li>
|
299
|
+
|
300
|
+
|
301
|
+
<li class="public ">
|
302
|
+
<span class="summary_signature">
|
303
|
+
|
304
|
+
<a href="#list-class_method" title="list (class method)">+ (Object) <strong>list</strong>(files) </a>
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
</span>
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
<span class="summary_desc"><div class='inline'>
|
319
|
+
<p>Convert a list of file names to Marks.</p>
|
320
|
+
</div></span>
|
321
|
+
|
322
|
+
</li>
|
323
|
+
|
324
|
+
|
325
|
+
<li class="public ">
|
326
|
+
<span class="summary_signature">
|
327
|
+
|
328
|
+
<a href="#path-class_method" title="path (class method)">+ (Object) <strong>path</strong>(file_path) </a>
|
329
|
+
|
330
|
+
|
331
|
+
|
332
|
+
</span>
|
333
|
+
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
<span class="summary_desc"><div class='inline'>
|
343
|
+
<p>Convert file path to Mark.</p>
|
344
|
+
</div></span>
|
345
|
+
|
346
|
+
</li>
|
347
|
+
|
348
|
+
|
349
|
+
</ul>
|
350
|
+
|
351
|
+
<h2>
|
352
|
+
Instance Method Summary
|
353
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
354
|
+
</h2>
|
355
|
+
|
356
|
+
<ul class="summary">
|
357
|
+
|
358
|
+
<li class="public ">
|
359
|
+
<span class="summary_signature">
|
360
|
+
|
361
|
+
<a href="#%5B%5D-instance_method" title="#[] (instance method)">- (Object) <strong>[]</strong>(key) </a>
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
</span>
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
<span class="summary_desc"><div class='inline'>
|
376
|
+
<p>Get options.</p>
|
377
|
+
</div></span>
|
378
|
+
|
379
|
+
</li>
|
380
|
+
|
381
|
+
|
382
|
+
<li class="public ">
|
383
|
+
<span class="summary_signature">
|
384
|
+
|
385
|
+
<a href="#%5B%5D%3D-instance_method" title="#[]= (instance method)">- (Object) <strong>[]=</strong>(key, val) </a>
|
386
|
+
|
387
|
+
|
388
|
+
|
389
|
+
</span>
|
390
|
+
|
391
|
+
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
<span class="summary_desc"><div class='inline'>
|
400
|
+
<p>Set options.</p>
|
401
|
+
</div></span>
|
402
|
+
|
403
|
+
</li>
|
404
|
+
|
405
|
+
|
406
|
+
<li class="public ">
|
407
|
+
<span class="summary_signature">
|
408
|
+
|
409
|
+
<a href="#exist%3F-instance_method" title="#exist? (instance method)">- (Boolean) <strong>exist?</strong> </a>
|
410
|
+
|
411
|
+
|
412
|
+
|
413
|
+
</span>
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
|
422
|
+
|
423
|
+
<span class="summary_desc"><div class='inline'>
|
424
|
+
<p>Does Mark exist?.</p>
|
425
|
+
</div></span>
|
426
|
+
|
427
|
+
</li>
|
428
|
+
|
429
|
+
|
430
|
+
<li class="public ">
|
431
|
+
<span class="summary_signature">
|
432
|
+
|
433
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Mark) <strong>initialize</strong>(rdir, base, ext) </a>
|
434
|
+
|
435
|
+
|
436
|
+
|
437
|
+
</span>
|
438
|
+
|
439
|
+
|
440
|
+
<span class="note title constructor">constructor</span>
|
441
|
+
|
442
|
+
|
443
|
+
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
<span class="summary_desc"><div class='inline'>
|
450
|
+
<p>A new instance of Mark.</p>
|
451
|
+
</div></span>
|
452
|
+
|
453
|
+
</li>
|
454
|
+
|
455
|
+
|
456
|
+
<li class="public ">
|
457
|
+
<span class="summary_signature">
|
458
|
+
|
459
|
+
<a href="#path-instance_method" title="#path (instance method)">- (Object) <strong>path</strong>(ext = nil) </a>
|
460
|
+
|
461
|
+
|
462
|
+
|
463
|
+
</span>
|
464
|
+
|
465
|
+
|
466
|
+
|
467
|
+
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
|
472
|
+
|
473
|
+
<span class="summary_desc"><div class='inline'>
|
474
|
+
<p>Return absolute path.</p>
|
475
|
+
</div></span>
|
476
|
+
|
477
|
+
</li>
|
478
|
+
|
479
|
+
|
480
|
+
<li class="public ">
|
481
|
+
<span class="summary_signature">
|
482
|
+
|
483
|
+
<a href="#peer-instance_method" title="#peer (instance method)">- (Object) <strong>peer</strong>(rdir, ext, base = nil) </a>
|
484
|
+
|
485
|
+
|
486
|
+
|
487
|
+
</span>
|
488
|
+
|
489
|
+
|
490
|
+
|
491
|
+
|
492
|
+
|
493
|
+
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
<span class="summary_desc"><div class='inline'>
|
498
|
+
<p>Return peer of Mark.</p>
|
499
|
+
</div></span>
|
500
|
+
|
501
|
+
</li>
|
502
|
+
|
503
|
+
|
504
|
+
<li class="public ">
|
505
|
+
<span class="summary_signature">
|
506
|
+
|
507
|
+
<a href="#rpath-instance_method" title="#rpath (instance method)">- (Object) <strong>rpath</strong>(ext = nil) </a>
|
508
|
+
|
509
|
+
|
510
|
+
|
511
|
+
</span>
|
512
|
+
|
513
|
+
|
514
|
+
|
515
|
+
|
516
|
+
|
517
|
+
|
518
|
+
|
519
|
+
|
520
|
+
|
521
|
+
<span class="summary_desc"><div class='inline'>
|
522
|
+
<p>Return relative path.</p>
|
523
|
+
</div></span>
|
524
|
+
|
525
|
+
</li>
|
526
|
+
|
527
|
+
|
528
|
+
<li class="public ">
|
529
|
+
<span class="summary_signature">
|
530
|
+
|
531
|
+
<a href="#set_opt-instance_method" title="#set_opt (instance method)">- (Object) <strong>set_opt</strong>(key, val) </a>
|
532
|
+
|
533
|
+
|
534
|
+
|
535
|
+
</span>
|
536
|
+
|
537
|
+
|
538
|
+
|
539
|
+
|
540
|
+
|
541
|
+
|
542
|
+
|
543
|
+
|
544
|
+
|
545
|
+
<span class="summary_desc"><div class='inline'>
|
546
|
+
<p>Set options.</p>
|
547
|
+
</div></span>
|
548
|
+
|
549
|
+
</li>
|
550
|
+
|
551
|
+
|
552
|
+
<li class="public ">
|
553
|
+
<span class="summary_signature">
|
554
|
+
|
555
|
+
<a href="#time-instance_method" title="#time (instance method)">- (Object) <strong>time</strong> </a>
|
556
|
+
|
557
|
+
|
558
|
+
|
559
|
+
</span>
|
560
|
+
|
561
|
+
|
562
|
+
|
563
|
+
|
564
|
+
|
565
|
+
|
566
|
+
|
567
|
+
|
568
|
+
|
569
|
+
<span class="summary_desc"><div class='inline'>
|
570
|
+
<p>Mark creation time.</p>
|
571
|
+
</div></span>
|
572
|
+
|
573
|
+
</li>
|
574
|
+
|
575
|
+
|
576
|
+
</ul>
|
577
|
+
|
578
|
+
|
579
|
+
<div id="constructor_details" class="method_details_list">
|
580
|
+
<h2>Constructor Details</h2>
|
581
|
+
|
582
|
+
<div class="method_details first">
|
583
|
+
<h3 class="signature first" id="initialize-instance_method">
|
584
|
+
|
585
|
+
- (<tt><span class='object_link'><a href="" title="Rubu::Mark (class)">Mark</a></span></tt>) <strong>initialize</strong>(rdir, base, ext)
|
586
|
+
|
587
|
+
|
588
|
+
|
589
|
+
|
590
|
+
|
591
|
+
</h3><div class="docstring">
|
592
|
+
<div class="discussion">
|
593
|
+
|
594
|
+
<p>Returns a new instance of Mark</p>
|
595
|
+
|
596
|
+
|
597
|
+
</div>
|
598
|
+
</div>
|
599
|
+
<div class="tags">
|
600
|
+
|
601
|
+
|
602
|
+
</div><table class="source_code">
|
603
|
+
<tr>
|
604
|
+
<td>
|
605
|
+
<pre class="lines">
|
606
|
+
|
607
|
+
|
608
|
+
299
|
609
|
+
300
|
610
|
+
301
|
611
|
+
302
|
612
|
+
303
|
613
|
+
304
|
614
|
+
305
|
615
|
+
306
|
616
|
+
307
|
617
|
+
308
|
618
|
+
309
|
619
|
+
310
|
620
|
+
311</pre>
|
621
|
+
</td>
|
622
|
+
<td>
|
623
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 299</span>
|
624
|
+
|
625
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span> <span class='id identifier rubyid_rdir'>rdir</span><span class='comma'>,</span> <span class='id identifier rubyid_base'>base</span><span class='comma'>,</span> <span class='id identifier rubyid_ext'>ext</span> <span class='rparen'>)</span>
|
626
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_rdir'>rdir</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span> <span class='const'>Array</span>
|
627
|
+
<span class='ivar'>@dir</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_absolute_path'>absolute_path</span><span class='lparen'>(</span> <span class='id identifier rubyid_rdir'>rdir</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='rparen'>)</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>
|
628
|
+
<span class='ivar'>@rdir</span> <span class='op'>=</span> <span class='id identifier rubyid_rdir'>rdir</span>
|
629
|
+
<span class='kw'>else</span>
|
630
|
+
<span class='ivar'>@dir</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_absolute_path'>absolute_path</span><span class='lparen'>(</span> <span class='id identifier rubyid_rdir'>rdir</span> <span class='rparen'>)</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>
|
631
|
+
<span class='ivar'>@rdir</span> <span class='op'>=</span> <span class='id identifier rubyid_rdir'>rdir</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>
|
632
|
+
<span class='kw'>end</span>
|
633
|
+
<span class='ivar'>@ext</span> <span class='op'>=</span> <span class='id identifier rubyid_ext'>ext</span>
|
634
|
+
<span class='ivar'>@base</span> <span class='op'>=</span> <span class='id identifier rubyid_base'>base</span>
|
635
|
+
<span class='ivar'>@opt</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
636
|
+
<span class='ivar'>@skip</span> <span class='op'>=</span> <span class='kw'>false</span>
|
637
|
+
<span class='kw'>end</span></pre>
|
638
|
+
</td>
|
639
|
+
</tr>
|
640
|
+
</table>
|
641
|
+
</div>
|
642
|
+
|
643
|
+
</div>
|
644
|
+
|
645
|
+
<div id="instance_attr_details" class="attr_details">
|
646
|
+
<h2>Instance Attribute Details</h2>
|
647
|
+
|
648
|
+
|
649
|
+
<span id=""></span>
|
650
|
+
<div class="method_details first">
|
651
|
+
<h3 class="signature first" id="base-instance_method">
|
652
|
+
|
653
|
+
- (<tt>Object</tt>) <strong>base</strong> <span class="extras">(readonly)</span>
|
654
|
+
|
655
|
+
|
656
|
+
|
657
|
+
|
658
|
+
|
659
|
+
</h3><div class="docstring">
|
660
|
+
<div class="discussion">
|
661
|
+
|
662
|
+
<p>Base name.</p>
|
663
|
+
|
664
|
+
|
665
|
+
</div>
|
666
|
+
</div>
|
667
|
+
<div class="tags">
|
668
|
+
|
669
|
+
|
670
|
+
</div><table class="source_code">
|
671
|
+
<tr>
|
672
|
+
<td>
|
673
|
+
<pre class="lines">
|
674
|
+
|
675
|
+
|
676
|
+
290
|
677
|
+
291
|
678
|
+
292</pre>
|
679
|
+
</td>
|
680
|
+
<td>
|
681
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 290</span>
|
682
|
+
|
683
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_base'>base</span>
|
684
|
+
<span class='ivar'>@base</span>
|
685
|
+
<span class='kw'>end</span></pre>
|
686
|
+
</td>
|
687
|
+
</tr>
|
688
|
+
</table>
|
689
|
+
</div>
|
690
|
+
|
691
|
+
|
692
|
+
<span id=""></span>
|
693
|
+
<div class="method_details ">
|
694
|
+
<h3 class="signature " id="dir-instance_method">
|
695
|
+
|
696
|
+
- (<tt>Object</tt>) <strong>dir</strong> <span class="extras">(readonly)</span>
|
697
|
+
|
698
|
+
|
699
|
+
|
700
|
+
|
701
|
+
|
702
|
+
</h3><div class="docstring">
|
703
|
+
<div class="discussion">
|
704
|
+
|
705
|
+
<p>Absolute directory.</p>
|
706
|
+
|
707
|
+
|
708
|
+
</div>
|
709
|
+
</div>
|
710
|
+
<div class="tags">
|
711
|
+
|
712
|
+
|
713
|
+
</div><table class="source_code">
|
714
|
+
<tr>
|
715
|
+
<td>
|
716
|
+
<pre class="lines">
|
717
|
+
|
718
|
+
|
719
|
+
284
|
720
|
+
285
|
721
|
+
286</pre>
|
722
|
+
</td>
|
723
|
+
<td>
|
724
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 284</span>
|
725
|
+
|
726
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_dir'>dir</span>
|
727
|
+
<span class='ivar'>@dir</span>
|
728
|
+
<span class='kw'>end</span></pre>
|
729
|
+
</td>
|
730
|
+
</tr>
|
731
|
+
</table>
|
732
|
+
</div>
|
733
|
+
|
734
|
+
|
735
|
+
<span id=""></span>
|
736
|
+
<div class="method_details ">
|
737
|
+
<h3 class="signature " id="ext-instance_method">
|
738
|
+
|
739
|
+
- (<tt>Object</tt>) <strong>ext</strong> <span class="extras">(readonly)</span>
|
740
|
+
|
741
|
+
|
742
|
+
|
743
|
+
|
744
|
+
|
745
|
+
</h3><div class="docstring">
|
746
|
+
<div class="discussion">
|
747
|
+
|
748
|
+
<p>File extension.</p>
|
749
|
+
|
750
|
+
|
751
|
+
</div>
|
752
|
+
</div>
|
753
|
+
<div class="tags">
|
754
|
+
|
755
|
+
|
756
|
+
</div><table class="source_code">
|
757
|
+
<tr>
|
758
|
+
<td>
|
759
|
+
<pre class="lines">
|
760
|
+
|
761
|
+
|
762
|
+
293
|
763
|
+
294
|
764
|
+
295</pre>
|
765
|
+
</td>
|
766
|
+
<td>
|
767
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 293</span>
|
768
|
+
|
769
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_ext'>ext</span>
|
770
|
+
<span class='ivar'>@ext</span>
|
771
|
+
<span class='kw'>end</span></pre>
|
772
|
+
</td>
|
773
|
+
</tr>
|
774
|
+
</table>
|
775
|
+
</div>
|
776
|
+
|
777
|
+
|
778
|
+
<span id=""></span>
|
779
|
+
<div class="method_details ">
|
780
|
+
<h3 class="signature " id="rdir-instance_method">
|
781
|
+
|
782
|
+
- (<tt>Object</tt>) <strong>rdir</strong> <span class="extras">(readonly)</span>
|
783
|
+
|
784
|
+
|
785
|
+
|
786
|
+
|
787
|
+
|
788
|
+
</h3><div class="docstring">
|
789
|
+
<div class="discussion">
|
790
|
+
|
791
|
+
<p>Relative directory.</p>
|
792
|
+
|
793
|
+
|
794
|
+
</div>
|
795
|
+
</div>
|
796
|
+
<div class="tags">
|
797
|
+
|
798
|
+
|
799
|
+
</div><table class="source_code">
|
800
|
+
<tr>
|
801
|
+
<td>
|
802
|
+
<pre class="lines">
|
803
|
+
|
804
|
+
|
805
|
+
287
|
806
|
+
288
|
807
|
+
289</pre>
|
808
|
+
</td>
|
809
|
+
<td>
|
810
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 287</span>
|
811
|
+
|
812
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_rdir'>rdir</span>
|
813
|
+
<span class='ivar'>@rdir</span>
|
814
|
+
<span class='kw'>end</span></pre>
|
815
|
+
</td>
|
816
|
+
</tr>
|
817
|
+
</table>
|
818
|
+
</div>
|
819
|
+
|
820
|
+
|
821
|
+
<span id="skip=-instance_method"></span>
|
822
|
+
<div class="method_details ">
|
823
|
+
<h3 class="signature " id="skip-instance_method">
|
824
|
+
|
825
|
+
- (<tt>Object</tt>) <strong>skip</strong>
|
826
|
+
|
827
|
+
|
828
|
+
|
829
|
+
|
830
|
+
|
831
|
+
</h3><div class="docstring">
|
832
|
+
<div class="discussion">
|
833
|
+
|
834
|
+
<p>Skip file.</p>
|
835
|
+
|
836
|
+
|
837
|
+
</div>
|
838
|
+
</div>
|
839
|
+
<div class="tags">
|
840
|
+
|
841
|
+
|
842
|
+
</div><table class="source_code">
|
843
|
+
<tr>
|
844
|
+
<td>
|
845
|
+
<pre class="lines">
|
846
|
+
|
847
|
+
|
848
|
+
296
|
849
|
+
297
|
850
|
+
298</pre>
|
851
|
+
</td>
|
852
|
+
<td>
|
853
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 296</span>
|
854
|
+
|
855
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_skip'>skip</span>
|
856
|
+
<span class='ivar'>@skip</span>
|
857
|
+
<span class='kw'>end</span></pre>
|
858
|
+
</td>
|
859
|
+
</tr>
|
860
|
+
</table>
|
861
|
+
</div>
|
862
|
+
|
863
|
+
</div>
|
864
|
+
|
865
|
+
|
866
|
+
<div id="class_method_details" class="method_details_list">
|
867
|
+
<h2>Class Method Details</h2>
|
868
|
+
|
869
|
+
|
870
|
+
<div class="method_details first">
|
871
|
+
<h3 class="signature first" id="glob-class_method">
|
872
|
+
|
873
|
+
+ (<tt>Object</tt>) <strong>glob</strong>(pattern)
|
874
|
+
|
875
|
+
|
876
|
+
|
877
|
+
|
878
|
+
|
879
|
+
</h3><div class="docstring">
|
880
|
+
<div class="discussion">
|
881
|
+
|
882
|
+
<p>Convert a list of file names matched with pattern to Marks.</p>
|
883
|
+
|
884
|
+
|
885
|
+
</div>
|
886
|
+
</div>
|
887
|
+
<div class="tags">
|
888
|
+
|
889
|
+
|
890
|
+
</div><table class="source_code">
|
891
|
+
<tr>
|
892
|
+
<td>
|
893
|
+
<pre class="lines">
|
894
|
+
|
895
|
+
|
896
|
+
268
|
897
|
+
269
|
898
|
+
270</pre>
|
899
|
+
</td>
|
900
|
+
<td>
|
901
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 268</span>
|
902
|
+
|
903
|
+
<span class='kw'>def</span> <span class='const'>Mark</span><span class='period'>.</span><span class='id identifier rubyid_glob'>glob</span><span class='lparen'>(</span> <span class='id identifier rubyid_pattern'>pattern</span> <span class='rparen'>)</span>
|
904
|
+
<span class='const'>Mark</span><span class='period'>.</span><span class='id identifier rubyid_list'>list</span><span class='lparen'>(</span> <span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_glob'>glob</span><span class='lparen'>(</span> <span class='id identifier rubyid_pattern'>pattern</span> <span class='rparen'>)</span> <span class='rparen'>)</span>
|
905
|
+
<span class='kw'>end</span></pre>
|
906
|
+
</td>
|
907
|
+
</tr>
|
908
|
+
</table>
|
909
|
+
</div>
|
910
|
+
|
911
|
+
<div class="method_details ">
|
912
|
+
<h3 class="signature " id="list-class_method">
|
913
|
+
|
914
|
+
+ (<tt>Object</tt>) <strong>list</strong>(files)
|
915
|
+
|
916
|
+
|
917
|
+
|
918
|
+
|
919
|
+
|
920
|
+
</h3><div class="docstring">
|
921
|
+
<div class="discussion">
|
922
|
+
|
923
|
+
<p>Convert a list of file names to Marks.</p>
|
924
|
+
|
925
|
+
|
926
|
+
</div>
|
927
|
+
</div>
|
928
|
+
<div class="tags">
|
929
|
+
|
930
|
+
|
931
|
+
</div><table class="source_code">
|
932
|
+
<tr>
|
933
|
+
<td>
|
934
|
+
<pre class="lines">
|
935
|
+
|
936
|
+
|
937
|
+
260
|
938
|
+
261
|
939
|
+
262
|
940
|
+
263
|
941
|
+
264
|
942
|
+
265</pre>
|
943
|
+
</td>
|
944
|
+
<td>
|
945
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 260</span>
|
946
|
+
|
947
|
+
<span class='kw'>def</span> <span class='const'>Mark</span><span class='period'>.</span><span class='id identifier rubyid_list'>list</span><span class='lparen'>(</span> <span class='id identifier rubyid_files'>files</span> <span class='rparen'>)</span>
|
948
|
+
<span class='kw'>unless</span> <span class='id identifier rubyid_files'>files</span><span class='period'>.</span><span class='id identifier rubyid_kind_of?'>kind_of?</span> <span class='const'>Array</span>
|
949
|
+
<span class='id identifier rubyid_files'>files</span> <span class='op'>=</span> <span class='lbracket'>[</span> <span class='id identifier rubyid_files'>files</span> <span class='rbracket'>]</span>
|
950
|
+
<span class='kw'>end</span>
|
951
|
+
<span class='id identifier rubyid_files'>files</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_file'>file</span><span class='op'>|</span> <span class='const'>Mark</span><span class='period'>.</span><span class='id identifier rubyid_path'>path</span><span class='lparen'>(</span> <span class='id identifier rubyid_file'>file</span> <span class='rparen'>)</span> <span class='rbrace'>}</span>
|
952
|
+
<span class='kw'>end</span></pre>
|
953
|
+
</td>
|
954
|
+
</tr>
|
955
|
+
</table>
|
956
|
+
</div>
|
957
|
+
|
958
|
+
<div class="method_details ">
|
959
|
+
<h3 class="signature " id="path-class_method">
|
960
|
+
|
961
|
+
+ (<tt>Object</tt>) <strong>path</strong>(file_path)
|
962
|
+
|
963
|
+
|
964
|
+
|
965
|
+
|
966
|
+
|
967
|
+
</h3><div class="docstring">
|
968
|
+
<div class="discussion">
|
969
|
+
|
970
|
+
<p>Convert file path to Mark.</p>
|
971
|
+
|
972
|
+
|
973
|
+
</div>
|
974
|
+
</div>
|
975
|
+
<div class="tags">
|
976
|
+
|
977
|
+
|
978
|
+
</div><table class="source_code">
|
979
|
+
<tr>
|
980
|
+
<td>
|
981
|
+
<pre class="lines">
|
982
|
+
|
983
|
+
|
984
|
+
273
|
985
|
+
274
|
986
|
+
275
|
987
|
+
276
|
988
|
+
277
|
989
|
+
278
|
990
|
+
279
|
991
|
+
280</pre>
|
992
|
+
</td>
|
993
|
+
<td>
|
994
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 273</span>
|
995
|
+
|
996
|
+
<span class='kw'>def</span> <span class='const'>Mark</span><span class='period'>.</span><span class='id identifier rubyid_path'>path</span><span class='lparen'>(</span> <span class='id identifier rubyid_file_path'>file_path</span> <span class='rparen'>)</span>
|
997
|
+
<span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_absolute_path'>absolute_path</span><span class='lparen'>(</span> <span class='id identifier rubyid_file_path'>file_path</span> <span class='rparen'>)</span>
|
998
|
+
<span class='id identifier rubyid_dir'>dir</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span> <span class='id identifier rubyid_path'>path</span> <span class='rparen'>)</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>
|
999
|
+
<span class='id identifier rubyid_rdir'>rdir</span> <span class='op'>=</span> <span class='id identifier rubyid_dir'>dir</span> <span class='op'>-</span> <span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_pwd'>pwd</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>
|
1000
|
+
<span class='id identifier rubyid_ext'>ext</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_extname'>extname</span><span class='lparen'>(</span> <span class='id identifier rubyid_path'>path</span> <span class='rparen'>)</span>
|
1001
|
+
<span class='id identifier rubyid_base'>base</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_basename'>basename</span><span class='lparen'>(</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_ext'>ext</span> <span class='rparen'>)</span>
|
1002
|
+
<span class='const'>Mark</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='id identifier rubyid_rdir'>rdir</span><span class='comma'>,</span> <span class='id identifier rubyid_base'>base</span><span class='comma'>,</span> <span class='id identifier rubyid_ext'>ext</span> <span class='rparen'>)</span>
|
1003
|
+
<span class='kw'>end</span></pre>
|
1004
|
+
</td>
|
1005
|
+
</tr>
|
1006
|
+
</table>
|
1007
|
+
</div>
|
1008
|
+
|
1009
|
+
</div>
|
1010
|
+
|
1011
|
+
<div id="instance_method_details" class="method_details_list">
|
1012
|
+
<h2>Instance Method Details</h2>
|
1013
|
+
|
1014
|
+
|
1015
|
+
<div class="method_details first">
|
1016
|
+
<h3 class="signature first" id="[]-instance_method">
|
1017
|
+
|
1018
|
+
- (<tt>Object</tt>) <strong>[]</strong>(key)
|
1019
|
+
|
1020
|
+
|
1021
|
+
|
1022
|
+
|
1023
|
+
|
1024
|
+
</h3><div class="docstring">
|
1025
|
+
<div class="discussion">
|
1026
|
+
|
1027
|
+
<p>Get options.</p>
|
1028
|
+
|
1029
|
+
|
1030
|
+
</div>
|
1031
|
+
</div>
|
1032
|
+
<div class="tags">
|
1033
|
+
|
1034
|
+
|
1035
|
+
</div><table class="source_code">
|
1036
|
+
<tr>
|
1037
|
+
<td>
|
1038
|
+
<pre class="lines">
|
1039
|
+
|
1040
|
+
|
1041
|
+
314
|
1042
|
+
315
|
1043
|
+
316</pre>
|
1044
|
+
</td>
|
1045
|
+
<td>
|
1046
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 314</span>
|
1047
|
+
|
1048
|
+
<span class='kw'>def</span> <span class='op'>[]</span><span class='lparen'>(</span> <span class='id identifier rubyid_key'>key</span> <span class='rparen'>)</span>
|
1049
|
+
<span class='ivar'>@opt</span><span class='lbracket'>[</span> <span class='id identifier rubyid_key'>key</span> <span class='rbracket'>]</span>
|
1050
|
+
<span class='kw'>end</span></pre>
|
1051
|
+
</td>
|
1052
|
+
</tr>
|
1053
|
+
</table>
|
1054
|
+
</div>
|
1055
|
+
|
1056
|
+
<div class="method_details ">
|
1057
|
+
<h3 class="signature " id="[]=-instance_method">
|
1058
|
+
|
1059
|
+
- (<tt>Object</tt>) <strong>[]=</strong>(key, val)
|
1060
|
+
|
1061
|
+
|
1062
|
+
|
1063
|
+
|
1064
|
+
|
1065
|
+
</h3><div class="docstring">
|
1066
|
+
<div class="discussion">
|
1067
|
+
|
1068
|
+
<p>Set options.</p>
|
1069
|
+
|
1070
|
+
|
1071
|
+
</div>
|
1072
|
+
</div>
|
1073
|
+
<div class="tags">
|
1074
|
+
|
1075
|
+
|
1076
|
+
</div><table class="source_code">
|
1077
|
+
<tr>
|
1078
|
+
<td>
|
1079
|
+
<pre class="lines">
|
1080
|
+
|
1081
|
+
|
1082
|
+
319
|
1083
|
+
320
|
1084
|
+
321</pre>
|
1085
|
+
</td>
|
1086
|
+
<td>
|
1087
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 319</span>
|
1088
|
+
|
1089
|
+
<span class='kw'>def</span> <span class='op'>[]=</span><span class='lparen'>(</span> <span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_val'>val</span> <span class='rparen'>)</span>
|
1090
|
+
<span class='ivar'>@opt</span><span class='lbracket'>[</span> <span class='id identifier rubyid_key'>key</span> <span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_val'>val</span>
|
1091
|
+
<span class='kw'>end</span></pre>
|
1092
|
+
</td>
|
1093
|
+
</tr>
|
1094
|
+
</table>
|
1095
|
+
</div>
|
1096
|
+
|
1097
|
+
<div class="method_details ">
|
1098
|
+
<h3 class="signature " id="exist?-instance_method">
|
1099
|
+
|
1100
|
+
- (<tt>Boolean</tt>) <strong>exist?</strong>
|
1101
|
+
|
1102
|
+
|
1103
|
+
|
1104
|
+
|
1105
|
+
|
1106
|
+
</h3><div class="docstring">
|
1107
|
+
<div class="discussion">
|
1108
|
+
|
1109
|
+
<p>Does Mark exist?</p>
|
1110
|
+
|
1111
|
+
|
1112
|
+
</div>
|
1113
|
+
</div>
|
1114
|
+
<div class="tags">
|
1115
|
+
|
1116
|
+
<p class="tag_title">Returns:</p>
|
1117
|
+
<ul class="return">
|
1118
|
+
|
1119
|
+
<li>
|
1120
|
+
|
1121
|
+
|
1122
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
1123
|
+
|
1124
|
+
|
1125
|
+
|
1126
|
+
</li>
|
1127
|
+
|
1128
|
+
</ul>
|
1129
|
+
|
1130
|
+
</div><table class="source_code">
|
1131
|
+
<tr>
|
1132
|
+
<td>
|
1133
|
+
<pre class="lines">
|
1134
|
+
|
1135
|
+
|
1136
|
+
348
|
1137
|
+
349
|
1138
|
+
350</pre>
|
1139
|
+
</td>
|
1140
|
+
<td>
|
1141
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 348</span>
|
1142
|
+
|
1143
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_exist?'>exist?</span>
|
1144
|
+
<span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exist?'>exist?</span><span class='lparen'>(</span> <span class='id identifier rubyid_path'>path</span> <span class='rparen'>)</span>
|
1145
|
+
<span class='kw'>end</span></pre>
|
1146
|
+
</td>
|
1147
|
+
</tr>
|
1148
|
+
</table>
|
1149
|
+
</div>
|
1150
|
+
|
1151
|
+
<div class="method_details ">
|
1152
|
+
<h3 class="signature " id="path-instance_method">
|
1153
|
+
|
1154
|
+
- (<tt>Object</tt>) <strong>path</strong>(ext = nil)
|
1155
|
+
|
1156
|
+
|
1157
|
+
|
1158
|
+
|
1159
|
+
|
1160
|
+
</h3><div class="docstring">
|
1161
|
+
<div class="discussion">
|
1162
|
+
|
1163
|
+
<p>Return absolute path.</p>
|
1164
|
+
|
1165
|
+
|
1166
|
+
</div>
|
1167
|
+
</div>
|
1168
|
+
<div class="tags">
|
1169
|
+
|
1170
|
+
|
1171
|
+
</div><table class="source_code">
|
1172
|
+
<tr>
|
1173
|
+
<td>
|
1174
|
+
<pre class="lines">
|
1175
|
+
|
1176
|
+
|
1177
|
+
330
|
1178
|
+
331
|
1179
|
+
332
|
1180
|
+
333</pre>
|
1181
|
+
</td>
|
1182
|
+
<td>
|
1183
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 330</span>
|
1184
|
+
|
1185
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_path'>path</span><span class='lparen'>(</span> <span class='id identifier rubyid_ext'>ext</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
|
1186
|
+
<span class='id identifier rubyid_ext'>ext</span> <span class='op'>||=</span> <span class='ivar'>@ext</span>
|
1187
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='ivar'>@dir</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_content'>/</span><span class='embexpr_beg'>#{</span><span class='ivar'>@base</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_ext'>ext</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
1188
|
+
<span class='kw'>end</span></pre>
|
1189
|
+
</td>
|
1190
|
+
</tr>
|
1191
|
+
</table>
|
1192
|
+
</div>
|
1193
|
+
|
1194
|
+
<div class="method_details ">
|
1195
|
+
<h3 class="signature " id="peer-instance_method">
|
1196
|
+
|
1197
|
+
- (<tt>Object</tt>) <strong>peer</strong>(rdir, ext, base = nil)
|
1198
|
+
|
1199
|
+
|
1200
|
+
|
1201
|
+
|
1202
|
+
|
1203
|
+
</h3><div class="docstring">
|
1204
|
+
<div class="discussion">
|
1205
|
+
|
1206
|
+
<p>Return peer of Mark.</p>
|
1207
|
+
|
1208
|
+
|
1209
|
+
</div>
|
1210
|
+
</div>
|
1211
|
+
<div class="tags">
|
1212
|
+
|
1213
|
+
|
1214
|
+
</div><table class="source_code">
|
1215
|
+
<tr>
|
1216
|
+
<td>
|
1217
|
+
<pre class="lines">
|
1218
|
+
|
1219
|
+
|
1220
|
+
342
|
1221
|
+
343
|
1222
|
+
344
|
1223
|
+
345</pre>
|
1224
|
+
</td>
|
1225
|
+
<td>
|
1226
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 342</span>
|
1227
|
+
|
1228
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_peer'>peer</span><span class='lparen'>(</span> <span class='id identifier rubyid_rdir'>rdir</span><span class='comma'>,</span> <span class='id identifier rubyid_ext'>ext</span><span class='comma'>,</span> <span class='id identifier rubyid_base'>base</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
|
1229
|
+
<span class='id identifier rubyid_base'>base</span> <span class='op'>||=</span> <span class='ivar'>@base</span>
|
1230
|
+
<span class='const'>Mark</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='id identifier rubyid_rdir'>rdir</span><span class='comma'>,</span> <span class='id identifier rubyid_base'>base</span><span class='comma'>,</span> <span class='id identifier rubyid_ext'>ext</span> <span class='rparen'>)</span>
|
1231
|
+
<span class='kw'>end</span></pre>
|
1232
|
+
</td>
|
1233
|
+
</tr>
|
1234
|
+
</table>
|
1235
|
+
</div>
|
1236
|
+
|
1237
|
+
<div class="method_details ">
|
1238
|
+
<h3 class="signature " id="rpath-instance_method">
|
1239
|
+
|
1240
|
+
- (<tt>Object</tt>) <strong>rpath</strong>(ext = nil)
|
1241
|
+
|
1242
|
+
|
1243
|
+
|
1244
|
+
|
1245
|
+
|
1246
|
+
</h3><div class="docstring">
|
1247
|
+
<div class="discussion">
|
1248
|
+
|
1249
|
+
<p>Return relative path.</p>
|
1250
|
+
|
1251
|
+
|
1252
|
+
</div>
|
1253
|
+
</div>
|
1254
|
+
<div class="tags">
|
1255
|
+
|
1256
|
+
|
1257
|
+
</div><table class="source_code">
|
1258
|
+
<tr>
|
1259
|
+
<td>
|
1260
|
+
<pre class="lines">
|
1261
|
+
|
1262
|
+
|
1263
|
+
336
|
1264
|
+
337
|
1265
|
+
338
|
1266
|
+
339</pre>
|
1267
|
+
</td>
|
1268
|
+
<td>
|
1269
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 336</span>
|
1270
|
+
|
1271
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_rpath'>rpath</span><span class='lparen'>(</span> <span class='id identifier rubyid_ext'>ext</span> <span class='op'>=</span> <span class='kw'>nil</span> <span class='rparen'>)</span>
|
1272
|
+
<span class='id identifier rubyid_ext'>ext</span> <span class='op'>||=</span> <span class='ivar'>@ext</span>
|
1273
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='ivar'>@rdir</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_content'>/</span><span class='embexpr_beg'>#{</span><span class='ivar'>@base</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_ext'>ext</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
1274
|
+
<span class='kw'>end</span></pre>
|
1275
|
+
</td>
|
1276
|
+
</tr>
|
1277
|
+
</table>
|
1278
|
+
</div>
|
1279
|
+
|
1280
|
+
<div class="method_details ">
|
1281
|
+
<h3 class="signature " id="set_opt-instance_method">
|
1282
|
+
|
1283
|
+
- (<tt>Object</tt>) <strong>set_opt</strong>(key, val)
|
1284
|
+
|
1285
|
+
|
1286
|
+
|
1287
|
+
|
1288
|
+
|
1289
|
+
</h3><div class="docstring">
|
1290
|
+
<div class="discussion">
|
1291
|
+
|
1292
|
+
<p>Set options.</p>
|
1293
|
+
|
1294
|
+
|
1295
|
+
</div>
|
1296
|
+
</div>
|
1297
|
+
<div class="tags">
|
1298
|
+
|
1299
|
+
|
1300
|
+
</div><table class="source_code">
|
1301
|
+
<tr>
|
1302
|
+
<td>
|
1303
|
+
<pre class="lines">
|
1304
|
+
|
1305
|
+
|
1306
|
+
324
|
1307
|
+
325
|
1308
|
+
326
|
1309
|
+
327</pre>
|
1310
|
+
</td>
|
1311
|
+
<td>
|
1312
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 324</span>
|
1313
|
+
|
1314
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_set_opt'>set_opt</span><span class='lparen'>(</span> <span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_val'>val</span> <span class='rparen'>)</span>
|
1315
|
+
<span class='ivar'>@opt</span><span class='lbracket'>[</span> <span class='id identifier rubyid_key'>key</span> <span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_val'>val</span>
|
1316
|
+
<span class='kw'>self</span>
|
1317
|
+
<span class='kw'>end</span></pre>
|
1318
|
+
</td>
|
1319
|
+
</tr>
|
1320
|
+
</table>
|
1321
|
+
</div>
|
1322
|
+
|
1323
|
+
<div class="method_details ">
|
1324
|
+
<h3 class="signature " id="time-instance_method">
|
1325
|
+
|
1326
|
+
- (<tt>Object</tt>) <strong>time</strong>
|
1327
|
+
|
1328
|
+
|
1329
|
+
|
1330
|
+
|
1331
|
+
|
1332
|
+
</h3><div class="docstring">
|
1333
|
+
<div class="discussion">
|
1334
|
+
|
1335
|
+
<p>Mark creation time.</p>
|
1336
|
+
|
1337
|
+
|
1338
|
+
</div>
|
1339
|
+
</div>
|
1340
|
+
<div class="tags">
|
1341
|
+
|
1342
|
+
|
1343
|
+
</div><table class="source_code">
|
1344
|
+
<tr>
|
1345
|
+
<td>
|
1346
|
+
<pre class="lines">
|
1347
|
+
|
1348
|
+
|
1349
|
+
353
|
1350
|
+
354
|
1351
|
+
355</pre>
|
1352
|
+
</td>
|
1353
|
+
<td>
|
1354
|
+
<pre class="code"><span class="info file"># File 'lib/rubu.rb', line 353</span>
|
1355
|
+
|
1356
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_time'>time</span>
|
1357
|
+
<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><span class='period'>.</span><span class='id identifier rubyid_mtime'>mtime</span>
|
1358
|
+
<span class='kw'>end</span></pre>
|
1359
|
+
</td>
|
1360
|
+
</tr>
|
1361
|
+
</table>
|
1362
|
+
</div>
|
1363
|
+
|
1364
|
+
</div>
|
1365
|
+
|
1366
|
+
</div>
|
1367
|
+
|
1368
|
+
<div id="footer">
|
1369
|
+
Generated on Fri Jun 29 10:04:07 2018 by
|
1370
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1371
|
+
0.8.7.6 (ruby-2.3.3).
|
1372
|
+
</div>
|
1373
|
+
|
1374
|
+
</body>
|
1375
|
+
</html>
|