ganapati 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. data/LICENSE +674 -0
  2. data/README.rdoc +86 -0
  3. data/Rakefile +32 -0
  4. data/bin/hcp +64 -0
  5. data/bin/hls +42 -0
  6. data/docs/classes/Ganapati.html +138 -0
  7. data/docs/classes/Ganapati/Client.html +666 -0
  8. data/docs/classes/Ganapati/FileUrl.html +253 -0
  9. data/docs/classes/Ganapati/HFile.html +271 -0
  10. data/docs/classes/ThriftHadoopFileSystem.html +169 -0
  11. data/docs/classes/ThriftHadoopFileSystem/Append_args.html +193 -0
  12. data/docs/classes/ThriftHadoopFileSystem/Append_result.html +198 -0
  13. data/docs/classes/ThriftHadoopFileSystem/BlockLocation.html +208 -0
  14. data/docs/classes/ThriftHadoopFileSystem/Chmod_args.html +198 -0
  15. data/docs/classes/ThriftHadoopFileSystem/Chmod_result.html +193 -0
  16. data/docs/classes/ThriftHadoopFileSystem/Chown_args.html +203 -0
  17. data/docs/classes/ThriftHadoopFileSystem/Chown_result.html +193 -0
  18. data/docs/classes/ThriftHadoopFileSystem/Client.html +1566 -0
  19. data/docs/classes/ThriftHadoopFileSystem/Close_args.html +193 -0
  20. data/docs/classes/ThriftHadoopFileSystem/Close_result.html +198 -0
  21. data/docs/classes/ThriftHadoopFileSystem/CreateFile_args.html +218 -0
  22. data/docs/classes/ThriftHadoopFileSystem/CreateFile_result.html +198 -0
  23. data/docs/classes/ThriftHadoopFileSystem/Create_args.html +193 -0
  24. data/docs/classes/ThriftHadoopFileSystem/Create_result.html +198 -0
  25. data/docs/classes/ThriftHadoopFileSystem/Exists_args.html +193 -0
  26. data/docs/classes/ThriftHadoopFileSystem/Exists_result.html +198 -0
  27. data/docs/classes/ThriftHadoopFileSystem/FileStatus.html +233 -0
  28. data/docs/classes/ThriftHadoopFileSystem/GetFileBlockLocations_args.html +203 -0
  29. data/docs/classes/ThriftHadoopFileSystem/GetFileBlockLocations_result.html +198 -0
  30. data/docs/classes/ThriftHadoopFileSystem/ListStatus_args.html +193 -0
  31. data/docs/classes/ThriftHadoopFileSystem/ListStatus_result.html +198 -0
  32. data/docs/classes/ThriftHadoopFileSystem/MalformedInputException.html +220 -0
  33. data/docs/classes/ThriftHadoopFileSystem/Mkdirs_args.html +193 -0
  34. data/docs/classes/ThriftHadoopFileSystem/Mkdirs_result.html +198 -0
  35. data/docs/classes/ThriftHadoopFileSystem/Open_args.html +193 -0
  36. data/docs/classes/ThriftHadoopFileSystem/Open_result.html +198 -0
  37. data/docs/classes/ThriftHadoopFileSystem/Pathname.html +193 -0
  38. data/docs/classes/ThriftHadoopFileSystem/Processor.html +710 -0
  39. data/docs/classes/ThriftHadoopFileSystem/Read_args.html +203 -0
  40. data/docs/classes/ThriftHadoopFileSystem/Read_result.html +198 -0
  41. data/docs/classes/ThriftHadoopFileSystem/Rename_args.html +198 -0
  42. data/docs/classes/ThriftHadoopFileSystem/Rename_result.html +198 -0
  43. data/docs/classes/ThriftHadoopFileSystem/Rm_args.html +198 -0
  44. data/docs/classes/ThriftHadoopFileSystem/Rm_result.html +198 -0
  45. data/docs/classes/ThriftHadoopFileSystem/SetInactivityTimeoutPeriod_args.html +199 -0
  46. data/docs/classes/ThriftHadoopFileSystem/SetInactivityTimeoutPeriod_result.html +188 -0
  47. data/docs/classes/ThriftHadoopFileSystem/SetReplication_args.html +198 -0
  48. data/docs/classes/ThriftHadoopFileSystem/SetReplication_result.html +193 -0
  49. data/docs/classes/ThriftHadoopFileSystem/Shutdown_args.html +193 -0
  50. data/docs/classes/ThriftHadoopFileSystem/Shutdown_result.html +188 -0
  51. data/docs/classes/ThriftHadoopFileSystem/Stat_args.html +193 -0
  52. data/docs/classes/ThriftHadoopFileSystem/Stat_result.html +198 -0
  53. data/docs/classes/ThriftHadoopFileSystem/ThriftHandle.html +193 -0
  54. data/docs/classes/ThriftHadoopFileSystem/ThriftIOException.html +220 -0
  55. data/docs/classes/ThriftHadoopFileSystem/Write_args.html +198 -0
  56. data/docs/classes/ThriftHadoopFileSystem/Write_result.html +198 -0
  57. data/docs/created.rid +1 -0
  58. data/docs/files/README_rdoc.html +209 -0
  59. data/docs/files/lib/ganapati/client_rb.html +101 -0
  60. data/docs/files/lib/ganapati/hfile_rb.html +101 -0
  61. data/docs/files/lib/ganapati/utils_rb.html +101 -0
  62. data/docs/files/lib/ganapati/version_rb.html +101 -0
  63. data/docs/files/lib/ganapati_rb.html +112 -0
  64. data/docs/files/lib/thrift/hadoopfs_constants_rb.html +117 -0
  65. data/docs/files/lib/thrift/hadoopfs_types_rb.html +110 -0
  66. data/docs/files/lib/thrift/thrift_hadoop_file_system_rb.html +118 -0
  67. data/docs/fr_class_index.html +77 -0
  68. data/docs/fr_file_index.html +35 -0
  69. data/docs/fr_method_index.html +222 -0
  70. data/docs/index.html +24 -0
  71. data/docs/rdoc-style.css +208 -0
  72. data/lib/ganapati.rb +1 -0
  73. data/lib/ganapati/client.rb +4 -2
  74. data/lib/ganapati/utils.rb +47 -0
  75. data/lib/ganapati/version.rb +3 -0
  76. metadata +79 -4
