rumai 2.0.2 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. data/CREDITS +2 -0
  2. data/bin/rumai +20 -8
  3. data/doc/api/classes/IO.html +72 -0
  4. data/doc/api/classes/Integer.html +110 -0
  5. data/doc/api/classes/Object.html +60 -0
  6. data/doc/api/classes/Rumai.html +867 -0
  7. data/doc/api/classes/Rumai/Area.html +836 -0
  8. data/doc/api/classes/Rumai/Chain.html +197 -0
  9. data/doc/api/classes/Rumai/Client.html +865 -0
  10. data/doc/api/classes/Rumai/ClientContainer.html +191 -0
  11. data/doc/api/classes/Rumai/ExportInstanceMethods.html +69 -0
  12. data/doc/api/classes/Rumai/IXP.html +131 -0
  13. data/doc/api/classes/Rumai/IXP/Agent.html +836 -0
  14. data/doc/api/classes/Rumai/IXP/Agent/FidStream.html +456 -0
  15. data/doc/api/classes/Rumai/IXP/Agent/MODES.html +108 -0
  16. data/doc/api/classes/Rumai/IXP/Agent/RangedPool.html +241 -0
  17. data/doc/api/classes/Rumai/IXP/Error.html +67 -0
  18. data/doc/api/classes/Rumai/IXP/Fcall.html +323 -0
  19. data/doc/api/classes/Rumai/IXP/Qid.html +153 -0
  20. data/doc/api/classes/Rumai/IXP/Rattach.html +67 -0
  21. data/doc/api/classes/Rumai/IXP/Rauth.html +67 -0
  22. data/doc/api/classes/Rumai/IXP/Rclunk.html +67 -0
  23. data/doc/api/classes/Rumai/IXP/Rcreate.html +67 -0
  24. data/doc/api/classes/Rumai/IXP/Rerror.html +67 -0
  25. data/doc/api/classes/Rumai/IXP/Rflush.html +67 -0
  26. data/doc/api/classes/Rumai/IXP/Ropen.html +67 -0
  27. data/doc/api/classes/Rumai/IXP/Rread.html +67 -0
  28. data/doc/api/classes/Rumai/IXP/Rremove.html +67 -0
  29. data/doc/api/classes/Rumai/IXP/Rstat.html +67 -0
  30. data/doc/api/classes/Rumai/IXP/Rversion.html +67 -0
  31. data/doc/api/classes/Rumai/IXP/Rwalk.html +67 -0
  32. data/doc/api/classes/Rumai/IXP/Rwrite.html +67 -0
  33. data/doc/api/classes/Rumai/IXP/Rwstat.html +67 -0
  34. data/doc/api/classes/Rumai/IXP/Stat.html +252 -0
  35. data/doc/api/classes/Rumai/IXP/Stream.html +131 -0
  36. data/doc/api/classes/Rumai/IXP/Struct.html +315 -0
  37. data/doc/api/classes/Rumai/IXP/Struct/Field.html +415 -0
  38. data/doc/api/classes/Rumai/IXP/Struct/Field/CounteeField.html +153 -0
  39. data/doc/api/classes/Rumai/IXP/Struct/Field/CounterField.html +104 -0
  40. data/doc/api/classes/Rumai/IXP/Tattach.html +68 -0
  41. data/doc/api/classes/Rumai/IXP/Tauth.html +67 -0
  42. data/doc/api/classes/Rumai/IXP/Tclunk.html +67 -0
  43. data/doc/api/classes/Rumai/IXP/Tcreate.html +68 -0
  44. data/doc/api/classes/Rumai/IXP/Terror.html +110 -0
  45. data/doc/api/classes/Rumai/IXP/Tflush.html +67 -0
  46. data/doc/api/classes/Rumai/IXP/Topen.html +165 -0
  47. data/doc/api/classes/Rumai/IXP/Tread.html +67 -0
  48. data/doc/api/classes/Rumai/IXP/Tremove.html +67 -0
  49. data/doc/api/classes/Rumai/IXP/Tstat.html +67 -0
  50. data/doc/api/classes/Rumai/IXP/Tversion.html +86 -0
  51. data/doc/api/classes/Rumai/IXP/Twalk.html +68 -0
  52. data/doc/api/classes/Rumai/IXP/Twrite.html +68 -0
  53. data/doc/api/classes/Rumai/IXP/Twstat.html +67 -0
  54. data/doc/api/classes/Rumai/Node.html +817 -0
  55. data/doc/api/classes/Rumai/View.html +818 -0
  56. data/doc/api/classes/Rumai/WidgetImpl.html +65 -0
  57. data/doc/api/classes/Rumai/WidgetNode.html +68 -0
  58. data/doc/api/classes/String.html +163 -0
  59. data/doc/api/classes/StringIO.html +72 -0
  60. data/doc/api/classes/Time.html +156 -0
  61. data/doc/api/created.rid +1 -0
  62. data/doc/api/css/main.css +263 -0
  63. data/doc/api/css/panel.css +383 -0
  64. data/doc/api/css/reset.css +53 -0
  65. data/doc/api/files/CREDITS.html +64 -0
  66. data/doc/api/files/LICENSE.html +76 -0
  67. data/doc/api/files/lib/rumai/fs_rb.html +75 -0
  68. data/doc/api/files/lib/rumai/ixp/message_rb.html +91 -0
  69. data/doc/api/files/lib/rumai/ixp/transport_rb.html +75 -0
  70. data/doc/api/files/lib/rumai/ixp_rb.html +69 -0
  71. data/doc/api/files/lib/rumai/wm_rb.html +77 -0
  72. data/doc/api/files/lib/rumai_rb.html +65 -0
  73. data/doc/api/i/arrows.png +0 -0
  74. data/doc/api/i/results_bg.png +0 -0
  75. data/doc/api/i/tree_bg.png +0 -0
  76. data/doc/api/index.html +14 -18
  77. data/doc/api/js/jquery-1.3.2.min.js +19 -0
  78. data/doc/api/js/jquery-effect.js +593 -0
  79. data/doc/api/js/main.js +22 -0
  80. data/doc/api/js/searchdoc.js +605 -0
  81. data/doc/api/panel/index.html +63 -0
  82. data/doc/api/panel/search_index.js +1 -0
  83. data/doc/api/panel/tree.js +1 -0
  84. data/doc/history.erb +41 -16
  85. data/doc/index.erb +14 -11
  86. data/doc/index.xhtml +519 -846
  87. data/doc/intro.erb +33 -32
  88. data/doc/setup.erb +14 -13
  89. data/doc/usage.erb +69 -35
  90. data/lib/rumai.rb +13 -5
  91. data/lib/rumai/fs.rb +71 -27
  92. data/lib/rumai/ixp.rb +4 -0
  93. data/lib/rumai/ixp/message.rb +178 -81
  94. data/lib/rumai/ixp/transport.rb +144 -91
  95. data/lib/rumai/wm.rb +717 -593
  96. data/rakefile +14 -0
  97. data/test/rumai/ixp/message.rb +42 -54
  98. metadata +110 -89
  99. data/Rakefile +0 -8
  100. data/doc/api/IO.html +0 -53
  101. data/doc/api/Integer.html +0 -102
  102. data/doc/api/Object.html +0 -23
  103. data/doc/api/Rumai.html +0 -1218
  104. data/doc/api/Rumai/Area.html +0 -1088
  105. data/doc/api/Rumai/Chain.html +0 -230
  106. data/doc/api/Rumai/Client.html +0 -1264
  107. data/doc/api/Rumai/ClientContainer.html +0 -227
  108. data/doc/api/Rumai/ExportInstMethods.html +0 -115
  109. data/doc/api/Rumai/IXP.html +0 -23
  110. data/doc/api/Rumai/IXP/Agent.html +0 -1222
  111. data/doc/api/Rumai/IXP/Agent/FidStream.html +0 -602
  112. data/doc/api/Rumai/IXP/Agent/RangedPool.html +0 -263
  113. data/doc/api/Rumai/IXP/Error.html +0 -32
  114. data/doc/api/Rumai/IXP/Fcall.html +0 -398
  115. data/doc/api/Rumai/IXP/Qid.html +0 -99
  116. data/doc/api/Rumai/IXP/Rattach.html +0 -71
  117. data/doc/api/Rumai/IXP/Rauth.html +0 -71
  118. data/doc/api/Rumai/IXP/Rclunk.html +0 -71
  119. data/doc/api/Rumai/IXP/Rcreate.html +0 -71
  120. data/doc/api/Rumai/IXP/Rerror.html +0 -71
  121. data/doc/api/Rumai/IXP/Rflush.html +0 -71
  122. data/doc/api/Rumai/IXP/Ropen.html +0 -71
  123. data/doc/api/Rumai/IXP/Rread.html +0 -71
  124. data/doc/api/Rumai/IXP/Rremove.html +0 -71
  125. data/doc/api/Rumai/IXP/Rstat.html +0 -71
  126. data/doc/api/Rumai/IXP/Rversion.html +0 -71
  127. data/doc/api/Rumai/IXP/Rwalk.html +0 -71
  128. data/doc/api/Rumai/IXP/Rwrite.html +0 -71
  129. data/doc/api/Rumai/IXP/Rwstat.html +0 -71
  130. data/doc/api/Rumai/IXP/Stat.html +0 -188
  131. data/doc/api/Rumai/IXP/Stream.html +0 -112
  132. data/doc/api/Rumai/IXP/Struct.html +0 -348
  133. data/doc/api/Rumai/IXP/Struct/ClassField.html +0 -177
  134. data/doc/api/Rumai/IXP/Struct/Field.html +0 -549
  135. data/doc/api/Rumai/IXP/Struct/Field/CounteeField.html +0 -175
  136. data/doc/api/Rumai/IXP/Struct/Field/CounterField.html +0 -95
  137. data/doc/api/Rumai/IXP/Struct/Integer8Field.html +0 -181
  138. data/doc/api/Rumai/IXP/Struct/StringField.html +0 -128
  139. data/doc/api/Rumai/IXP/Tattach.html +0 -71
  140. data/doc/api/Rumai/IXP/Tauth.html +0 -71
  141. data/doc/api/Rumai/IXP/Tclunk.html +0 -71
  142. data/doc/api/Rumai/IXP/Tcreate.html +0 -71
  143. data/doc/api/Rumai/IXP/Terror.html +0 -156
  144. data/doc/api/Rumai/IXP/Tflush.html +0 -71
  145. data/doc/api/Rumai/IXP/Topen.html +0 -113
  146. data/doc/api/Rumai/IXP/Tread.html +0 -71
  147. data/doc/api/Rumai/IXP/Tremove.html +0 -71
  148. data/doc/api/Rumai/IXP/Tstat.html +0 -71
  149. data/doc/api/Rumai/IXP/Tversion.html +0 -83
  150. data/doc/api/Rumai/IXP/Twalk.html +0 -71
  151. data/doc/api/Rumai/IXP/Twrite.html +0 -71
  152. data/doc/api/Rumai/IXP/Twstat.html +0 -71
  153. data/doc/api/Rumai/Node.html +0 -1139
  154. data/doc/api/Rumai/View.html +0 -1280
  155. data/doc/api/Rumai/WidgetImpl.html +0 -196
  156. data/doc/api/Rumai/WidgetNode.html +0 -184
  157. data/doc/api/String.html +0 -180
  158. data/doc/api/StringIO.html +0 -53
  159. data/doc/api/Time.html +0 -175
  160. data/doc/api/all-methods.html +0 -1436
  161. data/doc/api/all-namespaces.html +0 -140
  162. data/doc/api/app.js +0 -18
  163. data/doc/api/jquery.js +0 -11
  164. data/doc/api/readme.html +0 -38
  165. data/doc/api/style.css +0 -68
  166. data/doc/api/syntax_highlight.css +0 -21
  167. data/doc/theory.erb +0 -3
