rumai 3.1.0 → 3.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.
- data/bin/rumai +1 -1
- data/doc/api/classes/Integer.html +7 -7
- data/doc/api/classes/Rumai.html +148 -141
- data/doc/api/classes/Rumai/Area.html +135 -130
- data/doc/api/classes/Rumai/Chain.html +21 -21
- data/doc/api/classes/Rumai/Client.html +188 -189
- data/doc/api/classes/Rumai/ClientContainer.html +22 -22
- data/doc/api/classes/Rumai/IXP/Agent.html +248 -143
- data/doc/api/classes/Rumai/IXP/Agent/FidStream.html +50 -50
- data/doc/api/classes/Rumai/IXP/Agent/MODES.html +7 -7
- data/doc/api/classes/Rumai/IXP/Agent/RangedPool.html +21 -21
- data/doc/api/classes/Rumai/IXP/Fcall.html +33 -33
- data/doc/api/classes/Rumai/IXP/Qid.html +1 -1
- data/doc/api/classes/Rumai/IXP/Stat.html +8 -8
- data/doc/api/classes/Rumai/IXP/Stream.html +6 -6
- data/doc/api/classes/Rumai/IXP/Struct.html +34 -38
- data/doc/api/classes/Rumai/IXP/Struct/Field.html +42 -42
- data/doc/api/classes/Rumai/IXP/Struct/Field/CounteeField.html +14 -14
- data/doc/api/classes/Rumai/IXP/Struct/Field/CounterField.html +7 -7
- data/doc/api/classes/Rumai/IXP/Terror.html +7 -7
- data/doc/api/classes/Rumai/IXP/Topen.html +1 -1
- data/doc/api/classes/Rumai/Node.html +114 -110
- data/doc/api/classes/Rumai/View.html +184 -136
- data/doc/api/classes/String.html +15 -15
- data/doc/api/classes/Time.html +14 -14
- data/doc/api/created.rid +1 -1
- data/doc/api/files/lib/rumai/fs_rb.html +1 -1
- data/doc/api/files/lib/rumai/ixp/message_rb.html +1 -1
- data/doc/api/files/lib/rumai/ixp/transport_rb.html +1 -1
- data/doc/api/files/lib/rumai/wm_rb.html +1 -1
- data/doc/api/files/lib/rumai_rb.html +1 -1
- data/doc/api/panel/search_index.js +1 -1
- data/doc/history.erb +41 -0
- data/doc/index.html +1315 -669
- data/doc/setup.erb +82 -45
- data/doc/usage.erb +96 -132
- data/lib/rumai.rb +2 -2
- data/lib/rumai/fs.rb +11 -6
- data/lib/rumai/ixp/message.rb +31 -17
- data/lib/rumai/ixp/transport.rb +82 -36
- data/lib/rumai/wm.rb +87 -25
- metadata +5 -5
@@ -50,7 +50,7 @@ Methods for a field whose length is counted by another field.
|
|
50
50
|
<dd>
|
51
51
|
<ul>
|
52
52
|
|
53
|
-
<li><a href="#
|
53
|
+
<li><a href="#M000150">load_9p</a></li>
|
54
54
|
|
55
55
|
</ul>
|
56
56
|
</dd>
|
@@ -59,7 +59,7 @@ Methods for a field whose length is counted by another field.
|
|
59
59
|
<dd>
|
60
60
|
<ul>
|
61
61
|
|
62
|
-
<li><a href="#
|
62
|
+
<li><a href="#M000149">to_9p</a></li>
|
63
63
|
|
64
64
|
</ul>
|
65
65
|
</dd>
|
@@ -81,9 +81,9 @@ Methods for a field whose length is counted by another field.
|
|
81
81
|
<div class="sectiontitle">Instance Public methods</div>
|
82
82
|
|
83
83
|
<div class="method">
|
84
|
-
<div class="title" id="
|
84
|
+
<div class="title" id="M000150">
|
85
85
|
|
86
|
-
<a name="
|
86
|
+
<a name="M000150"></a><b>load_9p</b>(stream, field_values)
|
87
87
|
|
88
88
|
</div>
|
89
89
|
|
@@ -92,13 +92,13 @@ Methods for a field whose length is counted by another field.
|
|
92
92
|
|
93
93
|
<div class="sourcecode">
|
94
94
|
<p class="source-link">
|
95
|
-
Source: <a href="javascript:toggleSource('
|
95
|
+
Source: <a href="javascript:toggleSource('M000150_source')" id="l_M000150_source">show</a>
|
96
96
|
|
97
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
97
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/ixp/message.rb#L263" target="_blank" class="github_url">on GitHub</a>
|
98
98
|
|
99
99
|
</p>
|
100
|
-
<div id="
|
101
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line
|
100
|
+
<div id="M000150_source" class="dyn-source">
|
101
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 263</span>
|
102
102
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load_9p</span> <span class="ruby-identifier">stream</span>, <span class="ruby-identifier">field_values</span>
|
103
103
|
<span class="ruby-identifier">count</span> = <span class="ruby-identifier">field_values</span>[<span class="ruby-ivar">@counter</span>.<span class="ruby-identifier">name</span>].<span class="ruby-identifier">to_i</span>
|
104
104
|
|
@@ -115,9 +115,9 @@ Methods for a field whose length is counted by another field.
|
|
115
115
|
</div>
|
116
116
|
|
117
117
|
<div class="method">
|
118
|
-
<div class="title" id="
|
118
|
+
<div class="title" id="M000149">
|
119
119
|
|
120
|
-
<a name="
|
120
|
+
<a name="M000149"></a><b>to_9p</b>(field_values)
|
121
121
|
|
122
122
|
</div>
|
123
123
|
|
@@ -126,13 +126,13 @@ Methods for a field whose length is counted by another field.
|
|
126
126
|
|
127
127
|
<div class="sourcecode">
|
128
128
|
<p class="source-link">
|
129
|
-
Source: <a href="javascript:toggleSource('
|
129
|
+
Source: <a href="javascript:toggleSource('M000149_source')" id="l_M000149_source">show</a>
|
130
130
|
|
131
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
131
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/ixp/message.rb#L253" target="_blank" class="github_url">on GitHub</a>
|
132
132
|
|
133
133
|
</p>
|
134
|
-
<div id="
|
135
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line
|
134
|
+
<div id="M000149_source" class="dyn-source">
|
135
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 253</span>
|
136
136
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_9p</span> <span class="ruby-identifier">field_values</span>
|
137
137
|
<span class="ruby-identifier">value</span> = <span class="ruby-identifier">field_values</span>[<span class="ruby-ivar">@name</span>]
|
138
138
|
|
@@ -50,7 +50,7 @@ Methods for a field that counts the length of another field.
|
|
50
50
|
<dd>
|
51
51
|
<ul>
|
52
52
|
|
53
|
-
<li><a href="#
|
53
|
+
<li><a href="#M000148">to_9p</a></li>
|
54
54
|
|
55
55
|
</ul>
|
56
56
|
</dd>
|
@@ -72,9 +72,9 @@ Methods for a field that counts the length of another field.
|
|
72
72
|
<div class="sectiontitle">Instance Public methods</div>
|
73
73
|
|
74
74
|
<div class="method">
|
75
|
-
<div class="title" id="
|
75
|
+
<div class="title" id="M000148">
|
76
76
|
|
77
|
-
<a name="
|
77
|
+
<a name="M000148"></a><b>to_9p</b>(field_values)
|
78
78
|
|
79
79
|
</div>
|
80
80
|
|
@@ -83,13 +83,13 @@ Methods for a field that counts the length of another field.
|
|
83
83
|
|
84
84
|
<div class="sourcecode">
|
85
85
|
<p class="source-link">
|
86
|
-
Source: <a href="javascript:toggleSource('
|
86
|
+
Source: <a href="javascript:toggleSource('M000148_source')" id="l_M000148_source">show</a>
|
87
87
|
|
88
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
88
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/ixp/message.rb#L244" target="_blank" class="github_url">on GitHub</a>
|
89
89
|
|
90
90
|
</p>
|
91
|
-
<div id="
|
92
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line
|
91
|
+
<div id="M000148_source" class="dyn-source">
|
92
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 244</span>
|
93
93
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_9p</span> <span class="ruby-identifier">field_values</span>
|
94
94
|
<span class="ruby-identifier">value_to_9p</span> <span class="ruby-identifier">field_values</span>[<span class="ruby-ivar">@countee</span>.<span class="ruby-identifier">name</span>].<span class="ruby-identifier">length</span>
|
95
95
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -56,7 +56,7 @@ illegal
|
|
56
56
|
<dd>
|
57
57
|
<ul>
|
58
58
|
|
59
|
-
<li><a href="#
|
59
|
+
<li><a href="#M000162">to_9p</a></li>
|
60
60
|
|
61
61
|
</ul>
|
62
62
|
</dd>
|
@@ -78,9 +78,9 @@ illegal
|
|
78
78
|
<div class="sectiontitle">Instance Public methods</div>
|
79
79
|
|
80
80
|
<div class="method">
|
81
|
-
<div class="title" id="
|
81
|
+
<div class="title" id="M000162">
|
82
82
|
|
83
|
-
<a name="
|
83
|
+
<a name="M000162"></a><b>to_9p</b>()
|
84
84
|
|
85
85
|
</div>
|
86
86
|
|
@@ -89,13 +89,13 @@ illegal
|
|
89
89
|
|
90
90
|
<div class="sourcecode">
|
91
91
|
<p class="source-link">
|
92
|
-
Source: <a href="javascript:toggleSource('
|
92
|
+
Source: <a href="javascript:toggleSource('M000162_source')" id="l_M000162_source">show</a>
|
93
93
|
|
94
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
94
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/ixp/message.rb#L487" target="_blank" class="github_url">on GitHub</a>
|
95
95
|
|
96
96
|
</p>
|
97
|
-
<div id="
|
98
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line
|
97
|
+
<div id="M000162_source" class="dyn-source">
|
98
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 487</span>
|
99
99
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_9p</span>
|
100
100
|
<span class="ruby-identifier">raise</span> <span class="ruby-constant">Error</span>, <span class="ruby-value str">'the Terror fcall cannot be transmitted'</span>
|
101
101
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -69,7 +69,7 @@ size[4] <a href="Topen.html">Topen</a> tag[2] fid[4] mode[1]
|
|
69
69
|
<tr valign='top'>
|
70
70
|
<td> </td>
|
71
71
|
<td colspan="2" class="attr-desc"><p>
|
72
|
-
from <a
|
72
|
+
The following constant definitions originate from: <a
|
73
73
|
href="http://swtch.com/usr/local/plan9/include/libc.h">swtch.com/usr/local/plan9/include/libc.h</a>
|
74
74
|
</p>
|
75
75
|
</td>
|
@@ -56,7 +56,7 @@ An entry in the <a href="IXP.html">IXP</a> file system.
|
|
56
56
|
<dd>
|
57
57
|
<ul>
|
58
58
|
|
59
|
-
<li><a href="#
|
59
|
+
<li><a href="#M000016">[]</a></li>
|
60
60
|
|
61
61
|
</ul>
|
62
62
|
</dd>
|
@@ -65,11 +65,11 @@ An entry in the <a href="IXP.html">IXP</a> file system.
|
|
65
65
|
<dd>
|
66
66
|
<ul>
|
67
67
|
|
68
|
-
<li><a href="#
|
68
|
+
<li><a href="#M000021">children</a>,</li>
|
69
69
|
|
70
|
-
<li><a href="#
|
70
|
+
<li><a href="#M000023">clear</a>,</li>
|
71
71
|
|
72
|
-
<li><a href="#
|
72
|
+
<li><a href="#M000013">create</a></li>
|
73
73
|
|
74
74
|
</ul>
|
75
75
|
</dd>
|
@@ -78,7 +78,7 @@ An entry in the <a href="IXP.html">IXP</a> file system.
|
|
78
78
|
<dd>
|
79
79
|
<ul>
|
80
80
|
|
81
|
-
<li><a href="#
|
81
|
+
<li><a href="#M000005">directory?</a></li>
|
82
82
|
|
83
83
|
</ul>
|
84
84
|
</dd>
|
@@ -87,13 +87,13 @@ An entry in the <a href="IXP.html">IXP</a> file system.
|
|
87
87
|
<dd>
|
88
88
|
<ul>
|
89
89
|
|
90
|
-
<li><a href="#
|
90
|
+
<li><a href="#M000022">each</a>,</li>
|
91
91
|
|
92
|
-
<li><a href="#
|
92
|
+
<li><a href="#M000011">each_line</a>,</li>
|
93
93
|
|
94
|
-
<li><a href="#
|
94
|
+
<li><a href="#M000006">entries</a>,</li>
|
95
95
|
|
96
|
-
<li><a href="#
|
96
|
+
<li><a href="#M000004">exist?</a></li>
|
97
97
|
|
98
98
|
</ul>
|
99
99
|
</dd>
|
@@ -102,7 +102,7 @@ An entry in the <a href="IXP.html">IXP</a> file system.
|
|
102
102
|
<dd>
|
103
103
|
<ul>
|
104
104
|
|
105
|
-
<li><a href="#
|
105
|
+
<li><a href="#M000024">method_missing</a></li>
|
106
106
|
|
107
107
|
</ul>
|
108
108
|
</dd>
|
@@ -120,7 +120,7 @@ An entry in the <a href="IXP.html">IXP</a> file system.
|
|
120
120
|
<dd>
|
121
121
|
<ul>
|
122
122
|
|
123
|
-
<li><a href="#
|
123
|
+
<li><a href="#M000009">open</a></li>
|
124
124
|
|
125
125
|
</ul>
|
126
126
|
</dd>
|
@@ -129,7 +129,7 @@ An entry in the <a href="IXP.html">IXP</a> file system.
|
|
129
129
|
<dd>
|
130
130
|
<ul>
|
131
131
|
|
132
|
-
<li><a href="#
|
132
|
+
<li><a href="#M000017">parent</a></li>
|
133
133
|
|
134
134
|
</ul>
|
135
135
|
</dd>
|
@@ -138,9 +138,9 @@ An entry in the <a href="IXP.html">IXP</a> file system.
|
|
138
138
|
<dd>
|
139
139
|
<ul>
|
140
140
|
|
141
|
-
<li><a href="#
|
141
|
+
<li><a href="#M000010">read</a>,</li>
|
142
142
|
|
143
|
-
<li><a href="#
|
143
|
+
<li><a href="#M000015">remove</a></li>
|
144
144
|
|
145
145
|
</ul>
|
146
146
|
</dd>
|
@@ -149,7 +149,7 @@ An entry in the <a href="IXP.html">IXP</a> file system.
|
|
149
149
|
<dd>
|
150
150
|
<ul>
|
151
151
|
|
152
|
-
<li><a href="#
|
152
|
+
<li><a href="#M000003">stat</a></li>
|
153
153
|
|
154
154
|
</ul>
|
155
155
|
</dd>
|
@@ -158,7 +158,7 @@ An entry in the <a href="IXP.html">IXP</a> file system.
|
|
158
158
|
<dd>
|
159
159
|
<ul>
|
160
160
|
|
161
|
-
<li><a href="#
|
161
|
+
<li><a href="#M000012">write</a></li>
|
162
162
|
|
163
163
|
</ul>
|
164
164
|
</dd>
|
@@ -218,7 +218,7 @@ An entry in the <a href="IXP.html">IXP</a> file system.
|
|
218
218
|
<p class="source-link">
|
219
219
|
Source: <a href="javascript:toggleSource('M000000_source')" id="l_M000000_source">show</a>
|
220
220
|
|
221
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
221
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/fs.rb#L39" target="_blank" class="github_url">on GitHub</a>
|
222
222
|
|
223
223
|
</p>
|
224
224
|
<div id="M000000_source" class="dyn-source">
|
@@ -234,9 +234,9 @@ An entry in the <a href="IXP.html">IXP</a> file system.
|
|
234
234
|
<div class="sectiontitle">Instance Public methods</div>
|
235
235
|
|
236
236
|
<div class="method">
|
237
|
-
<div class="title" id="
|
237
|
+
<div class="title" id="M000016">
|
238
238
|
|
239
|
-
<a name="
|
239
|
+
<a name="M000016"></a><b>[]</b>(sub_path)
|
240
240
|
|
241
241
|
</div>
|
242
242
|
|
@@ -252,13 +252,13 @@ Returns the given sub-path as a <a href="Node.html">Node</a> object.
|
|
252
252
|
|
253
253
|
<div class="sourcecode">
|
254
254
|
<p class="source-link">
|
255
|
-
Source: <a href="javascript:toggleSource('
|
255
|
+
Source: <a href="javascript:toggleSource('M000016_source')" id="l_M000016_source">show</a>
|
256
256
|
|
257
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
257
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/fs.rb#L136" target="_blank" class="github_url">on GitHub</a>
|
258
258
|
|
259
259
|
</p>
|
260
|
-
<div id="
|
261
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line
|
260
|
+
<div id="M000016_source" class="dyn-source">
|
261
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 136</span>
|
262
262
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span> <span class="ruby-identifier">sub_path</span>
|
263
263
|
<span class="ruby-ivar">@@cache</span>[ <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-ivar">@path</span>, <span class="ruby-identifier">sub_path</span>.<span class="ruby-identifier">to_s</span>) ]
|
264
264
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -268,9 +268,9 @@ Returns the given sub-path as a <a href="Node.html">Node</a> object.
|
|
268
268
|
</div>
|
269
269
|
|
270
270
|
<div class="method">
|
271
|
-
<div class="title" id="
|
271
|
+
<div class="title" id="M000021">
|
272
272
|
|
273
|
-
<a name="
|
273
|
+
<a name="M000021"></a><b>children</b>()
|
274
274
|
|
275
275
|
</div>
|
276
276
|
|
@@ -286,13 +286,13 @@ Returns all child nodes of this node.
|
|
286
286
|
|
287
287
|
<div class="sourcecode">
|
288
288
|
<p class="source-link">
|
289
|
-
Source: <a href="javascript:toggleSource('
|
289
|
+
Source: <a href="javascript:toggleSource('M000021_source')" id="l_M000021_source">show</a>
|
290
290
|
|
291
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
291
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/fs.rb#L150" target="_blank" class="github_url">on GitHub</a>
|
292
292
|
|
293
293
|
</p>
|
294
|
-
<div id="
|
295
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line
|
294
|
+
<div id="M000021_source" class="dyn-source">
|
295
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 150</span>
|
296
296
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">children</span>
|
297
297
|
<span class="ruby-identifier">entries</span>.<span class="ruby-identifier">map!</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">c</span>] }
|
298
298
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -302,9 +302,9 @@ Returns all child nodes of this node.
|
|
302
302
|
</div>
|
303
303
|
|
304
304
|
<div class="method">
|
305
|
-
<div class="title" id="
|
305
|
+
<div class="title" id="M000023">
|
306
306
|
|
307
|
-
<a name="
|
307
|
+
<a name="M000023"></a><b>clear</b>()
|
308
308
|
|
309
309
|
</div>
|
310
310
|
|
@@ -320,13 +320,13 @@ Deletes all child nodes.
|
|
320
320
|
|
321
321
|
<div class="sourcecode">
|
322
322
|
<p class="source-link">
|
323
|
-
Source: <a href="javascript:toggleSource('
|
323
|
+
Source: <a href="javascript:toggleSource('M000023_source')" id="l_M000023_source">show</a>
|
324
324
|
|
325
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
325
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/fs.rb#L166" target="_blank" class="github_url">on GitHub</a>
|
326
326
|
|
327
327
|
</p>
|
328
|
-
<div id="
|
329
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line
|
328
|
+
<div id="M000023_source" class="dyn-source">
|
329
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 166</span>
|
330
330
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clear</span>
|
331
331
|
<span class="ruby-identifier">children</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span>
|
332
332
|
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">remove</span>
|
@@ -338,9 +338,9 @@ Deletes all child nodes.
|
|
338
338
|
</div>
|
339
339
|
|
340
340
|
<div class="method">
|
341
|
-
<div class="title" id="
|
341
|
+
<div class="title" id="M000013">
|
342
342
|
|
343
|
-
<a name="
|
343
|
+
<a name="M000013"></a><b>create</b>(*args)
|
344
344
|
|
345
345
|
</div>
|
346
346
|
|
@@ -360,13 +360,13 @@ See Rumai::IXP::Client#create for details.
|
|
360
360
|
|
361
361
|
<div class="sourcecode">
|
362
362
|
<p class="source-link">
|
363
|
-
Source: <a href="javascript:toggleSource('
|
363
|
+
Source: <a href="javascript:toggleSource('M000013_source')" id="l_M000013_source">show</a>
|
364
364
|
|
365
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
365
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/fs.rb#L122" target="_blank" class="github_url">on GitHub</a>
|
366
366
|
|
367
367
|
</p>
|
368
|
-
<div id="
|
369
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line
|
368
|
+
<div id="M000013_source" class="dyn-source">
|
369
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 122</span>
|
370
370
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create</span> <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>
|
371
371
|
<span class="ruby-constant">IXP_AGENT</span>.<span class="ruby-identifier">create</span> <span class="ruby-ivar">@path</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>
|
372
372
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -376,9 +376,9 @@ See Rumai::IXP::Client#create for details.
|
|
376
376
|
</div>
|
377
377
|
|
378
378
|
<div class="method">
|
379
|
-
<div class="title" id="
|
379
|
+
<div class="title" id="M000005">
|
380
380
|
|
381
|
-
<a name="
|
381
|
+
<a name="M000005"></a><b>directory?</b>()
|
382
382
|
|
383
383
|
</div>
|
384
384
|
|
@@ -394,12 +394,12 @@ Tests if this node is a directory.
|
|
394
394
|
|
395
395
|
<div class="sourcecode">
|
396
396
|
<p class="source-link">
|
397
|
-
Source: <a href="javascript:toggleSource('
|
397
|
+
Source: <a href="javascript:toggleSource('M000005_source')" id="l_M000005_source">show</a>
|
398
398
|
|
399
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
399
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/fs.rb#L66" target="_blank" class="github_url">on GitHub</a>
|
400
400
|
|
401
401
|
</p>
|
402
|
-
<div id="
|
402
|
+
<div id="M000005_source" class="dyn-source">
|
403
403
|
<pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 66</span>
|
404
404
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">directory?</span>
|
405
405
|
<span class="ruby-identifier">exist?</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">stat</span>.<span class="ruby-identifier">directory?</span>
|
@@ -410,9 +410,9 @@ Tests if this node is a directory.
|
|
410
410
|
</div>
|
411
411
|
|
412
412
|
<div class="method">
|
413
|
-
<div class="title" id="
|
413
|
+
<div class="title" id="M000022">
|
414
414
|
|
415
|
-
<a name="
|
415
|
+
<a name="M000022"></a><b>each</b>(&block)
|
416
416
|
|
417
417
|
</div>
|
418
418
|
|
@@ -428,13 +428,13 @@ Iterates through each child of this directory.
|
|
428
428
|
|
429
429
|
<div class="sourcecode">
|
430
430
|
<p class="source-link">
|
431
|
-
Source: <a href="javascript:toggleSource('
|
431
|
+
Source: <a href="javascript:toggleSource('M000022_source')" id="l_M000022_source">show</a>
|
432
432
|
|
433
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
433
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/fs.rb#L159" target="_blank" class="github_url">on GitHub</a>
|
434
434
|
|
435
435
|
</p>
|
436
|
-
<div id="
|
437
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line
|
436
|
+
<div id="M000022_source" class="dyn-source">
|
437
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 159</span>
|
438
438
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span> <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>
|
439
439
|
<span class="ruby-identifier">children</span>.<span class="ruby-identifier">each</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
440
440
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -444,9 +444,9 @@ Iterates through each child of this directory.
|
|
444
444
|
</div>
|
445
445
|
|
446
446
|
<div class="method">
|
447
|
-
<div class="title" id="
|
447
|
+
<div class="title" id="M000011">
|
448
448
|
|
449
|
-
<a name="
|
449
|
+
<a name="M000011"></a><b>each_line</b>(&block)
|
450
450
|
|
451
451
|
</div>
|
452
452
|
|
@@ -462,13 +462,13 @@ Invokes the given block for every line in the content of this node.
|
|
462
462
|
|
463
463
|
<div class="sourcecode">
|
464
464
|
<p class="source-link">
|
465
|
-
Source: <a href="javascript:toggleSource('
|
465
|
+
Source: <a href="javascript:toggleSource('M000011_source')" id="l_M000011_source">show</a>
|
466
466
|
|
467
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
467
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/fs.rb#L102" target="_blank" class="github_url">on GitHub</a>
|
468
468
|
|
469
469
|
</p>
|
470
|
-
<div id="
|
471
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line
|
470
|
+
<div id="M000011_source" class="dyn-source">
|
471
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 102</span>
|
472
472
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_line</span> <span class="ruby-operator">&</span><span class="ruby-identifier">block</span> <span class="ruby-comment cmt">#:yields: line</span>
|
473
473
|
<span class="ruby-identifier">open</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span>
|
474
474
|
<span class="ruby-keyword kw">until</span> (<span class="ruby-identifier">chunk</span> = <span class="ruby-identifier">file</span>.<span class="ruby-identifier">read</span>(<span class="ruby-keyword kw">true</span>)).<span class="ruby-identifier">empty?</span>
|
@@ -482,9 +482,9 @@ Invokes the given block for every line in the content of this node.
|
|
482
482
|
</div>
|
483
483
|
|
484
484
|
<div class="method">
|
485
|
-
<div class="title" id="
|
485
|
+
<div class="title" id="M000006">
|
486
486
|
|
487
|
-
<a name="
|
487
|
+
<a name="M000006"></a><b>entries</b>()
|
488
488
|
|
489
489
|
</div>
|
490
490
|
|
@@ -500,15 +500,19 @@ Returns the names of all files in this directory.
|
|
500
500
|
|
501
501
|
<div class="sourcecode">
|
502
502
|
<p class="source-link">
|
503
|
-
Source: <a href="javascript:toggleSource('
|
503
|
+
Source: <a href="javascript:toggleSource('M000006_source')" id="l_M000006_source">show</a>
|
504
504
|
|
505
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
505
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/fs.rb#L73" target="_blank" class="github_url">on GitHub</a>
|
506
506
|
|
507
507
|
</p>
|
508
|
-
<div id="
|
508
|
+
<div id="M000006_source" class="dyn-source">
|
509
509
|
<pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 73</span>
|
510
510
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">entries</span>
|
511
|
-
<span class="ruby-
|
511
|
+
<span class="ruby-keyword kw">begin</span>
|
512
|
+
<span class="ruby-constant">IXP_AGENT</span>.<span class="ruby-identifier">entries</span> <span class="ruby-ivar">@path</span>
|
513
|
+
<span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">IXP</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span>
|
514
|
+
[]
|
515
|
+
<span class="ruby-keyword kw">end</span>
|
512
516
|
<span class="ruby-keyword kw">end</span></pre>
|
513
517
|
</div>
|
514
518
|
</div>
|
@@ -516,9 +520,9 @@ Returns the names of all files in this directory.
|
|
516
520
|
</div>
|
517
521
|
|
518
522
|
<div class="method">
|
519
|
-
<div class="title" id="
|
523
|
+
<div class="title" id="M000004">
|
520
524
|
|
521
|
-
<a name="
|
525
|
+
<a name="M000004"></a><b>exist?</b>()
|
522
526
|
|
523
527
|
</div>
|
524
528
|
|
@@ -534,12 +538,12 @@ Tests if this node exists on the <a href="IXP.html">IXP</a> server.
|
|
534
538
|
|
535
539
|
<div class="sourcecode">
|
536
540
|
<p class="source-link">
|
537
|
-
Source: <a href="javascript:toggleSource('
|
541
|
+
Source: <a href="javascript:toggleSource('M000004_source')" id="l_M000004_source">show</a>
|
538
542
|
|
539
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
543
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/fs.rb#L55" target="_blank" class="github_url">on GitHub</a>
|
540
544
|
|
541
545
|
</p>
|
542
|
-
<div id="
|
546
|
+
<div id="M000004_source" class="dyn-source">
|
543
547
|
<pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 55</span>
|
544
548
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exist?</span>
|
545
549
|
<span class="ruby-keyword kw">begin</span>
|
@@ -554,9 +558,9 @@ Tests if this node exists on the <a href="IXP.html">IXP</a> server.
|
|
554
558
|
</div>
|
555
559
|
|
556
560
|
<div class="method">
|
557
|
-
<div class="title" id="
|
561
|
+
<div class="title" id="M000024">
|
558
562
|
|
559
|
-
<a name="
|
563
|
+
<a name="M000024"></a><b> node.child → Node
|
560
564
|
</b>
|
561
565
|
|
562
566
|
</div>
|
@@ -573,13 +577,13 @@ Provides access to child nodes through method calls.
|
|
573
577
|
|
574
578
|
<div class="sourcecode">
|
575
579
|
<p class="source-link">
|
576
|
-
Source: <a href="javascript:toggleSource('
|
580
|
+
Source: <a href="javascript:toggleSource('M000024_source')" id="l_M000024_source">show</a>
|
577
581
|
|
578
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
582
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/fs.rb#L177" target="_blank" class="github_url">on GitHub</a>
|
579
583
|
|
580
584
|
</p>
|
581
|
-
<div id="
|
582
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line
|
585
|
+
<div id="M000024_source" class="dyn-source">
|
586
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 177</span>
|
583
587
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span> <span class="ruby-identifier">meth</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>
|
584
588
|
<span class="ruby-identifier">child</span> = <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">meth</span>]
|
585
589
|
|
@@ -598,9 +602,9 @@ Provides access to child nodes through method calls.
|
|
598
602
|
</div>
|
599
603
|
|
600
604
|
<div class="method">
|
601
|
-
<div class="title" id="
|
605
|
+
<div class="title" id="M000009">
|
602
606
|
|
603
|
-
<a name="
|
607
|
+
<a name="M000009"></a><b>open</b>(mode = 'r', &block)
|
604
608
|
|
605
609
|
</div>
|
606
610
|
|
@@ -619,13 +623,13 @@ See Rumai::IXP::Client#open for details.
|
|
619
623
|
|
620
624
|
<div class="sourcecode">
|
621
625
|
<p class="source-link">
|
622
|
-
Source: <a href="javascript:toggleSource('
|
626
|
+
Source: <a href="javascript:toggleSource('M000009_source')" id="l_M000009_source">show</a>
|
623
627
|
|
624
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
628
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/fs.rb#L86" target="_blank" class="github_url">on GitHub</a>
|
625
629
|
|
626
630
|
</p>
|
627
|
-
<div id="
|
628
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line
|
631
|
+
<div id="M000009_source" class="dyn-source">
|
632
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 86</span>
|
629
633
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">open</span> <span class="ruby-identifier">mode</span> = <span class="ruby-value str">'r'</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>
|
630
634
|
<span class="ruby-constant">IXP_AGENT</span>.<span class="ruby-identifier">open</span> <span class="ruby-ivar">@path</span>, <span class="ruby-identifier">mode</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>
|
631
635
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -635,9 +639,9 @@ See Rumai::IXP::Client#open for details.
|
|
635
639
|
</div>
|
636
640
|
|
637
641
|
<div class="method">
|
638
|
-
<div class="title" id="
|
642
|
+
<div class="title" id="M000017">
|
639
643
|
|
640
|
-
<a name="
|
644
|
+
<a name="M000017"></a><b>parent</b>()
|
641
645
|
|
642
646
|
</div>
|
643
647
|
|
@@ -653,13 +657,13 @@ Returns the parent node of this node.
|
|
653
657
|
|
654
658
|
<div class="sourcecode">
|
655
659
|
<p class="source-link">
|
656
|
-
Source: <a href="javascript:toggleSource('
|
660
|
+
Source: <a href="javascript:toggleSource('M000017_source')" id="l_M000017_source">show</a>
|
657
661
|
|
658
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
662
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/fs.rb#L143" target="_blank" class="github_url">on GitHub</a>
|
659
663
|
|
660
664
|
</p>
|
661
|
-
<div id="
|
662
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line
|
665
|
+
<div id="M000017_source" class="dyn-source">
|
666
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 143</span>
|
663
667
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parent</span>
|
664
668
|
<span class="ruby-ivar">@@cache</span>[ <span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-ivar">@path</span>) ]
|
665
669
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -669,9 +673,9 @@ Returns the parent node of this node.
|
|
669
673
|
</div>
|
670
674
|
|
671
675
|
<div class="method">
|
672
|
-
<div class="title" id="
|
676
|
+
<div class="title" id="M000010">
|
673
677
|
|
674
|
-
<a name="
|
678
|
+
<a name="M000010"></a><b>read</b>(*args)
|
675
679
|
|
676
680
|
</div>
|
677
681
|
|
@@ -690,13 +694,13 @@ See Rumai::IXP::Client#read for details.
|
|
690
694
|
|
691
695
|
<div class="sourcecode">
|
692
696
|
<p class="source-link">
|
693
|
-
Source: <a href="javascript:toggleSource('
|
697
|
+
Source: <a href="javascript:toggleSource('M000010_source')" id="l_M000010_source">show</a>
|
694
698
|
|
695
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
699
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/fs.rb#L95" target="_blank" class="github_url">on GitHub</a>
|
696
700
|
|
697
701
|
</p>
|
698
|
-
<div id="
|
699
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line
|
702
|
+
<div id="M000010_source" class="dyn-source">
|
703
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 95</span>
|
700
704
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">read</span> <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>
|
701
705
|
<span class="ruby-constant">IXP_AGENT</span>.<span class="ruby-identifier">read</span> <span class="ruby-ivar">@path</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>
|
702
706
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -706,9 +710,9 @@ See Rumai::IXP::Client#read for details.
|
|
706
710
|
</div>
|
707
711
|
|
708
712
|
<div class="method">
|
709
|
-
<div class="title" id="
|
713
|
+
<div class="title" id="M000015">
|
710
714
|
|
711
|
-
<a name="
|
715
|
+
<a name="M000015"></a><b>remove</b>()
|
712
716
|
|
713
717
|
</div>
|
714
718
|
|
@@ -725,13 +729,13 @@ href="IXP.html">IXP</a> server.
|
|
725
729
|
|
726
730
|
<div class="sourcecode">
|
727
731
|
<p class="source-link">
|
728
|
-
Source: <a href="javascript:toggleSource('
|
732
|
+
Source: <a href="javascript:toggleSource('M000015_source')" id="l_M000015_source">show</a>
|
729
733
|
|
730
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
734
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/fs.rb#L129" target="_blank" class="github_url">on GitHub</a>
|
731
735
|
|
732
736
|
</p>
|
733
|
-
<div id="
|
734
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line
|
737
|
+
<div id="M000015_source" class="dyn-source">
|
738
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 129</span>
|
735
739
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove</span>
|
736
740
|
<span class="ruby-constant">IXP_AGENT</span>.<span class="ruby-identifier">remove</span> <span class="ruby-ivar">@path</span>
|
737
741
|
<span class="ruby-keyword kw">end</span></pre>
|
@@ -741,9 +745,9 @@ href="IXP.html">IXP</a> server.
|
|
741
745
|
</div>
|
742
746
|
|
743
747
|
<div class="method">
|
744
|
-
<div class="title" id="
|
748
|
+
<div class="title" id="M000003">
|
745
749
|
|
746
|
-
<a name="
|
750
|
+
<a name="M000003"></a><b>stat</b>()
|
747
751
|
|
748
752
|
</div>
|
749
753
|
|
@@ -762,12 +766,12 @@ See Rumai::IXP::Client#stat for details.
|
|
762
766
|
|
763
767
|
<div class="sourcecode">
|
764
768
|
<p class="source-link">
|
765
|
-
Source: <a href="javascript:toggleSource('
|
769
|
+
Source: <a href="javascript:toggleSource('M000003_source')" id="l_M000003_source">show</a>
|
766
770
|
|
767
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
771
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/fs.rb#L48" target="_blank" class="github_url">on GitHub</a>
|
768
772
|
|
769
773
|
</p>
|
770
|
-
<div id="
|
774
|
+
<div id="M000003_source" class="dyn-source">
|
771
775
|
<pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 48</span>
|
772
776
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stat</span>
|
773
777
|
<span class="ruby-constant">IXP_AGENT</span>.<span class="ruby-identifier">stat</span> <span class="ruby-ivar">@path</span>
|
@@ -778,9 +782,9 @@ See Rumai::IXP::Client#stat for details.
|
|
778
782
|
</div>
|
779
783
|
|
780
784
|
<div class="method">
|
781
|
-
<div class="title" id="
|
785
|
+
<div class="title" id="M000012">
|
782
786
|
|
783
|
-
<a name="
|
787
|
+
<a name="M000012"></a><b>write</b>(content)
|
784
788
|
|
785
789
|
</div>
|
786
790
|
|
@@ -796,13 +800,13 @@ Writes the given content to this node.
|
|
796
800
|
|
797
801
|
<div class="sourcecode">
|
798
802
|
<p class="source-link">
|
799
|
-
Source: <a href="javascript:toggleSource('
|
803
|
+
Source: <a href="javascript:toggleSource('M000012_source')" id="l_M000012_source">show</a>
|
800
804
|
|
801
|
-
| <a href="http://github.com/sunaku/rumai/blob/
|
805
|
+
| <a href="http://github.com/sunaku/rumai/blob/947d8ffb1e3c2bd1aebfca5fae4e7ebb7913607f/lib/rumai/fs.rb#L113" target="_blank" class="github_url">on GitHub</a>
|
802
806
|
|
803
807
|
</p>
|
804
|
-
<div id="
|
805
|
-
<pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line
|
808
|
+
<div id="M000012_source" class="dyn-source">
|
809
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 113</span>
|
806
810
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">write</span> <span class="ruby-identifier">content</span>
|
807
811
|
<span class="ruby-constant">IXP_AGENT</span>.<span class="ruby-identifier">write</span> <span class="ruby-ivar">@path</span>, <span class="ruby-identifier">content</span>
|
808
812
|
<span class="ruby-keyword kw">end</span></pre>
|