@@ -0,0 +1,253 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Ganapati::FileUrl</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Ganapati::FileUrl</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/ganapati/utils_rb.html">
59
+ lib/ganapati/utils.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Object
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+
82
+
83
+ </div>
84
+
85
+ <div id="method-list">
86
+ <h3 class="section-bar">Methods</h3>
87
+
88
+ <div class="name-list">
89
+ <a href="#M000169">hdfs?</a>&nbsp;&nbsp;
90
+ <a href="#M000170">local?</a>&nbsp;&nbsp;
91
+ <a href="#M000167">new</a>&nbsp;&nbsp;
92
+ <a href="#M000168">to_s</a>&nbsp;&nbsp;
93
+ </div>
94
+ </div>
95
+
96
+ </div>
97
+
98
+
99
+ <!-- if includes -->
100
+
101
+ <div id="section">
102
+
103
+
104
+
105
+
106
+
107
+ <div id="attribute-list">
108
+ <h3 class="section-bar">Attributes</h3>
109
+
110
+ <div class="name-list">
111
+ <table>
112
+ <tr class="top-aligned-row context-row">
113
+ <td class="context-item-name">host</td>
114
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
115
+ <td class="context-item-desc"></td>
116
+ </tr>
117
+ <tr class="top-aligned-row context-row">
118
+ <td class="context-item-name">path</td>
119
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
120
+ <td class="context-item-desc"></td>
121
+ </tr>
122
+ <tr class="top-aligned-row context-row">
123
+ <td class="context-item-name">port</td>
124
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
125
+ <td class="context-item-desc"></td>
126
+ </tr>
127
+ <tr class="top-aligned-row context-row">
128
+ <td class="context-item-name">scheme</td>
129
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
130
+ <td class="context-item-desc"></td>
131
+ </tr>
132
+ </table>
133
+ </div>
134
+ </div>
135
+
136
+
137
+
138
+ <!-- if method_list -->
139
+ <div id="methods">
140
+ <h3 class="section-bar">Public Class methods</h3>
141
+
142
+ <div id="method-M000167" class="method-detail">
143
+ <a name="M000167"></a>
144
+
145
+ <div class="method-heading">
146
+ <a href="#M000167" class="method-signature">
147
+ <span class="method-name">new</span><span class="method-args">(url, default_scheme='yourmom', default_host='localhost', default_port=8118)</span>
148
+ </a>
149
+ </div>
150
+
151
+ <div class="method-description">
152
+ <p><a class="source-toggle" href="#"
153
+ onclick="toggleCode('M000167-source');return false;">[Source]</a></p>
154
+ <div class="method-source-code" id="M000167-source">
155
+ <pre>
156
+ <span class="ruby-comment cmt"># File lib/ganapati/utils.rb, line 5</span>
157
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">default_scheme</span>=<span class="ruby-value str">'yourmom'</span>, <span class="ruby-identifier">default_host</span>=<span class="ruby-value str">'localhost'</span>, <span class="ruby-identifier">default_port</span>=<span class="ruby-value">8118</span>)
158
+ <span class="ruby-ivar">@url</span> = <span class="ruby-identifier">url</span>
159
+ <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@url</span>.<span class="ruby-identifier">start_with?</span> <span class="ruby-value str">'file://'</span> <span class="ruby-keyword kw">or</span> (<span class="ruby-keyword kw">not</span> <span class="ruby-ivar">@url</span>.<span class="ruby-identifier">start_with?</span> <span class="ruby-value str">'hdfs://'</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">default_scheme</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:file</span>)
160
+ <span class="ruby-identifier">parse_file_scheme</span>
161
+ <span class="ruby-keyword kw">else</span>
162
+ <span class="ruby-identifier">parse_hdfs_scheme</span>(<span class="ruby-identifier">default_host</span>, <span class="ruby-identifier">default_port</span>)
163
+ <span class="ruby-keyword kw">end</span>
164
+ <span class="ruby-keyword kw">end</span>
165
+ </pre>
166
+ </div>
167
+ </div>
168
+ </div>
169
+
170
+ <h3 class="section-bar">Public Instance methods</h3>
171
+
172
+ <div id="method-M000169" class="method-detail">
173
+ <a name="M000169"></a>
174
+
175
+ <div class="method-heading">
176
+ <a href="#M000169" class="method-signature">
177
+ <span class="method-name">hdfs?</span><span class="method-args">()</span>
178
+ </a>
179
+ </div>
180
+
181
+ <div class="method-description">
182
+ <p><a class="source-toggle" href="#"
183
+ onclick="toggleCode('M000169-source');return false;">[Source]</a></p>
184
+ <div class="method-source-code" id="M000169-source">
185
+ <pre>
186
+ <span class="ruby-comment cmt"># File lib/ganapati/utils.rb, line 18</span>
187
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">hdfs?</span>
188
+ <span class="ruby-ivar">@scheme</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:hdfs</span>
189
+ <span class="ruby-keyword kw">end</span>
190
+ </pre>
191
+ </div>
192
+ </div>
193
+ </div>
194
+
195
+ <div id="method-M000170" class="method-detail">
196
+ <a name="M000170"></a>
197
+
198
+ <div class="method-heading">
199
+ <a href="#M000170" class="method-signature">
200
+ <span class="method-name">local?</span><span class="method-args">()</span>
201
+ </a>
202
+ </div>
203
+
204
+ <div class="method-description">
205
+ <p><a class="source-toggle" href="#"
206
+ onclick="toggleCode('M000170-source');return false;">[Source]</a></p>
207
+ <div class="method-source-code" id="M000170-source">
208
+ <pre>
209
+ <span class="ruby-comment cmt"># File lib/ganapati/utils.rb, line 22</span>
210
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">local?</span>
211
+ <span class="ruby-ivar">@scheme</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:file</span>
212
+ <span class="ruby-keyword kw">end</span>
213
+ </pre>
214
+ </div>
215
+ </div>
216
+ </div>
217
+
218
+ <div id="method-M000168" class="method-detail">
219
+ <a name="M000168"></a>
220
+
221
+ <div class="method-heading">
222
+ <a href="#M000168" class="method-signature">
223
+ <span class="method-name">to_s</span><span class="method-args">()</span>
224
+ </a>
225
+ </div>
226
+
227
+ <div class="method-description">
228
+ <p><a class="source-toggle" href="#"
229
+ onclick="toggleCode('M000168-source');return false;">[Source]</a></p>
230
+ <div class="method-source-code" id="M000168-source">
231
+ <pre>
232
+ <span class="ruby-comment cmt"># File lib/ganapati/utils.rb, line 14</span>
233
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
234
+ <span class="ruby-ivar">@url</span>
235
+ <span class="ruby-keyword kw">end</span>
236
+ </pre>
237
+ </div>
238
+ </div>
239
+ </div>
240
+
241
+
242
+ </div>
243
+
244
+
245
+ </div>
246
+
247
+
248
+ <div id="validator-badges">
249
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
250
+ </div>
251
+
252
+ </body>
253
+ </html>
@@ -0,0 +1,271 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Ganapati::HFile</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Ganapati::HFile</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/ganapati/hfile_rb.html">
59
+ lib/ganapati/hfile.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Object
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+
82
+
83
+ </div>
84
+
85
+ <div id="method-list">
86
+ <h3 class="section-bar">Methods</h3>
87
+
88
+ <div class="name-list">
89
+ <a href="#M000194">close</a>&nbsp;&nbsp;
90
+ <a href="#M000196">length</a>&nbsp;&nbsp;
91
+ <a href="#M000191">new</a>&nbsp;&nbsp;
92
+ <a href="#M000193">read</a>&nbsp;&nbsp;
93
+ <a href="#M000195">stat</a>&nbsp;&nbsp;
94
+ <a href="#M000192">write</a>&nbsp;&nbsp;
95
+ </div>
96
+ </div>
97
+
98
+ </div>
99
+
100
+
101
+ <!-- if includes -->
102
+
103
+ <div id="section">
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+ <!-- if method_list -->
113
+ <div id="methods">
114
+ <h3 class="section-bar">Public Class methods</h3>
115
+
116
+ <div id="method-M000191" class="method-detail">
117
+ <a name="M000191"></a>
118
+
119
+ <div class="method-heading">
120
+ <a href="#M000191" class="method-signature">
121
+ <span class="method-name">new</span><span class="method-args">(client, handle, pathname)</span>
122
+ </a>
123
+ </div>
124
+
125
+ <div class="method-description">
126
+ <p><a class="source-toggle" href="#"
127
+ onclick="toggleCode('M000191-source');return false;">[Source]</a></p>
128
+ <div class="method-source-code" id="M000191-source">
129
+ <pre>
130
+ <span class="ruby-comment cmt"># File lib/ganapati/hfile.rb, line 4</span>
131
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">client</span>, <span class="ruby-identifier">handle</span>, <span class="ruby-identifier">pathname</span>)
132
+ <span class="ruby-ivar">@client</span> = <span class="ruby-identifier">client</span>
133
+ <span class="ruby-ivar">@handle</span> = <span class="ruby-identifier">handle</span>
134
+ <span class="ruby-ivar">@pathname</span> = <span class="ruby-identifier">pathname</span>
135
+ <span class="ruby-keyword kw">end</span>
136
+ </pre>
137
+ </div>
138
+ </div>
139
+ </div>
140
+
141
+ <h3 class="section-bar">Public Instance methods</h3>
142
+
143
+ <div id="method-M000194" class="method-detail">
144
+ <a name="M000194"></a>
145
+
146
+ <div class="method-heading">
147
+ <a href="#M000194" class="method-signature">
148
+ <span class="method-name">close</span><span class="method-args">()</span>
149
+ </a>
150
+ </div>
151
+
152
+ <div class="method-description">
153
+ <p><a class="source-toggle" href="#"
154
+ onclick="toggleCode('M000194-source');return false;">[Source]</a></p>
155
+ <div class="method-source-code" id="M000194-source">
156
+ <pre>
157
+ <span class="ruby-comment cmt"># File lib/ganapati/hfile.rb, line 19</span>
158
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
159
+ <span class="ruby-identifier">call</span> <span class="ruby-identifier">:close</span>
160
+ <span class="ruby-keyword kw">end</span>
161
+ </pre>
162
+ </div>
163
+ </div>
164
+ </div>
165
+
166
+ <div id="method-M000196" class="method-detail">
167
+ <a name="M000196"></a>
168
+
169
+ <div class="method-heading">
170
+ <a href="#M000196" class="method-signature">
171
+ <span class="method-name">length</span><span class="method-args">()</span>
172
+ </a>
173
+ </div>
174
+
175
+ <div class="method-description">
176
+ <p><a class="source-toggle" href="#"
177
+ onclick="toggleCode('M000196-source');return false;">[Source]</a></p>
178
+ <div class="method-source-code" id="M000196-source">
179
+ <pre>
180
+ <span class="ruby-comment cmt"># File lib/ganapati/hfile.rb, line 27</span>
181
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">length</span>
182
+ <span class="ruby-identifier">stat</span>.<span class="ruby-identifier">length</span>
183
+ <span class="ruby-keyword kw">end</span>
184
+ </pre>
185
+ </div>
186
+ </div>
187
+ </div>
188
+
189
+ <div id="method-M000193" class="method-detail">
190
+ <a name="M000193"></a>
191
+
192
+ <div class="method-heading">
193
+ <a href="#M000193" class="method-signature">
194
+ <span class="method-name">read</span><span class="method-args">(offset=0, size=nil)</span>
195
+ </a>
196
+ </div>
197
+
198
+ <div class="method-description">
199
+ <p><a class="source-toggle" href="#"
200
+ onclick="toggleCode('M000193-source');return false;">[Source]</a></p>
201
+ <div class="method-source-code" id="M000193-source">
202
+ <pre>
203
+ <span class="ruby-comment cmt"># File lib/ganapati/hfile.rb, line 14</span>
204
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">read</span>(<span class="ruby-identifier">offset</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">size</span>=<span class="ruby-keyword kw">nil</span>)
205
+ <span class="ruby-identifier">size</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">stat</span>.<span class="ruby-identifier">length</span>
206
+ <span class="ruby-identifier">call</span> <span class="ruby-identifier">:read</span>, <span class="ruby-identifier">offset</span>, <span class="ruby-identifier">size</span>
207
+ <span class="ruby-keyword kw">end</span>
208
+ </pre>
209
+ </div>
210
+ </div>
211
+ </div>
212
+
213
+ <div id="method-M000195" class="method-detail">
214
+ <a name="M000195"></a>
215
+
216
+ <div class="method-heading">
217
+ <a href="#M000195" class="method-signature">
218
+ <span class="method-name">stat</span><span class="method-args">()</span>
219
+ </a>
220
+ </div>
221
+
222
+ <div class="method-description">
223
+ <p><a class="source-toggle" href="#"
224
+ onclick="toggleCode('M000195-source');return false;">[Source]</a></p>
225
+ <div class="method-source-code" id="M000195-source">
226
+ <pre>
227
+ <span class="ruby-comment cmt"># File lib/ganapati/hfile.rb, line 23</span>
228
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stat</span>
229
+ <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">stat</span>(<span class="ruby-ivar">@pathname</span>)
230
+ <span class="ruby-keyword kw">end</span>
231
+ </pre>
232
+ </div>
233
+ </div>
234
+ </div>
235
+
236
+ <div id="method-M000192" class="method-detail">
237
+ <a name="M000192"></a>
238
+
239
+ <div class="method-heading">
240
+ <a href="#M000192" class="method-signature">
241
+ <span class="method-name">write</span><span class="method-args">(data)</span>
242
+ </a>
243
+ </div>
244
+
245
+ <div class="method-description">
246
+ <p><a class="source-toggle" href="#"
247
+ onclick="toggleCode('M000192-source');return false;">[Source]</a></p>
248
+ <div class="method-source-code" id="M000192-source">
249
+ <pre>
250
+ <span class="ruby-comment cmt"># File lib/ganapati/hfile.rb, line 10</span>
251
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">write</span>(<span class="ruby-identifier">data</span>)
252
+ <span class="ruby-identifier">call</span> <span class="ruby-identifier">:write</span>, <span class="ruby-identifier">data</span>
253
+ <span class="ruby-keyword kw">end</span>
254
+ </pre>
255
+ </div>
256
+ </div>
257
+ </div>
258
+
259
+
260
+ </div>
261
+
262
+
263
+ </div>
264
+
265
+
266
+ <div id="validator-badges">
267
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
268
+ </div>
269
+
270
+ </body>
271
+ </html>