@@ -0,0 +1,67 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <title>Rumai::IXP::Tremove</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
+ <link rel="stylesheet" href="../../../css/reset.css" type="text/css" media="screen" />
9
+ <link rel="stylesheet" href="../../../css/main.css" type="text/css" media="screen" />
10
+ <script src="../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
11
+ <script src="../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
12
+ <script src="../../../js/main.js" type="text/javascript" charset="utf-8"></script>
13
+ </head>
14
+
15
+ <body>
16
+ <div class="banner">
17
+ <h1>
18
+ <span class="type">Class</span>
19
+ Rumai::IXP::Tremove
20
+
21
+ <span class="parent">&lt;
22
+
23
+ Fcall
24
+
25
+ </span>
26
+
27
+ </h1>
28
+ <ul class="files">
29
+
30
+ <li><a href="../../../files/lib/rumai/ixp/message_rb.html">lib/rumai/ixp/message.rb</a></li>
31
+
32
+ </ul>
33
+ </div>
34
+ <div id="bodyContent">
35
+ <div id="content">
36
+
37
+ <div class="description">
38
+ <p>
39
+ size[4] <a href="Tremove.html">Tremove</a> tag[2] fid[4]
40
+ </p>
41
+
42
+ </div>
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+ </div>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,67 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <title>Rumai::IXP::Tstat</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
+ <link rel="stylesheet" href="../../../css/reset.css" type="text/css" media="screen" />
9
+ <link rel="stylesheet" href="../../../css/main.css" type="text/css" media="screen" />
10
+ <script src="../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
11
+ <script src="../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
12
+ <script src="../../../js/main.js" type="text/javascript" charset="utf-8"></script>
13
+ </head>
14
+
15
+ <body>
16
+ <div class="banner">
17
+ <h1>
18
+ <span class="type">Class</span>
19
+ Rumai::IXP::Tstat
20
+
21
+ <span class="parent">&lt;
22
+
23
+ Fcall
24
+
25
+ </span>
26
+
27
+ </h1>
28
+ <ul class="files">
29
+
30
+ <li><a href="../../../files/lib/rumai/ixp/message_rb.html">lib/rumai/ixp/message.rb</a></li>
31
+
32
+ </ul>
33
+ </div>
34
+ <div id="bodyContent">
35
+ <div id="content">
36
+
37
+ <div class="description">
38
+ <p>
39
+ size[4] <a href="Tstat.html">Tstat</a> tag[2] fid[4]
40
+ </p>
41
+
42
+ </div>
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+ </div>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,86 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <title>Rumai::IXP::Tversion</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
+ <link rel="stylesheet" href="../../../css/reset.css" type="text/css" media="screen" />
9
+ <link rel="stylesheet" href="../../../css/main.css" type="text/css" media="screen" />
10
+ <script src="../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
11
+ <script src="../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
12
+ <script src="../../../js/main.js" type="text/javascript" charset="utf-8"></script>
13
+ </head>
14
+
15
+ <body>
16
+ <div class="banner">
17
+ <h1>
18
+ <span class="type">Class</span>
19
+ Rumai::IXP::Tversion
20
+
21
+ <span class="parent">&lt;
22
+
23
+ Fcall
24
+
25
+ </span>
26
+
27
+ </h1>
28
+ <ul class="files">
29
+
30
+ <li><a href="../../../files/lib/rumai/ixp/message_rb.html">lib/rumai/ixp/message.rb</a></li>
31
+
32
+ </ul>
33
+ </div>
34
+ <div id="bodyContent">
35
+ <div id="content">
36
+
37
+ <div class="description">
38
+ <p>
39
+ size[4] <a href="Tversion.html">Tversion</a> tag[2] msize[4] version[s]
40
+ </p>
41
+
42
+ </div>
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+ <div class="sectiontitle">Constants</div>
61
+ <table border='0' cellpadding='5'>
62
+
63
+ <tr valign='top'>
64
+ <td class="attr-name">VERSION</td>
65
+ <td>=</td>
66
+ <td class="attr-value">'9P2000'.freeze</td>
67
+ </tr>
68
+
69
+
70
+ <tr valign='top'>
71
+ <td class="attr-name">MSIZE</td>
72
+ <td>=</td>
73
+ <td class="attr-value">8192</td>
74
+ </tr>
75
+
76
+
77
+ </table>
78
+
79
+
80
+
81
+
82
+
83
+ </div>
84
+ </div>
85
+ </body>
86
+ </html>
@@ -0,0 +1,68 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <title>Rumai::IXP::Twalk</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
+ <link rel="stylesheet" href="../../../css/reset.css" type="text/css" media="screen" />
9
+ <link rel="stylesheet" href="../../../css/main.css" type="text/css" media="screen" />
10
+ <script src="../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
11
+ <script src="../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
12
+ <script src="../../../js/main.js" type="text/javascript" charset="utf-8"></script>
13
+ </head>
14
+
15
+ <body>
16
+ <div class="banner">
17
+ <h1>
18
+ <span class="type">Class</span>
19
+ Rumai::IXP::Twalk
20
+
21
+ <span class="parent">&lt;
22
+
23
+ Fcall
24
+
25
+ </span>
26
+
27
+ </h1>
28
+ <ul class="files">
29
+
30
+ <li><a href="../../../files/lib/rumai/ixp/message_rb.html">lib/rumai/ixp/message.rb</a></li>
31
+
32
+ </ul>
33
+ </div>
34
+ <div id="bodyContent">
35
+ <div id="content">
36
+
37
+ <div class="description">
38
+ <p>
39
+ size[4] <a href="Twalk.html">Twalk</a> tag[2] fid[4] newfid[4] nwname[2]
40
+ nwname*(wname[s])
41
+ </p>
42
+
43
+ </div>
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+ </div>
66
+ </div>
67
+ </body>
68
+ </html>
@@ -0,0 +1,68 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <title>Rumai::IXP::Twrite</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
+ <link rel="stylesheet" href="../../../css/reset.css" type="text/css" media="screen" />
9
+ <link rel="stylesheet" href="../../../css/main.css" type="text/css" media="screen" />
10
+ <script src="../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
11
+ <script src="../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
12
+ <script src="../../../js/main.js" type="text/javascript" charset="utf-8"></script>
13
+ </head>
14
+
15
+ <body>
16
+ <div class="banner">
17
+ <h1>
18
+ <span class="type">Class</span>
19
+ Rumai::IXP::Twrite
20
+
21
+ <span class="parent">&lt;
22
+
23
+ Fcall
24
+
25
+ </span>
26
+
27
+ </h1>
28
+ <ul class="files">
29
+
30
+ <li><a href="../../../files/lib/rumai/ixp/message_rb.html">lib/rumai/ixp/message.rb</a></li>
31
+
32
+ </ul>
33
+ </div>
34
+ <div id="bodyContent">
35
+ <div id="content">
36
+
37
+ <div class="description">
38
+ <p>
39
+ size[4] <a href="Twrite.html">Twrite</a> tag[2] fid[4] offset[8] count[4]
40
+ data[count]
41
+ </p>
42
+
43
+ </div>
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+ </div>
66
+ </div>
67
+ </body>
68
+ </html>
@@ -0,0 +1,67 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <title>Rumai::IXP::Twstat</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
+ <link rel="stylesheet" href="../../../css/reset.css" type="text/css" media="screen" />
9
+ <link rel="stylesheet" href="../../../css/main.css" type="text/css" media="screen" />
10
+ <script src="../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
11
+ <script src="../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
12
+ <script src="../../../js/main.js" type="text/javascript" charset="utf-8"></script>
13
+ </head>
14
+
15
+ <body>
16
+ <div class="banner">
17
+ <h1>
18
+ <span class="type">Class</span>
19
+ Rumai::IXP::Twstat
20
+
21
+ <span class="parent">&lt;
22
+
23
+ Fcall
24
+
25
+ </span>
26
+
27
+ </h1>
28
+ <ul class="files">
29
+
30
+ <li><a href="../../../files/lib/rumai/ixp/message_rb.html">lib/rumai/ixp/message.rb</a></li>
31
+
32
+ </ul>
33
+ </div>
34
+ <div id="bodyContent">
35
+ <div id="content">
36
+
37
+ <div class="description">
38
+ <p>
39
+ size[4] <a href="Twstat.html">Twstat</a> tag[2] fid[4] stat[n]
40
+ </p>
41
+
42
+ </div>
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+ </div>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,817 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <title>Rumai::Node</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
+ <link rel="stylesheet" href="../../css/reset.css" type="text/css" media="screen" />
9
+ <link rel="stylesheet" href="../../css/main.css" type="text/css" media="screen" />
10
+ <script src="../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
11
+ <script src="../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
12
+ <script src="../../js/main.js" type="text/javascript" charset="utf-8"></script>
13
+ </head>
14
+
15
+ <body>
16
+ <div class="banner">
17
+ <h1>
18
+ <span class="type">Class</span>
19
+ Rumai::Node
20
+
21
+ <span class="parent">&lt;
22
+
23
+ <a href="../Object.html">Object</a>
24
+
25
+ </span>
26
+
27
+ </h1>
28
+ <ul class="files">
29
+
30
+ <li><a href="../../files/lib/rumai/fs_rb.html">lib/rumai/fs.rb</a></li>
31
+
32
+ </ul>
33
+ </div>
34
+ <div id="bodyContent">
35
+ <div id="content">
36
+
37
+ <div class="description">
38
+ <p>
39
+ An entry in the <a href="IXP.html">IXP</a> file system.
40
+ </p>
41
+
42
+ </div>
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+ <div class="sectiontitle">Methods</div>
53
+ <dl class="methods">
54
+
55
+ <dt>#</dt>
56
+ <dd>
57
+ <ul>
58
+
59
+ <li><a href="#M000014">[]</a></li>
60
+
61
+ </ul>
62
+ </dd>
63
+
64
+ <dt>C</dt>
65
+ <dd>
66
+ <ul>
67
+
68
+ <li><a href="#M000019">children</a>,</li>
69
+
70
+ <li><a href="#M000023">clear</a>,</li>
71
+
72
+ <li><a href="#M000011">create</a></li>
73
+
74
+ </ul>
75
+ </dd>
76
+
77
+ <dt>D</dt>
78
+ <dd>
79
+ <ul>
80
+
81
+ <li><a href="#M000003">directory?</a></li>
82
+
83
+ </ul>
84
+ </dd>
85
+
86
+ <dt>E</dt>
87
+ <dd>
88
+ <ul>
89
+
90
+ <li><a href="#M000022">each</a>,</li>
91
+
92
+ <li><a href="#M000007">each_line</a>,</li>
93
+
94
+ <li><a href="#M000004">entries</a>,</li>
95
+
96
+ <li><a href="#M000002">exist?</a></li>
97
+
98
+ </ul>
99
+ </dd>
100
+
101
+ <dt>M</dt>
102
+ <dd>
103
+ <ul>
104
+
105
+ <li><a href="#M000025">method_missing</a></li>
106
+
107
+ </ul>
108
+ </dd>
109
+
110
+ <dt>N</dt>
111
+ <dd>
112
+ <ul>
113
+
114
+ <li><a href="#M000000">new</a></li>
115
+
116
+ </ul>
117
+ </dd>
118
+
119
+ <dt>O</dt>
120
+ <dd>
121
+ <ul>
122
+
123
+ <li><a href="#M000005">open</a></li>
124
+
125
+ </ul>
126
+ </dd>
127
+
128
+ <dt>P</dt>
129
+ <dd>
130
+ <ul>
131
+
132
+ <li><a href="#M000018">parent</a></li>
133
+
134
+ </ul>
135
+ </dd>
136
+
137
+ <dt>R</dt>
138
+ <dd>
139
+ <ul>
140
+
141
+ <li><a href="#M000006">read</a>,</li>
142
+
143
+ <li><a href="#M000013">remove</a></li>
144
+
145
+ </ul>
146
+ </dd>
147
+
148
+ <dt>S</dt>
149
+ <dd>
150
+ <ul>
151
+
152
+ <li><a href="#M000001">stat</a></li>
153
+
154
+ </ul>
155
+ </dd>
156
+
157
+ <dt>W</dt>
158
+ <dd>
159
+ <ul>
160
+
161
+ <li><a href="#M000010">write</a></li>
162
+
163
+ </ul>
164
+ </dd>
165
+
166
+ </dl>
167
+
168
+
169
+
170
+ <div class="sectiontitle">Included Modules</div>
171
+ <ul>
172
+
173
+ <li>
174
+
175
+ <span>Enumerable</span>
176
+
177
+ START:includes
178
+ </li>
179
+
180
+ </ul>
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+ <div class="sectiontitle">Attributes</div>
191
+ <table border='0' cellpadding='5'>
192
+
193
+ <tr valign='top'>
194
+ <td class='attr-rw'>
195
+ [R]
196
+ </td>
197
+ <td class='attr-name'>path</td>
198
+ <td class='attr-desc'></td>
199
+ </tr>
200
+
201
+ </table>
202
+
203
+
204
+
205
+ <div class="sectiontitle">Class Public methods</div>
206
+
207
+ <div class="method">
208
+ <div class="title" id="M000000">
209
+
210
+ <a name="M000000"></a><b>new</b>(path)
211
+
212
+ </div>
213
+
214
+
215
+
216
+
217
+ <div class="sourcecode">
218
+ <p class="source-link">
219
+ Source: <a href="javascript:toggleSource('M000000_source')" id="l_M000000_source">show</a>
220
+
221
+ | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/fs.rb#L39" target="_blank" class="github_url">on GitHub</a>
222
+
223
+ </p>
224
+ <div id="M000000_source" class="dyn-source">
225
+ <pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 39</span>
226
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">path</span>
227
+ <span class="ruby-ivar">@path</span> = <span class="ruby-identifier">path</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">squeeze</span>(<span class="ruby-value str">'/'</span>)
228
+ <span class="ruby-keyword kw">end</span></pre>
229
+ </div>
230
+ </div>
231
+
232
+ </div>
233
+
234
+ <div class="sectiontitle">Instance Public methods</div>
235
+
236
+ <div class="method">
237
+ <div class="title" id="M000014">
238
+
239
+ <a name="M000014"></a><b>[]</b>(sub_path)
240
+
241
+ </div>
242
+
243
+ <div class="description">
244
+ <p>
245
+ Returns the given sub-path as a <a href="Node.html">Node</a> object.
246
+ </p>
247
+
248
+ </div>
249
+
250
+
251
+
252
+
253
+ <div class="sourcecode">
254
+ <p class="source-link">
255
+ Source: <a href="javascript:toggleSource('M000014_source')" id="l_M000014_source">show</a>
256
+
257
+ | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/fs.rb#L132" target="_blank" class="github_url">on GitHub</a>
258
+
259
+ </p>
260
+ <div id="M000014_source" class="dyn-source">
261
+ <pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 132</span>
262
+ <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span> <span class="ruby-identifier">sub_path</span>
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
+ <span class="ruby-keyword kw">end</span></pre>
265
+ </div>
266
+ </div>
267
+
268
+ </div>
269
+
270
+ <div class="method">
271
+ <div class="title" id="M000019">
272
+
273
+ <a name="M000019"></a><b>children</b>()
274
+
275
+ </div>
276
+
277
+ <div class="description">
278
+ <p>
279
+ Returns all child nodes of this node.
280
+ </p>
281
+
282
+ </div>
283
+
284
+
285
+
286
+
287
+ <div class="sourcecode">
288
+ <p class="source-link">
289
+ Source: <a href="javascript:toggleSource('M000019_source')" id="l_M000019_source">show</a>
290
+
291
+ | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/fs.rb#L146" target="_blank" class="github_url">on GitHub</a>
292
+
293
+ </p>
294
+ <div id="M000019_source" class="dyn-source">
295
+ <pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 146</span>
296
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">children</span>
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
+ <span class="ruby-keyword kw">end</span></pre>
299
+ </div>
300
+ </div>
301
+
302
+ </div>
303
+
304
+ <div class="method">
305
+ <div class="title" id="M000023">
306
+
307
+ <a name="M000023"></a><b>clear</b>()
308
+
309
+ </div>
310
+
311
+ <div class="description">
312
+ <p>
313
+ Deletes all child nodes.
314
+ </p>
315
+
316
+ </div>
317
+
318
+
319
+
320
+
321
+ <div class="sourcecode">
322
+ <p class="source-link">
323
+ Source: <a href="javascript:toggleSource('M000023_source')" id="l_M000023_source">show</a>
324
+
325
+ | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/fs.rb#L162" target="_blank" class="github_url">on GitHub</a>
326
+
327
+ </p>
328
+ <div id="M000023_source" class="dyn-source">
329
+ <pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 162</span>
330
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clear</span>
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
+ <span class="ruby-identifier">c</span>.<span class="ruby-identifier">remove</span>
333
+ <span class="ruby-keyword kw">end</span>
334
+ <span class="ruby-keyword kw">end</span></pre>
335
+ </div>
336
+ </div>
337
+
338
+ </div>
339
+
340
+ <div class="method">
341
+ <div class="title" id="M000011">
342
+
343
+ <a name="M000011"></a><b>create</b>(*args)
344
+
345
+ </div>
346
+
347
+ <div class="description">
348
+ <p>
349
+ Creates a file corresponding to this node on the <a href="IXP.html">IXP</a>
350
+ server.
351
+ </p>
352
+ <p>
353
+ See Rumai::IXP::Client#create for details.
354
+ </p>
355
+
356
+ </div>
357
+
358
+
359
+
360
+
361
+ <div class="sourcecode">
362
+ <p class="source-link">
363
+ Source: <a href="javascript:toggleSource('M000011_source')" id="l_M000011_source">show</a>
364
+
365
+ | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/fs.rb#L118" target="_blank" class="github_url">on GitHub</a>
366
+
367
+ </p>
368
+ <div id="M000011_source" class="dyn-source">
369
+ <pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 118</span>
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
+ <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
+ <span class="ruby-keyword kw">end</span></pre>
373
+ </div>
374
+ </div>
375
+
376
+ </div>
377
+
378
+ <div class="method">
379
+ <div class="title" id="M000003">
380
+
381
+ <a name="M000003"></a><b>directory?</b>()
382
+
383
+ </div>
384
+
385
+ <div class="description">
386
+ <p>
387
+ Tests if this node is a directory.
388
+ </p>
389
+
390
+ </div>
391
+
392
+
393
+
394
+
395
+ <div class="sourcecode">
396
+ <p class="source-link">
397
+ Source: <a href="javascript:toggleSource('M000003_source')" id="l_M000003_source">show</a>
398
+
399
+ | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/fs.rb#L66" target="_blank" class="github_url">on GitHub</a>
400
+
401
+ </p>
402
+ <div id="M000003_source" class="dyn-source">
403
+ <pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 66</span>
404
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">directory?</span>
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>
406
+ <span class="ruby-keyword kw">end</span></pre>
407
+ </div>
408
+ </div>
409
+
410
+ </div>
411
+
412
+ <div class="method">
413
+ <div class="title" id="M000022">
414
+
415
+ <a name="M000022"></a><b>each</b>(&amp;block)
416
+
417
+ </div>
418
+
419
+ <div class="description">
420
+ <p>
421
+ Iterates through each child of this directory.
422
+ </p>
423
+
424
+ </div>
425
+
426
+
427
+
428
+
429
+ <div class="sourcecode">
430
+ <p class="source-link">
431
+ Source: <a href="javascript:toggleSource('M000022_source')" id="l_M000022_source">show</a>
432
+
433
+ | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/fs.rb#L155" target="_blank" class="github_url">on GitHub</a>
434
+
435
+ </p>
436
+ <div id="M000022_source" class="dyn-source">
437
+ <pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 155</span>
438
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span> <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
439
+ <span class="ruby-identifier">children</span>.<span class="ruby-identifier">each</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
440
+ <span class="ruby-keyword kw">end</span></pre>
441
+ </div>
442
+ </div>
443
+
444
+ </div>
445
+
446
+ <div class="method">
447
+ <div class="title" id="M000007">
448
+
449
+ <a name="M000007"></a><b>each_line</b>(&amp;block)
450
+
451
+ </div>
452
+
453
+ <div class="description">
454
+ <p>
455
+ Invokes the given block for every line in the content of this node.
456
+ </p>
457
+
458
+ </div>
459
+
460
+
461
+
462
+
463
+ <div class="sourcecode">
464
+ <p class="source-link">
465
+ Source: <a href="javascript:toggleSource('M000007_source')" id="l_M000007_source">show</a>
466
+
467
+ | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/fs.rb#L98" target="_blank" class="github_url">on GitHub</a>
468
+
469
+ </p>
470
+ <div id="M000007_source" class="dyn-source">
471
+ <pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 98</span>
472
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_line</span> <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span> <span class="ruby-comment cmt">#:yields: line</span>
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
+ <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>
475
+ <span class="ruby-identifier">chunk</span>.<span class="ruby-identifier">each_line</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
476
+ <span class="ruby-keyword kw">end</span>
477
+ <span class="ruby-keyword kw">end</span>
478
+ <span class="ruby-keyword kw">end</span></pre>
479
+ </div>
480
+ </div>
481
+
482
+ </div>
483
+
484
+ <div class="method">
485
+ <div class="title" id="M000004">
486
+
487
+ <a name="M000004"></a><b>entries</b>()
488
+
489
+ </div>
490
+
491
+ <div class="description">
492
+ <p>
493
+ Returns the names of all files in this directory.
494
+ </p>
495
+
496
+ </div>
497
+
498
+
499
+
500
+
501
+ <div class="sourcecode">
502
+ <p class="source-link">
503
+ Source: <a href="javascript:toggleSource('M000004_source')" id="l_M000004_source">show</a>
504
+
505
+ | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/fs.rb#L73" target="_blank" class="github_url">on GitHub</a>
506
+
507
+ </p>
508
+ <div id="M000004_source" class="dyn-source">
509
+ <pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 73</span>
510
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">entries</span>
511
+ <span class="ruby-constant">IXP_AGENT</span>.<span class="ruby-identifier">entries</span> <span class="ruby-ivar">@path</span> <span class="ruby-keyword kw">rescue</span> []
512
+ <span class="ruby-keyword kw">end</span></pre>
513
+ </div>
514
+ </div>
515
+
516
+ </div>
517
+
518
+ <div class="method">
519
+ <div class="title" id="M000002">
520
+
521
+ <a name="M000002"></a><b>exist?</b>()
522
+
523
+ </div>
524
+
525
+ <div class="description">
526
+ <p>
527
+ Tests if this node exists on the <a href="IXP.html">IXP</a> server.
528
+ </p>
529
+
530
+ </div>
531
+
532
+
533
+
534
+
535
+ <div class="sourcecode">
536
+ <p class="source-link">
537
+ Source: <a href="javascript:toggleSource('M000002_source')" id="l_M000002_source">show</a>
538
+
539
+ | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/fs.rb#L55" target="_blank" class="github_url">on GitHub</a>
540
+
541
+ </p>
542
+ <div id="M000002_source" class="dyn-source">
543
+ <pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 55</span>
544
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exist?</span>
545
+ <span class="ruby-keyword kw">begin</span>
546
+ <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">stat</span>
547
+ <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">IXP</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span>
548
+ <span class="ruby-keyword kw">false</span>
549
+ <span class="ruby-keyword kw">end</span>
550
+ <span class="ruby-keyword kw">end</span></pre>
551
+ </div>
552
+ </div>
553
+
554
+ </div>
555
+
556
+ <div class="method">
557
+ <div class="title" id="M000025">
558
+
559
+ <a name="M000025"></a><b> node.child &rarr; Node
560
+ </b>
561
+
562
+ </div>
563
+
564
+ <div class="description">
565
+ <p>
566
+ Provides access to child nodes through method calls.
567
+ </p>
568
+
569
+ </div>
570
+
571
+
572
+
573
+
574
+ <div class="sourcecode">
575
+ <p class="source-link">
576
+ Source: <a href="javascript:toggleSource('M000025_source')" id="l_M000025_source">show</a>
577
+
578
+ | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/fs.rb#L173" target="_blank" class="github_url">on GitHub</a>
579
+
580
+ </p>
581
+ <div id="M000025_source" class="dyn-source">
582
+ <pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 173</span>
583
+ <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
+ <span class="ruby-identifier">child</span> = <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">meth</span>]
585
+
586
+ <span class="ruby-comment cmt"># speed up future accesses</span>
587
+ (<span class="ruby-keyword kw">class</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-keyword kw">self</span>; <span class="ruby-keyword kw">self</span>; <span class="ruby-keyword kw">end</span>).<span class="ruby-identifier">instance_eval</span> <span class="ruby-keyword kw">do</span>
588
+ <span class="ruby-identifier">define_method</span> <span class="ruby-identifier">meth</span> <span class="ruby-keyword kw">do</span>
589
+ <span class="ruby-identifier">child</span>
590
+ <span class="ruby-keyword kw">end</span>
591
+ <span class="ruby-keyword kw">end</span>
592
+
593
+ <span class="ruby-identifier">child</span>
594
+ <span class="ruby-keyword kw">end</span></pre>
595
+ </div>
596
+ </div>
597
+
598
+ </div>
599
+
600
+ <div class="method">
601
+ <div class="title" id="M000005">
602
+
603
+ <a name="M000005"></a><b>open</b>(mode = 'r', &amp;block)
604
+
605
+ </div>
606
+
607
+ <div class="description">
608
+ <p>
609
+ Opens this node for I/O access.
610
+ </p>
611
+ <p>
612
+ See Rumai::IXP::Client#open for details.
613
+ </p>
614
+
615
+ </div>
616
+
617
+
618
+
619
+
620
+ <div class="sourcecode">
621
+ <p class="source-link">
622
+ Source: <a href="javascript:toggleSource('M000005_source')" id="l_M000005_source">show</a>
623
+
624
+ | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/fs.rb#L82" target="_blank" class="github_url">on GitHub</a>
625
+
626
+ </p>
627
+ <div id="M000005_source" class="dyn-source">
628
+ <pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 82</span>
629
+ <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">&amp;</span><span class="ruby-identifier">block</span>
630
+ <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">&amp;</span><span class="ruby-identifier">block</span>
631
+ <span class="ruby-keyword kw">end</span></pre>
632
+ </div>
633
+ </div>
634
+
635
+ </div>
636
+
637
+ <div class="method">
638
+ <div class="title" id="M000018">
639
+
640
+ <a name="M000018"></a><b>parent</b>()
641
+
642
+ </div>
643
+
644
+ <div class="description">
645
+ <p>
646
+ Returns the parent node of this node.
647
+ </p>
648
+
649
+ </div>
650
+
651
+
652
+
653
+
654
+ <div class="sourcecode">
655
+ <p class="source-link">
656
+ Source: <a href="javascript:toggleSource('M000018_source')" id="l_M000018_source">show</a>
657
+
658
+ | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/fs.rb#L139" target="_blank" class="github_url">on GitHub</a>
659
+
660
+ </p>
661
+ <div id="M000018_source" class="dyn-source">
662
+ <pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 139</span>
663
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parent</span>
664
+ <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
+ <span class="ruby-keyword kw">end</span></pre>
666
+ </div>
667
+ </div>
668
+
669
+ </div>
670
+
671
+ <div class="method">
672
+ <div class="title" id="M000006">
673
+
674
+ <a name="M000006"></a><b>read</b>(*args)
675
+
676
+ </div>
677
+
678
+ <div class="description">
679
+ <p>
680
+ Returns the entire content of this node.
681
+ </p>
682
+ <p>
683
+ See Rumai::IXP::Client#read for details.
684
+ </p>
685
+
686
+ </div>
687
+
688
+
689
+
690
+
691
+ <div class="sourcecode">
692
+ <p class="source-link">
693
+ Source: <a href="javascript:toggleSource('M000006_source')" id="l_M000006_source">show</a>
694
+
695
+ | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/fs.rb#L91" target="_blank" class="github_url">on GitHub</a>
696
+
697
+ </p>
698
+ <div id="M000006_source" class="dyn-source">
699
+ <pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 91</span>
700
+ <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
+ <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
+ <span class="ruby-keyword kw">end</span></pre>
703
+ </div>
704
+ </div>
705
+
706
+ </div>
707
+
708
+ <div class="method">
709
+ <div class="title" id="M000013">
710
+
711
+ <a name="M000013"></a><b>remove</b>()
712
+
713
+ </div>
714
+
715
+ <div class="description">
716
+ <p>
717
+ Deletes the file corresponding to this node on the <a
718
+ href="IXP.html">IXP</a> server.
719
+ </p>
720
+
721
+ </div>
722
+
723
+
724
+
725
+
726
+ <div class="sourcecode">
727
+ <p class="source-link">
728
+ Source: <a href="javascript:toggleSource('M000013_source')" id="l_M000013_source">show</a>
729
+
730
+ | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/fs.rb#L125" target="_blank" class="github_url">on GitHub</a>
731
+
732
+ </p>
733
+ <div id="M000013_source" class="dyn-source">
734
+ <pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 125</span>
735
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove</span>
736
+ <span class="ruby-constant">IXP_AGENT</span>.<span class="ruby-identifier">remove</span> <span class="ruby-ivar">@path</span>
737
+ <span class="ruby-keyword kw">end</span></pre>
738
+ </div>
739
+ </div>
740
+
741
+ </div>
742
+
743
+ <div class="method">
744
+ <div class="title" id="M000001">
745
+
746
+ <a name="M000001"></a><b>stat</b>()
747
+
748
+ </div>
749
+
750
+ <div class="description">
751
+ <p>
752
+ Returns file statistics about this node.
753
+ </p>
754
+ <p>
755
+ See Rumai::IXP::Client#stat for details.
756
+ </p>
757
+
758
+ </div>
759
+
760
+
761
+
762
+
763
+ <div class="sourcecode">
764
+ <p class="source-link">
765
+ Source: <a href="javascript:toggleSource('M000001_source')" id="l_M000001_source">show</a>
766
+
767
+ | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/fs.rb#L48" target="_blank" class="github_url">on GitHub</a>
768
+
769
+ </p>
770
+ <div id="M000001_source" class="dyn-source">
771
+ <pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 48</span>
772
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stat</span>
773
+ <span class="ruby-constant">IXP_AGENT</span>.<span class="ruby-identifier">stat</span> <span class="ruby-ivar">@path</span>
774
+ <span class="ruby-keyword kw">end</span></pre>
775
+ </div>
776
+ </div>
777
+
778
+ </div>
779
+
780
+ <div class="method">
781
+ <div class="title" id="M000010">
782
+
783
+ <a name="M000010"></a><b>write</b>(content)
784
+
785
+ </div>
786
+
787
+ <div class="description">
788
+ <p>
789
+ Writes the given content to this node.
790
+ </p>
791
+
792
+ </div>
793
+
794
+
795
+
796
+
797
+ <div class="sourcecode">
798
+ <p class="source-link">
799
+ Source: <a href="javascript:toggleSource('M000010_source')" id="l_M000010_source">show</a>
800
+
801
+ | <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/fs.rb#L109" target="_blank" class="github_url">on GitHub</a>
802
+
803
+ </p>
804
+ <div id="M000010_source" class="dyn-source">
805
+ <pre><span class="ruby-comment cmt"># File lib/rumai/fs.rb, line 109</span>
806
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">write</span> <span class="ruby-identifier">content</span>
807
+ <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
+ <span class="ruby-keyword kw">end</span></pre>
809
+ </div>
810
+ </div>
811
+
812
+ </div>
813
+
814
+ </div>
815
+ </div>
816
+ </body>
817
+ </html>