rumai 2.1.0 → 3.0.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/CREDITS +1 -0
- data/doc/api/classes/Integer.html +5 -5
- data/doc/api/classes/Rumai.html +178 -215
- data/doc/api/classes/Rumai/Area.html +194 -126
- data/doc/api/classes/Rumai/Chain.html +21 -21
- data/doc/api/classes/Rumai/Client.html +506 -142
- data/doc/api/classes/Rumai/ClientContainer.html +22 -22
- data/doc/api/classes/Rumai/IXP/Agent.html +55 -55
- data/doc/api/classes/Rumai/IXP/Agent/FidStream.html +30 -30
- data/doc/api/classes/Rumai/IXP/Agent/MODES.html +5 -5
- data/doc/api/classes/Rumai/IXP/Fcall.html +25 -25
- data/doc/api/classes/Rumai/IXP/Stat.html +5 -5
- data/doc/api/classes/Rumai/IXP/Stream.html +5 -5
- data/doc/api/classes/Rumai/IXP/Struct.html +20 -20
- data/doc/api/classes/Rumai/IXP/Struct/Field.html +30 -30
- data/doc/api/classes/Rumai/IXP/Struct/Field/CounteeField.html +10 -10
- data/doc/api/classes/Rumai/IXP/Struct/Field/CounterField.html +5 -5
- data/doc/api/classes/Rumai/IXP/Terror.html +5 -5
- data/doc/api/classes/Rumai/Node.html +45 -45
- data/doc/api/classes/Rumai/View.html +226 -125
- data/doc/api/classes/Rumai/WidgetImpl.html +1 -1
- data/doc/api/classes/String.html +10 -10
- data/doc/api/classes/Time.html +10 -10
- data/doc/api/created.rid +1 -1
- data/doc/api/files/CREDITS.html +4 -1
- data/doc/api/files/lib/rumai/fs_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 +63 -0
- data/doc/index.erb +2 -2
- data/doc/index.xhtml +215 -67
- data/doc/intro.erb +4 -1
- data/doc/usage.erb +1 -1
- data/lib/rumai.rb +2 -2
- data/lib/rumai/wm.rb +200 -130
- metadata +2 -2
@@ -59,7 +59,7 @@ NOTE: this class is NOT thread-safe.
|
|
59
59
|
<dd>
|
60
60
|
<ul>
|
61
61
|
|
62
|
-
<li><a href="#
|
62
|
+
<li><a href="#M000086"><<</a></li>
|
63
63
|
|
64
64
|
</ul>
|
65
65
|
</dd>
|
@@ -68,9 +68,9 @@ NOTE: this class is NOT thread-safe.
|
|
68
68
|
<dd>
|
69
69
|
<ul>
|
70
70
|
|
71
|
-
<li><a href="#
|
71
|
+
<li><a href="#M000074">close</a>,</li>
|
72
72
|
|
73
|
-
<li><a href="#
|
73
|
+
<li><a href="#M000075">closed?</a></li>
|
74
74
|
|
75
75
|
</ul>
|
76
76
|
</dd>
|
@@ -79,7 +79,7 @@ NOTE: this class is NOT thread-safe.
|
|
79
79
|
<dd>
|
80
80
|
<ul>
|
81
81
|
|
82
|
-
<li><a href="#
|
82
|
+
<li><a href="#M000068">new</a></li>
|
83
83
|
|
84
84
|
</ul>
|
85
85
|
</dd>
|
@@ -90,7 +90,7 @@ NOTE: this class is NOT thread-safe.
|
|
90
90
|
|
91
91
|
<li><a href="#M000077">read</a>,</li>
|
92
92
|
|
93
|
-
<li><a href="#
|
93
|
+
<li><a href="#M000071">rewind</a></li>
|
94
94
|
|
95
95
|
</ul>
|
96
96
|
</dd>
|
@@ -99,7 +99,7 @@ NOTE: this class is NOT thread-safe.
|
|
99
99
|
<dd>
|
100
100
|
<ul>
|
101
101
|
|
102
|
-
<li><a href="#
|
102
|
+
<li><a href="#M000083">write</a></li>
|
103
103
|
|
104
104
|
</ul>
|
105
105
|
</dd>
|
@@ -158,9 +158,9 @@ NOTE: this class is NOT thread-safe.
|
|
158
158
|
<div class="sectiontitle">Class Public methods</div>
|
159
159
|
|
160
160
|
<div class="method">
|
161
|
-
<div class="title" id="
|
161
|
+
<div class="title" id="M000068">
|
162
162
|
|
163
|
-
<a name="
|
163
|
+
<a name="M000068"></a><b>new</b>(agent, path_fid, message_size)
|
164
164
|
|
165
165
|
</div>
|
166
166
|
|
@@ -169,12 +169,12 @@ NOTE: this class is NOT thread-safe.
|
|
169
169
|
|
170
170
|
<div class="sourcecode">
|
171
171
|
<p class="source-link">
|
172
|
-
Source: <a href="javascript:toggleSource('
|
172
|
+
Source: <a href="javascript:toggleSource('M000068_source')" id="l_M000068_source">show</a>
|
173
173
|
|
174
174
|
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/ixp/transport.rb#L196" target="_blank" class="github_url">on GitHub</a>
|
175
175
|
|
176
176
|
</p>
|
177
|
-
<div id="
|
177
|
+
<div id="M000068_source" class="dyn-source">
|
178
178
|
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 196</span>
|
179
179
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">agent</span>, <span class="ruby-identifier">path_fid</span>, <span class="ruby-identifier">message_size</span>
|
180
180
|
<span class="ruby-ivar">@agent</span> = <span class="ruby-identifier">agent</span>
|
@@ -192,15 +192,15 @@ NOTE: this class is NOT thread-safe.
|
|
192
192
|
<div class="sectiontitle">Instance Public methods</div>
|
193
193
|
|
194
194
|
<div class="method">
|
195
|
-
<div class="title" id="
|
195
|
+
<div class="title" id="M000086">
|
196
196
|
|
197
|
-
<a name="
|
197
|
+
<a name="M000086"></a><b><<</b>(content)
|
198
198
|
|
199
199
|
</div>
|
200
200
|
|
201
201
|
<div class="description">
|
202
202
|
<p>
|
203
|
-
Alias for <a href="FidStream.html#
|
203
|
+
Alias for <a href="FidStream.html#M000083">write</a>
|
204
204
|
</p>
|
205
205
|
|
206
206
|
</div>
|
@@ -210,9 +210,9 @@ Alias for <a href="FidStream.html#M000081">write</a>
|
|
210
210
|
</div>
|
211
211
|
|
212
212
|
<div class="method">
|
213
|
-
<div class="title" id="
|
213
|
+
<div class="title" id="M000074">
|
214
214
|
|
215
|
-
<a name="
|
215
|
+
<a name="M000074"></a><b>close</b>()
|
216
216
|
|
217
217
|
</div>
|
218
218
|
|
@@ -228,12 +228,12 @@ Closes this stream.
|
|
228
228
|
|
229
229
|
<div class="sourcecode">
|
230
230
|
<p class="source-link">
|
231
|
-
Source: <a href="javascript:toggleSource('
|
231
|
+
Source: <a href="javascript:toggleSource('M000074_source')" id="l_M000074_source">show</a>
|
232
232
|
|
233
233
|
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/ixp/transport.rb#L216" target="_blank" class="github_url">on GitHub</a>
|
234
234
|
|
235
235
|
</p>
|
236
|
-
<div id="
|
236
|
+
<div id="M000074_source" class="dyn-source">
|
237
237
|
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 216</span>
|
238
238
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
|
239
239
|
<span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@closed</span>
|
@@ -248,9 +248,9 @@ Closes this stream.
|
|
248
248
|
</div>
|
249
249
|
|
250
250
|
<div class="method">
|
251
|
-
<div class="title" id="
|
251
|
+
<div class="title" id="M000075">
|
252
252
|
|
253
|
-
<a name="
|
253
|
+
<a name="M000075"></a><b>closed?</b>()
|
254
254
|
|
255
255
|
</div>
|
256
256
|
|
@@ -266,12 +266,12 @@ Returns true if this stream is closed.
|
|
266
266
|
|
267
267
|
<div class="sourcecode">
|
268
268
|
<p class="source-link">
|
269
|
-
Source: <a href="javascript:toggleSource('
|
269
|
+
Source: <a href="javascript:toggleSource('M000075_source')" id="l_M000075_source">show</a>
|
270
270
|
|
271
271
|
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/ixp/transport.rb#L227" target="_blank" class="github_url">on GitHub</a>
|
272
272
|
|
273
273
|
</p>
|
274
|
-
<div id="
|
274
|
+
<div id="M000075_source" class="dyn-source">
|
275
275
|
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 227</span>
|
276
276
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">closed?</span>
|
277
277
|
<span class="ruby-ivar">@closed</span>
|
@@ -357,9 +357,9 @@ returned.
|
|
357
357
|
</div>
|
358
358
|
|
359
359
|
<div class="method">
|
360
|
-
<div class="title" id="
|
360
|
+
<div class="title" id="M000071">
|
361
361
|
|
362
|
-
<a name="
|
362
|
+
<a name="M000071"></a><b>rewind</b>()
|
363
363
|
|
364
364
|
</div>
|
365
365
|
|
@@ -375,12 +375,12 @@ Rewinds the stream to the beginning.
|
|
375
375
|
|
376
376
|
<div class="sourcecode">
|
377
377
|
<p class="source-link">
|
378
|
-
Source: <a href="javascript:toggleSource('
|
378
|
+
Source: <a href="javascript:toggleSource('M000071_source')" id="l_M000071_source">show</a>
|
379
379
|
|
380
380
|
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/ixp/transport.rb#L208" target="_blank" class="github_url">on GitHub</a>
|
381
381
|
|
382
382
|
</p>
|
383
|
-
<div id="
|
383
|
+
<div id="M000071_source" class="dyn-source">
|
384
384
|
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 208</span>
|
385
385
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rewind</span>
|
386
386
|
<span class="ruby-ivar">@pos</span> = <span class="ruby-value">0</span>
|
@@ -392,9 +392,9 @@ Rewinds the stream to the beginning.
|
|
392
392
|
</div>
|
393
393
|
|
394
394
|
<div class="method">
|
395
|
-
<div class="title" id="
|
395
|
+
<div class="title" id="M000083">
|
396
396
|
|
397
|
-
<a name="
|
397
|
+
<a name="M000083"></a><b>write</b>(content)
|
398
398
|
|
399
399
|
</div>
|
400
400
|
|
@@ -409,7 +409,7 @@ Writes the given content at the current position in this stream.
|
|
409
409
|
<div class="aka">
|
410
410
|
This method is also aliased as
|
411
411
|
|
412
|
-
<a href="FidStream.html#
|
412
|
+
<a href="FidStream.html#M000086"><<</a>
|
413
413
|
|
414
414
|
</div>
|
415
415
|
|
@@ -417,12 +417,12 @@ Writes the given content at the current position in this stream.
|
|
417
417
|
|
418
418
|
<div class="sourcecode">
|
419
419
|
<p class="source-link">
|
420
|
-
Source: <a href="javascript:toggleSource('
|
420
|
+
Source: <a href="javascript:toggleSource('M000083_source')" id="l_M000083_source">show</a>
|
421
421
|
|
422
422
|
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/ixp/transport.rb#L278" target="_blank" class="github_url">on GitHub</a>
|
423
423
|
|
424
424
|
</p>
|
425
|
-
<div id="
|
425
|
+
<div id="M000083_source" class="dyn-source">
|
426
426
|
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 278</span>
|
427
427
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">write</span> <span class="ruby-identifier">content</span>
|
428
428
|
<span class="ruby-identifier">raise</span> <span class="ruby-value str">'closed streams cannot be written to'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@closed</span>
|
@@ -43,7 +43,7 @@
|
|
43
43
|
<dd>
|
44
44
|
<ul>
|
45
45
|
|
46
|
-
<li><a href="#
|
46
|
+
<li><a href="#M000058">parse</a></li>
|
47
47
|
|
48
48
|
</ul>
|
49
49
|
</dd>
|
@@ -65,9 +65,9 @@
|
|
65
65
|
<div class="sectiontitle">Class Public methods</div>
|
66
66
|
|
67
67
|
<div class="method">
|
68
|
-
<div class="title" id="
|
68
|
+
<div class="title" id="M000058">
|
69
69
|
|
70
|
-
<a name="
|
70
|
+
<a name="M000058"></a><b>parse</b>(mode)
|
71
71
|
|
72
72
|
</div>
|
73
73
|
|
@@ -83,12 +83,12 @@ Converts the given mode string into an integer.
|
|
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('M000058_source')" id="l_M000058_source">show</a>
|
87
87
|
|
88
88
|
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/ixp/transport.rb#L142" target="_blank" class="github_url">on GitHub</a>
|
89
89
|
|
90
90
|
</p>
|
91
|
-
<div id="
|
91
|
+
<div id="M000058_source" class="dyn-source">
|
92
92
|
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/transport.rb, line 142</span>
|
93
93
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">MODES</span>.<span class="ruby-identifier">parse</span> <span class="ruby-identifier">mode</span>
|
94
94
|
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">mode</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:split</span>
|
@@ -56,7 +56,7 @@ A remote function call (fcall).
|
|
56
56
|
<dd>
|
57
57
|
<ul>
|
58
58
|
|
59
|
-
<li><a href="#
|
59
|
+
<li><a href="#M000165">__from_9p__</a></li>
|
60
60
|
|
61
61
|
</ul>
|
62
62
|
</dd>
|
@@ -65,7 +65,7 @@ A remote function call (fcall).
|
|
65
65
|
<dd>
|
66
66
|
<ul>
|
67
67
|
|
68
|
-
<li><a href="#
|
68
|
+
<li><a href="#M000164">from_9p</a></li>
|
69
69
|
|
70
70
|
</ul>
|
71
71
|
</dd>
|
@@ -74,11 +74,11 @@ A remote function call (fcall).
|
|
74
74
|
<dd>
|
75
75
|
<ul>
|
76
76
|
|
77
|
-
<li><a href="#
|
77
|
+
<li><a href="#M000163">to_9p</a>,</li>
|
78
78
|
|
79
|
-
<li><a href="#
|
79
|
+
<li><a href="#M000167">type</a>,</li>
|
80
80
|
|
81
|
-
<li><a href="#
|
81
|
+
<li><a href="#M000168">type</a></li>
|
82
82
|
|
83
83
|
</ul>
|
84
84
|
</dd>
|
@@ -145,15 +145,15 @@ A remote function call (fcall).
|
|
145
145
|
<div class="sectiontitle">Class Public methods</div>
|
146
146
|
|
147
147
|
<div class="method">
|
148
|
-
<div class="title" id="
|
148
|
+
<div class="title" id="M000165">
|
149
149
|
|
150
|
-
<a name="
|
150
|
+
<a name="M000165"></a><b>__from_9p__</b>(stream)
|
151
151
|
|
152
152
|
</div>
|
153
153
|
|
154
154
|
<div class="description">
|
155
155
|
<p>
|
156
|
-
Alias for <a href="Fcall.html#
|
156
|
+
Alias for <a href="Fcall.html#M000164">from_9p</a>
|
157
157
|
</p>
|
158
158
|
|
159
159
|
</div>
|
@@ -163,9 +163,9 @@ Alias for <a href="Fcall.html#M000149">from_9p</a>
|
|
163
163
|
</div>
|
164
164
|
|
165
165
|
<div class="method">
|
166
|
-
<div class="title" id="
|
166
|
+
<div class="title" id="M000164">
|
167
167
|
|
168
|
-
<a name="
|
168
|
+
<a name="M000164"></a><b>from_9p</b>(stream)
|
169
169
|
|
170
170
|
</div>
|
171
171
|
|
@@ -181,7 +181,7 @@ returns the instance.
|
|
181
181
|
<div class="aka">
|
182
182
|
This method is also aliased as
|
183
183
|
|
184
|
-
<a href="Fcall.html#
|
184
|
+
<a href="Fcall.html#M000165">__from_9p__</a>
|
185
185
|
|
186
186
|
</div>
|
187
187
|
|
@@ -189,12 +189,12 @@ returns the instance.
|
|
189
189
|
|
190
190
|
<div class="sourcecode">
|
191
191
|
<p class="source-link">
|
192
|
-
Source: <a href="javascript:toggleSource('
|
192
|
+
Source: <a href="javascript:toggleSource('M000164_source')" id="l_M000164_source">show</a>
|
193
193
|
|
194
194
|
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/ixp/message.rb#L417" target="_blank" class="github_url">on GitHub</a>
|
195
195
|
|
196
196
|
</p>
|
197
|
-
<div id="
|
197
|
+
<div id="M000164_source" class="dyn-source">
|
198
198
|
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 417</span>
|
199
199
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">from_9p</span> <span class="ruby-identifier">stream</span>
|
200
200
|
<span class="ruby-identifier">size</span> = <span class="ruby-identifier">stream</span>.<span class="ruby-identifier">read_9p</span>(<span class="ruby-value">4</span>)
|
@@ -212,9 +212,9 @@ returns the instance.
|
|
212
212
|
</div>
|
213
213
|
|
214
214
|
<div class="method">
|
215
|
-
<div class="title" id="
|
215
|
+
<div class="title" id="M000167">
|
216
216
|
|
217
|
-
<a name="
|
217
|
+
<a name="M000167"></a><b>type</b>()
|
218
218
|
|
219
219
|
</div>
|
220
220
|
|
@@ -230,12 +230,12 @@ Returns the value of the ‘type’ field for this fcall.
|
|
230
230
|
|
231
231
|
<div class="sourcecode">
|
232
232
|
<p class="source-link">
|
233
|
-
Source: <a href="javascript:toggleSource('
|
233
|
+
Source: <a href="javascript:toggleSource('M000167_source')" id="l_M000167_source">show</a>
|
234
234
|
|
235
235
|
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/ixp/message.rb#L654" target="_blank" class="github_url">on GitHub</a>
|
236
236
|
|
237
237
|
</p>
|
238
|
-
<div id="
|
238
|
+
<div id="M000167_source" class="dyn-source">
|
239
239
|
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 654</span>
|
240
240
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">type</span>
|
241
241
|
<span class="ruby-constant">CLASS_TO_TYPE</span>[<span class="ruby-keyword kw">self</span>]
|
@@ -248,9 +248,9 @@ Returns the value of the ‘type’ field for this fcall.
|
|
248
248
|
<div class="sectiontitle">Instance Public methods</div>
|
249
249
|
|
250
250
|
<div class="method">
|
251
|
-
<div class="title" id="
|
251
|
+
<div class="title" id="M000163">
|
252
252
|
|
253
|
-
<a name="
|
253
|
+
<a name="M000163"></a><b>to_9p</b>()
|
254
254
|
|
255
255
|
</div>
|
256
256
|
|
@@ -266,12 +266,12 @@ Transforms this object into a string of 9P2000 bytes.
|
|
266
266
|
|
267
267
|
<div class="sourcecode">
|
268
268
|
<p class="source-link">
|
269
|
-
Source: <a href="javascript:toggleSource('
|
269
|
+
Source: <a href="javascript:toggleSource('M000163_source')" id="l_M000163_source">show</a>
|
270
270
|
|
271
271
|
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/ixp/message.rb#L403" target="_blank" class="github_url">on GitHub</a>
|
272
272
|
|
273
273
|
</p>
|
274
|
-
<div id="
|
274
|
+
<div id="M000163_source" class="dyn-source">
|
275
275
|
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 403</span>
|
276
276
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_9p</span>
|
277
277
|
<span class="ruby-identifier">data</span> = <span class="ruby-identifier">type</span>.<span class="ruby-identifier">to_9p</span>(<span class="ruby-value">1</span>) <span class="ruby-operator"><<</span> <span class="ruby-keyword kw">super</span>
|
@@ -284,9 +284,9 @@ Transforms this object into a string of 9P2000 bytes.
|
|
284
284
|
</div>
|
285
285
|
|
286
286
|
<div class="method">
|
287
|
-
<div class="title" id="
|
287
|
+
<div class="title" id="M000168">
|
288
288
|
|
289
|
-
<a name="
|
289
|
+
<a name="M000168"></a><b>type</b>()
|
290
290
|
|
291
291
|
</div>
|
292
292
|
|
@@ -302,12 +302,12 @@ Returns the value of the ‘type’ field for this fcall.
|
|
302
302
|
|
303
303
|
<div class="sourcecode">
|
304
304
|
<p class="source-link">
|
305
|
-
Source: <a href="javascript:toggleSource('
|
305
|
+
Source: <a href="javascript:toggleSource('M000168_source')" id="l_M000168_source">show</a>
|
306
306
|
|
307
307
|
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/ixp/message.rb#L661" target="_blank" class="github_url">on GitHub</a>
|
308
308
|
|
309
309
|
</p>
|
310
|
-
<div id="
|
310
|
+
<div id="M000168_source" class="dyn-source">
|
311
311
|
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 661</span>
|
312
312
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">type</span>
|
313
313
|
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">type</span>
|
@@ -60,7 +60,7 @@ href="http://cm.bell-labs.com/magic/man2html/5/stat">cm.bell-labs.com/magic/man2
|
|
60
60
|
<dd>
|
61
61
|
<ul>
|
62
62
|
|
63
|
-
<li><a href="#
|
63
|
+
<li><a href="#M000162">directory?</a></li>
|
64
64
|
|
65
65
|
</ul>
|
66
66
|
</dd>
|
@@ -213,9 +213,9 @@ href="http://swtch.com/usr/local/plan9/include/libc.h">swtch.com/usr/local/plan9
|
|
213
213
|
<div class="sectiontitle">Instance Public methods</div>
|
214
214
|
|
215
215
|
<div class="method">
|
216
|
-
<div class="title" id="
|
216
|
+
<div class="title" id="M000162">
|
217
217
|
|
218
|
-
<a name="
|
218
|
+
<a name="M000162"></a><b>directory?</b>()
|
219
219
|
|
220
220
|
</div>
|
221
221
|
|
@@ -231,12 +231,12 @@ Tests if this file is a directory.
|
|
231
231
|
|
232
232
|
<div class="sourcecode">
|
233
233
|
<p class="source-link">
|
234
|
-
Source: <a href="javascript:toggleSource('
|
234
|
+
Source: <a href="javascript:toggleSource('M000162_source')" id="l_M000162_source">show</a>
|
235
235
|
|
236
236
|
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/ixp/message.rb#L378" target="_blank" class="github_url">on GitHub</a>
|
237
237
|
|
238
238
|
</p>
|
239
|
-
<div id="
|
239
|
+
<div id="M000162_source" class="dyn-source">
|
240
240
|
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 378</span>
|
241
241
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">directory?</span>
|
242
242
|
<span class="ruby-identifier">mode</span> <span class="ruby-operator">&</span> <span class="ruby-constant">DMDIR</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
@@ -50,7 +50,7 @@ A 9P2000 byte stream.
|
|
50
50
|
<dd>
|
51
51
|
<ul>
|
52
52
|
|
53
|
-
<li><a href="#
|
53
|
+
<li><a href="#M000122">read_9p</a></li>
|
54
54
|
|
55
55
|
</ul>
|
56
56
|
</dd>
|
@@ -92,9 +92,9 @@ uchar, ushort, uint32 (all of them little-endian)
|
|
92
92
|
<div class="sectiontitle">Instance Public methods</div>
|
93
93
|
|
94
94
|
<div class="method">
|
95
|
-
<div class="title" id="
|
95
|
+
<div class="title" id="M000122">
|
96
96
|
|
97
|
-
<a name="
|
97
|
+
<a name="M000122"></a><b>read_9p</b>(num_bytes)
|
98
98
|
|
99
99
|
</div>
|
100
100
|
|
@@ -110,12 +110,12 @@ Unpacks the given number of bytes from this 9P2000 byte stream.
|
|
110
110
|
|
111
111
|
<div class="sourcecode">
|
112
112
|
<p class="source-link">
|
113
|
-
Source: <a href="javascript:toggleSource('
|
113
|
+
Source: <a href="javascript:toggleSource('M000122_source')" id="l_M000122_source">show</a>
|
114
114
|
|
115
115
|
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/ixp/message.rb#L37" target="_blank" class="github_url">on GitHub</a>
|
116
116
|
|
117
117
|
</p>
|
118
|
-
<div id="
|
118
|
+
<div id="M000122_source" class="dyn-source">
|
119
119
|
<pre><span class="ruby-comment cmt"># File lib/rumai/ixp/message.rb, line 37</span>
|
120
120
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">read_9p</span> <span class="ruby-identifier">num_bytes</span>
|
121
121
|
<span class="ruby-identifier">read</span>(<span class="ruby-identifier">num_bytes</span>).<span class="ruby-identifier">unpack</span>(<span class="ruby-constant">PACKING_FLAGS</span>[<span class="ruby-identifier">num_bytes</span>])[<span class="ruby-value">0</span>]
|