io_shuten 0.1.0.dev7 → 0.1.1.dev1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. data/Gemfile +8 -14
  2. data/Gemfile.lock +42 -58
  3. data/README.md +148 -24
  4. data/Rakefile +0 -29
  5. data/benchmark/viiite-template-redis.rb +75 -0
  6. data/benchmark/viiite-template.rb +24 -31
  7. data/benchmarks.sh +7 -46
  8. data/benchmarks/redis.kvc.rb +8 -0
  9. data/benchmarks/redis.kvs.rb +8 -0
  10. data/io_shuten.gemspec +30 -92
  11. data/lib/io_shuten/redis.rb +1 -1
  12. data/lib/io_shuten/stores/redis/key_value/collection.rb +15 -3
  13. data/lib/io_shuten/version.rb +1 -1
  14. data/spec/lib/redis_spec.rb +5 -5
  15. data/spec/spec_helper.rb +1 -3
  16. metadata +109 -131
  17. data/.rvmrc +0 -71
  18. data/.simplecov +0 -16
  19. data/.yardopts +0 -3
  20. data/doc/IO_3A_3ABuffer.html +0 -198
  21. data/doc/IO_shuten.html +0 -126
  22. data/doc/IO_shuten/Base.html +0 -1062
  23. data/doc/IO_shuten/Base/FileAccessError.html +0 -129
  24. data/doc/IO_shuten/Base/FileNotFoundError.html +0 -129
  25. data/doc/IO_shuten/Base/NodeNameError.html +0 -129
  26. data/doc/IO_shuten/Base/NodeNotFoundError.html +0 -129
  27. data/doc/IO_shuten/Base/NotYetImplemented.html +0 -129
  28. data/doc/IO_shuten/Buffer.html +0 -1822
  29. data/doc/IO_shuten/Errors.html +0 -119
  30. data/doc/IO_shuten/Errors/FileAccessError.html +0 -129
  31. data/doc/IO_shuten/Errors/FileNotFoundError.html +0 -129
  32. data/doc/IO_shuten/Errors/NodeExistsError.html +0 -129
  33. data/doc/IO_shuten/Errors/NodeNameError.html +0 -129
  34. data/doc/IO_shuten/Errors/NodeNameExistsError.html +0 -129
  35. data/doc/IO_shuten/Errors/NodeNotFoundError.html +0 -129
  36. data/doc/IO_shuten/Errors/NotYetImplemented.html +0 -129
  37. data/doc/IO_shuten/Memory.html +0 -1778
  38. data/doc/IO_shuten/Mongo.html +0 -166
  39. data/doc/IO_shuten/Redis.html +0 -868
  40. data/doc/IO_shuten/Stores.html +0 -121
  41. data/doc/IO_shuten/Stores/BaseContainer.html +0 -377
  42. data/doc/IO_shuten/Stores/Mongo.html +0 -121
  43. data/doc/IO_shuten/Stores/Mongo/Collection.html +0 -109
  44. data/doc/IO_shuten/Stores/Mongo/GridFS.html +0 -109
  45. data/doc/IO_shuten/Stores/Redis.html +0 -123
  46. data/doc/IO_shuten/Stores/Redis/Container.html +0 -778
  47. data/doc/IO_shuten/Stores/Redis/KeyValue.html +0 -279
  48. data/doc/IO_shuten/Stores/Redis/KeyValue/Collection.html +0 -504
  49. data/doc/IO_shuten/Stores/Redis/KeyValue/Single.html +0 -438
  50. data/doc/IO_shuten/Stores/Redis/PubSub.html +0 -245
  51. data/doc/IO_shuten/Zmq.html +0 -166
  52. data/doc/_index.html +0 -375
  53. data/doc/class_list.html +0 -47
  54. data/doc/css/blame.css +0 -11
  55. data/doc/css/common.css +0 -1
  56. data/doc/css/full_list.css +0 -55
  57. data/doc/css/style.css +0 -322
  58. data/doc/file.README.html +0 -158
  59. data/doc/file_list.html +0 -49
  60. data/doc/frames.html +0 -13
  61. data/doc/index.html +0 -158
  62. data/doc/js/app.js +0 -205
  63. data/doc/js/full_list.js +0 -167
  64. data/doc/js/jquery.js +0 -16
  65. data/doc/method_list.html +0 -390
  66. data/doc/top-level-namespace.html +0 -105
@@ -1,1778 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Class: IO_shuten::Memory
8
-
9
- &mdash; IO::shuten 【五百::終点】
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
-
17
- <link rel="stylesheet" href="../css/blame.css" type="text/css" media="screen" charset="utf-8" />
18
-
19
- <script type="text/javascript" charset="utf-8">
20
- relpath = '..';
21
- if (relpath != '') relpath += '/';
22
- </script>
23
-
24
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
25
-
26
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
27
-
28
-
29
- </head>
30
- <body>
31
- <script type="text/javascript" charset="utf-8">
32
- if (window.top.frames.main) document.body.className = 'frames';
33
- </script>
34
-
35
- <div id="header">
36
- <div id="menu">
37
-
38
- <a href="../_index.html">Index (M)</a> &raquo;
39
- <span class='title'><span class='object_link'><a href="../IO_shuten.html" title="IO_shuten (module)">IO_shuten</a></span></span>
40
- &raquo;
41
- <span class="title">Memory</span>
42
-
43
-
44
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
45
- </div>
46
-
47
- <div id="search">
48
-
49
- <a id="class_list_link" href="#">Class List</a>
50
-
51
- <a id="method_list_link" href="#">Method List</a>
52
-
53
- <a id="file_list_link" href="#">File List</a>
54
-
55
- </div>
56
- <div class="clear"></div>
57
- </div>
58
-
59
- <iframe id="search_frame"></iframe>
60
-
61
- <div id="content"><h1>Class: IO_shuten::Memory
62
-
63
-
64
-
65
- </h1>
66
-
67
- <dl class="box">
68
-
69
- <dt class="r1">Inherits:</dt>
70
- <dd class="r1">
71
- <span class="inheritName"><span class='object_link'><a href="Base.html" title="IO_shuten::Base (class)">Base</a></span></span>
72
-
73
- <ul class="fullTree">
74
- <li>Object</li>
75
-
76
- <li class="next"><span class='object_link'><a href="Base.html" title="IO_shuten::Base (class)">Base</a></span></li>
77
-
78
- <li class="next">IO_shuten::Memory</li>
79
-
80
- </ul>
81
- <a href="#" class="inheritanceTree">show all</a>
82
-
83
- </dd>
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
- <dt class="r2 last">Defined in:</dt>
94
- <dd class="r2 last">lib/io_shuten/memory.rb</dd>
95
-
96
- </dl>
97
- <div class="clear"></div>
98
-
99
- <h2>Overview</h2><div class="docstring">
100
- <div class="discussion">
101
-
102
- <p>Implementation of the Memory storage</p>
103
-
104
-
105
- </div>
106
- </div>
107
- <div class="tags">
108
-
109
-
110
- </div>
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
- <h2>Instance Attribute Summary</h2>
122
-
123
- <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Base.html" title="IO_shuten::Base (class)">Base</a></span></h3>
124
- <p class="inherited"><span class='object_link'><a href="Base.html#container-instance_method" title="IO_shuten::Base#container (method)">container</a></span>, <span class='object_link'><a href="Base.html#node_name-instance_method" title="IO_shuten::Base#node_name (method)">node_name</a></span></p>
125
-
126
-
127
-
128
- <h2>
129
- Class Method Summary
130
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
131
- </h2>
132
-
133
- <ul class="summary">
134
-
135
- <li class="public ">
136
- <span class="summary_signature">
137
-
138
- <a href="#load_instances-class_method" title="load_instances (class method)">+ (Boolean) <strong>load_instances</strong>(source) </a>
139
-
140
-
141
-
142
- </span>
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
- <span class="summary_desc"><div class='inline'>
152
- <p>Loads instances from disk.</p>
153
- </div></span>
154
-
155
- </li>
156
-
157
-
158
- <li class="public ">
159
- <span class="summary_signature">
160
-
161
- <a href="#open-class_method" title="open (class method)">+ (Memory) <strong>open</strong>(node_name, *args) </a>
162
-
163
-
164
-
165
- (also: open_node)
166
-
167
- </span>
168
-
169
-
170
-
171
-
172
-
173
-
174
-
175
-
176
- <span class="summary_desc"><div class='inline'>
177
- <p>Itself on success.</p>
178
- </div></span>
179
-
180
- </li>
181
-
182
-
183
- <li class="public ">
184
- <span class="summary_signature">
185
-
186
- <a href="#save_instances-class_method" title="save_instances (class method)">+ (Boolean) <strong>save_instances</strong> </a>
187
-
188
-
189
-
190
- </span>
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
-
199
- <span class="summary_desc"><div class='inline'>
200
- <p>Saves all instances to disk.</p>
201
- </div></span>
202
-
203
- </li>
204
-
205
-
206
- </ul>
207
-
208
- <h2>
209
- Instance Method Summary
210
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
211
- </h2>
212
-
213
- <ul class="summary">
214
-
215
- <li class="public ">
216
- <span class="summary_signature">
217
-
218
- <a href="#file_exists%3F-instance_method" title="#file_exists? (instance method)">- (Boolean) <strong>file_exists?</strong>(file_name = nil) </a>
219
-
220
-
221
-
222
- (also: #file_exist?)
223
-
224
- </span>
225
-
226
-
227
-
228
-
229
-
230
-
231
-
232
-
233
- <span class="summary_desc"><div class='inline'></div></span>
234
-
235
- </li>
236
-
237
-
238
- <li class="public ">
239
- <span class="summary_signature">
240
-
241
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (Memory) <strong>initialize</strong>(node_name = nil) </a>
242
-
243
-
244
-
245
- </span>
246
-
247
- <span class="note title constructor">constructor</span>
248
-
249
-
250
-
251
-
252
-
253
-
254
-
255
-
256
- <span class="summary_desc"><div class='inline'>
257
- <p>Creates a new Memory node and stores it in the pool.</p>
258
- </div></span>
259
-
260
- </li>
261
-
262
-
263
- <li class="public ">
264
- <span class="summary_signature">
265
-
266
- <a href="#load_from_file-instance_method" title="#load_from_file (instance method)">- (Memory) <strong>load_from_file</strong>(file_name = nil) </a>
267
-
268
-
269
-
270
- </span>
271
-
272
-
273
-
274
-
275
-
276
-
277
-
278
-
279
- <span class="summary_desc"><div class='inline'>
280
- <p>Itself on success.</p>
281
- </div></span>
282
-
283
- </li>
284
-
285
-
286
- <li class="public ">
287
- <span class="summary_signature">
288
-
289
- <a href="#save_to_file-instance_method" title="#save_to_file (instance method)">- (Memory) <strong>save_to_file</strong>(file_name = nil) </a>
290
-
291
-
292
-
293
- </span>
294
-
295
-
296
-
297
-
298
-
299
-
300
-
301
-
302
- <span class="summary_desc"><div class='inline'>
303
- <p>Itself on success.</p>
304
- </div></span>
305
-
306
- </li>
307
-
308
-
309
- </ul>
310
-
311
-
312
-
313
-
314
-
315
-
316
-
317
-
318
-
319
-
320
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Base.html" title="IO_shuten::Base (class)">Base</a></span></h3>
321
- <p class="inherited"><span class='object_link'><a href="Base.html#delete_instance-class_method" title="IO_shuten::Base.delete_instance (method)">delete_instance</a></span>, <span class='object_link'><a href="Base.html#instance_exists%3F-class_method" title="IO_shuten::Base.instance_exists? (method)">instance_exists?</a></span>, <span class='object_link'><a href="Base.html#instances-class_method" title="IO_shuten::Base.instances (method)">instances</a></span>, <span class='object_link'><a href="Base.html#purge_instances%21-class_method" title="IO_shuten::Base.purge_instances! (method)">purge_instances!</a></span></p>
322
- <div id="constructor_details" class="method_details_list">
323
- <h2>Constructor Details</h2>
324
-
325
- <div class="method_details first">
326
- <p class="signature first" id="initialize-instance_method">
327
-
328
- - (<tt><span class='object_link'><a href="" title="IO_shuten::Memory (class)">Memory</a></span></tt>) <strong>initialize</strong>(node_name = nil)
329
-
330
-
331
-
332
- </p><div class="docstring">
333
- <div class="discussion">
334
-
335
- <p>Creates a new Memory node and stores it in the pool</p>
336
-
337
-
338
- </div>
339
- </div>
340
- <div class="tags">
341
- <h3>Parameters:</h3>
342
- <ul class="param">
343
-
344
- <li>
345
-
346
- <span class='name'>node_name</span>
347
-
348
-
349
- <span class='type'>(<tt>String</tt>)</span>
350
-
351
-
352
- <em class="default">(defaults to: <tt>nil</tt>)</em>
353
-
354
-
355
- &mdash;
356
- <div class='inline'>
357
- <p>Name of the node node (container)</p>
358
- </div>
359
-
360
- </li>
361
-
362
- <li>
363
-
364
- <span class='name'>node_name</span>
365
-
366
-
367
- <span class='type'>(<tt>Symbol</tt>)</span>
368
-
369
-
370
- <em class="default">(defaults to: <tt>nil</tt>)</em>
371
-
372
-
373
- &mdash;
374
- <div class='inline'>
375
- <p>also a symbol is allowed</p>
376
- </div>
377
-
378
- </li>
379
-
380
- </ul>
381
-
382
- <h3>Raises:</h3>
383
- <ul class="raise">
384
-
385
- <li>
386
-
387
-
388
- <span class='type'>(<tt>NodeNameError</tt>)</span>
389
-
390
-
391
-
392
- </li>
393
-
394
- </ul>
395
-
396
- </div><table class="source_code blame">
397
- <caption><span class="info file"># File 'lib/io_shuten/memory.rb', line 13</span></caption>
398
- <tr>
399
- <td>
400
- <table>
401
-
402
-
403
-
404
- <tr>
405
-
406
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
407
-
408
- <td class="date">2012-01-23 02:28:15</td>
409
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
410
- <td class="lines">13</td>
411
- <td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_node_name'>node_name</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span></pre></td>
412
- </tr>
413
-
414
-
415
- <tr>
416
-
417
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
418
-
419
- <td class="date">2012-01-23 02:28:15</td>
420
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
421
- <td class="lines">14</td>
422
- <td><pre class="code"> <span class='kw'>if</span> <span class='lbracket'>[</span><span class='const'>String</span><span class='comma'>,</span> <span class='const'>Symbol</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_node_name'>node_name</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='rparen'>)</span></pre></td>
423
- </tr>
424
-
425
-
426
- <tr>
427
-
428
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
429
-
430
- <td class="date">2012-01-23 02:28:15</td>
431
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
432
- <td class="lines">15</td>
433
- <td><pre class="code"> <span class='kw'>unless</span> <span class='const'>Memory</span><span class='period'>.</span><span class='id identifier rubyid_instance_exists?'>instance_exists?</span> <span class='id identifier rubyid_node_name'>node_name</span></pre></td>
434
- </tr>
435
-
436
-
437
- <tr>
438
-
439
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
440
-
441
- <td class="date">2012-01-25 22:35:33</td>
442
- <td class="commit"><a title="Add IO_shuten::Buffer (using IO::Buffer cext) as further interface">1c2e01eb</a><td>
443
- <td class="lines">16</td>
444
- <td><pre class="code"> <span class='ivar'>@node_name</span> <span class='op'>=</span> <span class='id identifier rubyid_node_name'>node_name</span></pre></td>
445
- </tr>
446
-
447
-
448
- <tr>
449
-
450
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
451
-
452
- <td class="date">2012-01-23 02:28:15</td>
453
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
454
- <td class="lines">17</td>
455
- <td><pre class="code"> <span class='ivar'>@container</span> <span class='op'>=</span> <span class='op'>::</span><span class='const'>StringIO</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>w+</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span></pre></td>
456
- </tr>
457
-
458
-
459
- <tr>
460
-
461
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
462
-
463
- <td class="date">2012-01-23 02:28:15</td>
464
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
465
- <td class="lines">18</td>
466
- <td><pre class="code"></pre></td>
467
- </tr>
468
-
469
-
470
- <tr>
471
-
472
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
473
-
474
- <td class="date">2012-01-23 02:28:15</td>
475
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
476
- <td class="lines">19</td>
477
- <td><pre class="code"> <span class='cvar'>@@instances</span> <span class='op'>&lt;&lt;</span> <span class='kw'>self</span> <span class='kw'>unless</span> <span class='cvar'>@@instances</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span></pre></td>
478
- </tr>
479
-
480
-
481
- <tr>
482
-
483
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
484
-
485
- <td class="date">2012-01-23 02:28:15</td>
486
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
487
- <td class="lines">20</td>
488
- <td><pre class="code"> <span class='kw'>else</span></pre></td>
489
- </tr>
490
-
491
-
492
- <tr>
493
-
494
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
495
-
496
- <td class="date">2012-01-23 02:28:15</td>
497
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
498
- <td class="lines">21</td>
499
- <td><pre class="code"> <span class='id identifier rubyid_raise'>raise</span> <span class='const'>Errors</span><span class='op'>::</span><span class='const'>NodeExistsError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Node already in pool, replacement is not allowed.</span><span class='tstring_end'>&quot;</span></span></pre></td>
500
- </tr>
501
-
502
-
503
- <tr>
504
-
505
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
506
-
507
- <td class="date">2012-01-23 02:28:15</td>
508
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
509
- <td class="lines">22</td>
510
- <td><pre class="code"> <span class='kw'>end</span></pre></td>
511
- </tr>
512
-
513
-
514
- <tr>
515
-
516
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
517
-
518
- <td class="date">2012-01-23 02:28:15</td>
519
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
520
- <td class="lines">23</td>
521
- <td><pre class="code"> <span class='kw'>else</span></pre></td>
522
- </tr>
523
-
524
-
525
- <tr>
526
-
527
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
528
-
529
- <td class="date">2012-01-23 02:28:15</td>
530
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
531
- <td class="lines">24</td>
532
- <td><pre class="code"> <span class='id identifier rubyid_raise'>raise</span> <span class='const'>Errors</span><span class='op'>::</span><span class='const'>NodeNameError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Name must be kind of String or Symbol and can't be nil.</span><span class='tstring_end'>&quot;</span></span></pre></td>
533
- </tr>
534
-
535
-
536
- <tr>
537
-
538
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
539
-
540
- <td class="date">2012-01-23 02:28:15</td>
541
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
542
- <td class="lines">25</td>
543
- <td><pre class="code"> <span class='kw'>end</span></pre></td>
544
- </tr>
545
-
546
-
547
- <tr>
548
-
549
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
550
-
551
- <td class="date">2012-01-23 02:28:15</td>
552
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
553
- <td class="lines">26</td>
554
- <td><pre class="code"><span class='kw'>end</span></pre></td>
555
- </tr>
556
-
557
- </table>
558
- </td>
559
- <td>
560
- </tr>
561
- </table>
562
- </div>
563
-
564
- </div>
565
- <div id="method_missing_details" class="method_details_list">
566
- <h2>Dynamic Method Handling</h2>
567
- <p class="notice super">
568
- This class handles dynamic methods through the <tt>method_missing</tt> method
569
-
570
- in the class <span class='object_link'><a href="Base.html#method_missing-instance_method" title="IO_shuten::Base#method_missing (method)">IO_shuten::Base</a></span>
571
-
572
- </p>
573
-
574
- </div>
575
-
576
-
577
- <div id="class_method_details" class="method_details_list">
578
- <h2>Class Method Details</h2>
579
-
580
-
581
- <div class="method_details first">
582
- <p class="signature first" id="load_instances-class_method">
583
-
584
- + (<tt>Boolean</tt>) <strong>load_instances</strong>(source)
585
-
586
-
587
-
588
- </p><div class="docstring">
589
- <div class="discussion">
590
-
591
- <p>Loads instances from disk</p>
592
-
593
-
594
- </div>
595
- </div>
596
- <div class="tags">
597
- <h3>Parameters:</h3>
598
- <ul class="param">
599
-
600
- <li>
601
-
602
- <span class='name'>Directory</span>
603
-
604
-
605
- <span class='type'>(<tt>String</tt>)</span>
606
-
607
-
608
-
609
- &mdash;
610
- <div class='inline'>
611
- <p>name</p>
612
- </div>
613
-
614
- </li>
615
-
616
- <li>
617
-
618
- <span class='name'>File</span>
619
-
620
-
621
- <span class='type'>(<tt>Array</tt>)</span>
622
-
623
-
624
-
625
- &mdash;
626
- <div class='inline'>
627
- <p>names (HINT: you can provide a Dir.glob)</p>
628
- </div>
629
-
630
- </li>
631
-
632
- </ul>
633
-
634
- <h3>Returns:</h3>
635
- <ul class="return">
636
-
637
- <li>
638
-
639
-
640
- <span class='type'>(<tt>Boolean</tt>)</span>
641
-
642
-
643
-
644
- </li>
645
-
646
- </ul>
647
-
648
- </div><table class="source_code blame">
649
- <caption><span class="info file"># File 'lib/io_shuten/memory.rb', line 37</span></caption>
650
- <tr>
651
- <td>
652
- <table>
653
-
654
-
655
-
656
- <tr>
657
-
658
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
659
-
660
- <td class="date">2012-01-23 02:28:15</td>
661
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
662
- <td class="lines">37</td>
663
- <td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_load_instances'>load_instances</span> <span class='id identifier rubyid_source'>source</span></pre></td>
664
- </tr>
665
-
666
-
667
- <tr>
668
-
669
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
670
-
671
- <td class="date">2012-01-23 02:28:15</td>
672
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
673
- <td class="lines">38</td>
674
- <td><pre class="code"> <span class='kw'>case</span> <span class='id identifier rubyid_source'>source</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span></pre></td>
675
- </tr>
676
-
677
-
678
- <tr>
679
-
680
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
681
-
682
- <td class="date">2012-01-23 02:28:15</td>
683
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
684
- <td class="lines">39</td>
685
- <td><pre class="code"> <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Array</span><span class='tstring_end'>&quot;</span></span></pre></td>
686
- </tr>
687
-
688
-
689
- <tr>
690
-
691
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
692
-
693
- <td class="date">2012-01-23 02:28:15</td>
694
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
695
- <td class="lines">40</td>
696
- <td><pre class="code"> <span class='id identifier rubyid_source'>source</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_file_name'>file_name</span><span class='op'>|</span></pre></td>
697
- </tr>
698
-
699
-
700
- <tr>
701
-
702
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
703
-
704
- <td class="date">2012-01-23 02:28:15</td>
705
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
706
- <td class="lines">41</td>
707
- <td><pre class="code"> <span class='id identifier rubyid_node'>node</span> <span class='op'>=</span> <span class='const'>Memory</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_file_name'>file_name</span><span class='rparen'>)</span></pre></td>
708
- </tr>
709
-
710
-
711
- <tr>
712
-
713
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
714
-
715
- <td class="date">2012-01-23 02:28:15</td>
716
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
717
- <td class="lines">42</td>
718
- <td><pre class="code"> <span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='id identifier rubyid_file_name'>file_name</span><span class='rparen'>)</span></pre></td>
719
- </tr>
720
-
721
-
722
- <tr>
723
-
724
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
725
-
726
- <td class="date">2012-01-23 02:28:15</td>
727
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
728
- <td class="lines">43</td>
729
- <td><pre class="code"> <span class='kw'>end</span></pre></td>
730
- </tr>
731
-
732
-
733
- <tr>
734
-
735
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
736
-
737
- <td class="date">2012-01-23 02:28:15</td>
738
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
739
- <td class="lines">44</td>
740
- <td><pre class="code"> <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>String</span><span class='tstring_end'>&quot;</span></span></pre></td>
741
- </tr>
742
-
743
-
744
- <tr>
745
-
746
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
747
-
748
- <td class="date">2012-01-23 02:28:15</td>
749
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
750
- <td class="lines">45</td>
751
- <td><pre class="code"> <span class='kw'>if</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exists?'>exists?</span><span class='lparen'>(</span><span class='id identifier rubyid_source'>source</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_directory?'>directory?</span><span class='lparen'>(</span><span class='id identifier rubyid_source'>source</span><span class='rparen'>)</span></pre></td>
752
- </tr>
753
-
754
-
755
- <tr>
756
-
757
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
758
-
759
- <td class="date">2012-01-23 02:28:15</td>
760
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
761
- <td class="lines">46</td>
762
- <td><pre class="code"> <span class='const'>Dir</span><span class='lbracket'>[</span><span class='id identifier rubyid_source'>source</span><span class='op'>+</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/**/*</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_file_name'>file_name</span><span class='op'>|</span></pre></td>
763
- </tr>
764
-
765
-
766
- <tr>
767
-
768
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
769
-
770
- <td class="date">2012-01-23 02:28:15</td>
771
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
772
- <td class="lines">47</td>
773
- <td><pre class="code"> <span class='id identifier rubyid_node'>node</span> <span class='op'>=</span> <span class='const'>Memory</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_file_name'>file_name</span><span class='rparen'>)</span></pre></td>
774
- </tr>
775
-
776
-
777
- <tr>
778
-
779
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
780
-
781
- <td class="date">2012-01-23 02:28:15</td>
782
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
783
- <td class="lines">48</td>
784
- <td><pre class="code"> <span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='id identifier rubyid_file_name'>file_name</span><span class='rparen'>)</span></pre></td>
785
- </tr>
786
-
787
-
788
- <tr>
789
-
790
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
791
-
792
- <td class="date">2012-01-23 02:28:15</td>
793
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
794
- <td class="lines">49</td>
795
- <td><pre class="code"> <span class='kw'>end</span></pre></td>
796
- </tr>
797
-
798
-
799
- <tr>
800
-
801
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
802
-
803
- <td class="date">2012-01-23 02:28:15</td>
804
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
805
- <td class="lines">50</td>
806
- <td><pre class="code"> <span class='kw'>end</span></pre></td>
807
- </tr>
808
-
809
-
810
- <tr>
811
-
812
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
813
-
814
- <td class="date">2012-01-23 02:28:15</td>
815
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
816
- <td class="lines">51</td>
817
- <td><pre class="code"> <span class='kw'>else</span></pre></td>
818
- </tr>
819
-
820
-
821
- <tr>
822
-
823
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
824
-
825
- <td class="date">2012-01-23 02:28:15</td>
826
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
827
- <td class="lines">52</td>
828
- <td><pre class="code"> <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Input must be a kind of Array or String (but was: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_source'>source</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='rbrace'>}</span><span class='tstring_content'>).</span><span class='tstring_end'>&quot;</span></span></pre></td>
829
- </tr>
830
-
831
-
832
- <tr>
833
-
834
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
835
-
836
- <td class="date">2012-01-23 02:28:15</td>
837
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
838
- <td class="lines">53</td>
839
- <td><pre class="code"> <span class='kw'>end</span></pre></td>
840
- </tr>
841
-
842
-
843
- <tr>
844
-
845
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
846
-
847
- <td class="date">2012-01-23 02:28:15</td>
848
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
849
- <td class="lines">54</td>
850
- <td><pre class="code"><span class='kw'>end</span></pre></td>
851
- </tr>
852
-
853
- </table>
854
- </td>
855
- <td>
856
- </tr>
857
- </table>
858
- </div>
859
-
860
- <div class="method_details ">
861
- <p class="signature " id="open-class_method">
862
-
863
- + (<tt><span class='object_link'><a href="" title="IO_shuten::Memory (class)">Memory</a></span></tt>) <strong>open</strong>(node_name, *args)
864
-
865
-
866
-
867
- <span class="aliases">Also known as:
868
- <span class="names"><span id='open_node-class_method'>open_node</span></span>
869
- </span>
870
-
871
- </p><div class="docstring">
872
- <div class="discussion">
873
-
874
- <p>Itself on success</p>
875
-
876
-
877
- </div>
878
- </div>
879
- <div class="tags">
880
-
881
- <h3>Returns:</h3>
882
- <ul class="return">
883
-
884
- <li>
885
-
886
-
887
- <span class='type'>(<tt><span class='object_link'><a href="" title="IO_shuten::Memory (class)">Memory</a></span></tt>)</span>
888
-
889
-
890
-
891
- &mdash;
892
- <div class='inline'>
893
- <p>itself on success</p>
894
- </div>
895
-
896
- </li>
897
-
898
- </ul>
899
- <h3>Raises:</h3>
900
- <ul class="raise">
901
-
902
- <li>
903
-
904
-
905
- <span class='type'>(<tt>NodeNotFoundError</tt>)</span>
906
-
907
-
908
-
909
- </li>
910
-
911
- </ul>
912
-
913
- </div><table class="source_code blame">
914
- <caption><span class="info file"># File 'lib/io_shuten/memory.rb', line 75</span></caption>
915
- <tr>
916
- <td>
917
- <table>
918
-
919
-
920
-
921
- <tr>
922
-
923
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
924
-
925
- <td class="date">2012-01-23 02:28:15</td>
926
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
927
- <td class="lines">75</td>
928
- <td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_open'>open</span> <span class='id identifier rubyid_node_name'>node_name</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span></pre></td>
929
- </tr>
930
-
931
-
932
- <tr>
933
-
934
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
935
-
936
- <td class="date">2012-01-23 02:28:15</td>
937
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
938
- <td class="lines">76</td>
939
- <td><pre class="code"> <span class='kw'>if</span> <span class='const'>Memory</span><span class='period'>.</span><span class='id identifier rubyid_instance_exists?'>instance_exists?</span> <span class='id identifier rubyid_node_name'>node_name</span></pre></td>
940
- </tr>
941
-
942
-
943
- <tr>
944
-
945
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
946
-
947
- <td class="date">2012-01-23 02:28:15</td>
948
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
949
- <td class="lines">77</td>
950
- <td><pre class="code"> <span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span></pre></td>
951
- </tr>
952
-
953
-
954
- <tr>
955
-
956
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
957
-
958
- <td class="date">2012-01-23 02:28:15</td>
959
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
960
- <td class="lines">78</td>
961
- <td><pre class="code"> <span class='id identifier rubyid_base'>base</span> <span class='op'>=</span> <span class='const'>Memory</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span> <span class='symbol'>:load</span><span class='comma'>,</span> <span class='id identifier rubyid_node_name'>node_name</span></pre></td>
962
- </tr>
963
-
964
-
965
- <tr>
966
-
967
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
968
-
969
- <td class="date">2012-01-23 02:28:15</td>
970
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
971
- <td class="lines">79</td>
972
- <td><pre class="code"> <span class='id identifier rubyid_base'>base</span><span class='period'>.</span><span class='id identifier rubyid_reopen'>reopen</span><span class='lparen'>(</span><span class='id identifier rubyid_base'>base</span><span class='period'>.</span><span class='id identifier rubyid_container'>container</span><span class='period'>.</span><span class='id identifier rubyid_string'>string</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_base'>base</span><span class='period'>.</span><span class='id identifier rubyid_container'>container</span><span class='period'>.</span><span class='id identifier rubyid_closed_write?'>closed_write?</span></pre></td>
973
- </tr>
974
-
975
-
976
- <tr>
977
-
978
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
979
-
980
- <td class="date">2012-01-23 02:28:15</td>
981
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
982
- <td class="lines">80</td>
983
- <td><pre class="code"> <span class='kw'>yield</span><span class='lparen'>(</span><span class='id identifier rubyid_base'>base</span><span class='rparen'>)</span></pre></td>
984
- </tr>
985
-
986
-
987
- <tr>
988
-
989
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
990
-
991
- <td class="date">2012-01-23 02:28:15</td>
992
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
993
- <td class="lines">81</td>
994
- <td><pre class="code"> <span class='id identifier rubyid_base'>base</span><span class='period'>.</span><span class='id identifier rubyid_container'>container</span><span class='period'>.</span><span class='id identifier rubyid_close_write'>close_write</span></pre></td>
995
- </tr>
996
-
997
-
998
- <tr>
999
-
1000
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1001
-
1002
- <td class="date">2012-01-23 02:28:15</td>
1003
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1004
- <td class="lines">82</td>
1005
- <td><pre class="code"> <span class='id identifier rubyid_base'>base</span></pre></td>
1006
- </tr>
1007
-
1008
-
1009
- <tr>
1010
-
1011
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1012
-
1013
- <td class="date">2012-01-23 02:28:15</td>
1014
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1015
- <td class="lines">83</td>
1016
- <td><pre class="code"></pre></td>
1017
- </tr>
1018
-
1019
-
1020
- <tr>
1021
-
1022
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1023
-
1024
- <td class="date">2012-01-23 02:28:15</td>
1025
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1026
- <td class="lines">84</td>
1027
- <td><pre class="code"> <span class='kw'>else</span></pre></td>
1028
- </tr>
1029
-
1030
-
1031
- <tr>
1032
-
1033
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1034
-
1035
- <td class="date">2012-01-23 02:28:15</td>
1036
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1037
- <td class="lines">85</td>
1038
- <td><pre class="code"> <span class='id identifier rubyid_base'>base</span> <span class='op'>=</span> <span class='const'>Memory</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span> <span class='symbol'>:load</span><span class='comma'>,</span> <span class='id identifier rubyid_node_name'>node_name</span></pre></td>
1039
- </tr>
1040
-
1041
-
1042
- <tr>
1043
-
1044
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1045
-
1046
- <td class="date">2012-01-23 02:28:15</td>
1047
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1048
- <td class="lines">86</td>
1049
- <td><pre class="code"> <span class='id identifier rubyid_base'>base</span><span class='period'>.</span><span class='id identifier rubyid_reopen'>reopen</span><span class='lparen'>(</span><span class='id identifier rubyid_base'>base</span><span class='period'>.</span><span class='id identifier rubyid_container'>container</span><span class='period'>.</span><span class='id identifier rubyid_string'>string</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_base'>base</span><span class='period'>.</span><span class='id identifier rubyid_container'>container</span><span class='period'>.</span><span class='id identifier rubyid_closed_write?'>closed_write?</span></pre></td>
1050
- </tr>
1051
-
1052
-
1053
- <tr>
1054
-
1055
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1056
-
1057
- <td class="date">2012-01-23 02:28:15</td>
1058
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1059
- <td class="lines">87</td>
1060
- <td><pre class="code"> <span class='id identifier rubyid_base'>base</span></pre></td>
1061
- </tr>
1062
-
1063
-
1064
- <tr>
1065
-
1066
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1067
-
1068
- <td class="date">2012-01-23 02:28:15</td>
1069
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1070
- <td class="lines">88</td>
1071
- <td><pre class="code"> <span class='kw'>end</span></pre></td>
1072
- </tr>
1073
-
1074
-
1075
- <tr>
1076
-
1077
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1078
-
1079
- <td class="date">2012-01-23 02:28:15</td>
1080
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1081
- <td class="lines">89</td>
1082
- <td><pre class="code"></pre></td>
1083
- </tr>
1084
-
1085
-
1086
- <tr>
1087
-
1088
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1089
-
1090
- <td class="date">2012-01-23 02:28:15</td>
1091
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1092
- <td class="lines">90</td>
1093
- <td><pre class="code"> <span class='kw'>else</span></pre></td>
1094
- </tr>
1095
-
1096
-
1097
- <tr>
1098
-
1099
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1100
-
1101
- <td class="date">2012-01-23 02:28:15</td>
1102
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1103
- <td class="lines">91</td>
1104
- <td><pre class="code"> <span class='id identifier rubyid_raise'>raise</span> <span class='const'>Errors</span><span class='op'>::</span><span class='const'>NodeNotFoundError</span></pre></td>
1105
- </tr>
1106
-
1107
-
1108
- <tr>
1109
-
1110
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1111
-
1112
- <td class="date">2012-01-23 02:28:15</td>
1113
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1114
- <td class="lines">92</td>
1115
- <td><pre class="code"> <span class='kw'>end</span></pre></td>
1116
- </tr>
1117
-
1118
-
1119
- <tr>
1120
-
1121
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1122
-
1123
- <td class="date">2012-01-23 02:28:15</td>
1124
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1125
- <td class="lines">93</td>
1126
- <td><pre class="code"><span class='kw'>end</span></pre></td>
1127
- </tr>
1128
-
1129
- </table>
1130
- </td>
1131
- <td>
1132
- </tr>
1133
- </table>
1134
- </div>
1135
-
1136
- <div class="method_details ">
1137
- <p class="signature " id="save_instances-class_method">
1138
-
1139
- + (<tt>Boolean</tt>) <strong>save_instances</strong>
1140
-
1141
-
1142
-
1143
- </p><div class="docstring">
1144
- <div class="discussion">
1145
-
1146
- <p>Saves all instances to disk</p>
1147
-
1148
-
1149
- </div>
1150
- </div>
1151
- <div class="tags">
1152
-
1153
- <h3>Returns:</h3>
1154
- <ul class="return">
1155
-
1156
- <li>
1157
-
1158
-
1159
- <span class='type'>(<tt>Boolean</tt>)</span>
1160
-
1161
-
1162
-
1163
- </li>
1164
-
1165
- </ul>
1166
-
1167
- </div><table class="source_code blame">
1168
- <caption><span class="info file"># File 'lib/io_shuten/memory.rb', line 59</span></caption>
1169
- <tr>
1170
- <td>
1171
- <table>
1172
-
1173
-
1174
-
1175
- <tr>
1176
-
1177
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1178
-
1179
- <td class="date">2012-01-23 02:28:15</td>
1180
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1181
- <td class="lines">59</td>
1182
- <td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_save_instances'>save_instances</span></pre></td>
1183
- </tr>
1184
-
1185
-
1186
- <tr>
1187
-
1188
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1189
-
1190
- <td class="date">2012-01-23 02:28:15</td>
1191
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1192
- <td class="lines">60</td>
1193
- <td><pre class="code"> <span class='id identifier rubyid_results'>results</span> <span class='op'>=</span> <span class='id identifier rubyid_instances'>instances</span><span class='period'>.</span><span class='id identifier rubyid_inject'>inject</span><span class='lparen'>(</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_result'>result</span><span class='comma'>,</span> <span class='id identifier rubyid_node'>node</span><span class='op'>|</span></pre></td>
1194
- </tr>
1195
-
1196
-
1197
- <tr>
1198
-
1199
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1200
-
1201
- <td class="date">2012-01-23 02:28:15</td>
1202
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1203
- <td class="lines">61</td>
1204
- <td><pre class="code"> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_node_name'>node_name</span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>w</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_fh'>fh</span><span class='op'>|</span></pre></td>
1205
- </tr>
1206
-
1207
-
1208
- <tr>
1209
-
1210
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1211
-
1212
- <td class="date">2012-01-23 02:28:15</td>
1213
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1214
- <td class="lines">62</td>
1215
- <td><pre class="code"> <span class='id identifier rubyid_fh'>fh</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_string'>string</span></pre></td>
1216
- </tr>
1217
-
1218
-
1219
- <tr>
1220
-
1221
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1222
-
1223
- <td class="date">2012-01-23 02:28:15</td>
1224
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1225
- <td class="lines">63</td>
1226
- <td><pre class="code"> <span class='kw'>end</span></pre></td>
1227
- </tr>
1228
-
1229
-
1230
- <tr>
1231
-
1232
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1233
-
1234
- <td class="date">2012-01-23 02:28:15</td>
1235
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1236
- <td class="lines">64</td>
1237
- <td><pre class="code"> <span class='id identifier rubyid_result'>result</span><span class='lbracket'>[</span><span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_node_name'>node_name</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='symbol'>:failed</span> <span class='kw'>unless</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exists?'>exists?</span><span class='lparen'>(</span><span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_node_name'>node_name</span><span class='rparen'>)</span></pre></td>
1238
- </tr>
1239
-
1240
-
1241
- <tr>
1242
-
1243
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1244
-
1245
- <td class="date">2012-01-23 02:28:15</td>
1246
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1247
- <td class="lines">65</td>
1248
- <td><pre class="code"> <span class='kw'>end</span></pre></td>
1249
- </tr>
1250
-
1251
-
1252
- <tr>
1253
-
1254
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1255
-
1256
- <td class="date">2012-01-23 02:28:15</td>
1257
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1258
- <td class="lines">66</td>
1259
- <td><pre class="code"> <span class='kw'>if</span> <span class='id identifier rubyid_results'>results</span></pre></td>
1260
- </tr>
1261
-
1262
-
1263
- <tr>
1264
-
1265
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1266
-
1267
- <td class="date">2012-01-23 02:28:15</td>
1268
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1269
- <td class="lines">67</td>
1270
- <td><pre class="code"> <span class='kw'>false</span></pre></td>
1271
- </tr>
1272
-
1273
-
1274
- <tr>
1275
-
1276
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1277
-
1278
- <td class="date">2012-01-23 02:28:15</td>
1279
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1280
- <td class="lines">68</td>
1281
- <td><pre class="code"> <span class='kw'>else</span></pre></td>
1282
- </tr>
1283
-
1284
-
1285
- <tr>
1286
-
1287
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1288
-
1289
- <td class="date">2012-01-23 02:28:15</td>
1290
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1291
- <td class="lines">69</td>
1292
- <td><pre class="code"> <span class='kw'>true</span></pre></td>
1293
- </tr>
1294
-
1295
-
1296
- <tr>
1297
-
1298
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1299
-
1300
- <td class="date">2012-01-23 02:28:15</td>
1301
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1302
- <td class="lines">70</td>
1303
- <td><pre class="code"> <span class='kw'>end</span></pre></td>
1304
- </tr>
1305
-
1306
-
1307
- <tr>
1308
-
1309
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1310
-
1311
- <td class="date">2012-01-23 02:28:15</td>
1312
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1313
- <td class="lines">71</td>
1314
- <td><pre class="code"><span class='kw'>end</span></pre></td>
1315
- </tr>
1316
-
1317
- </table>
1318
- </td>
1319
- <td>
1320
- </tr>
1321
- </table>
1322
- </div>
1323
-
1324
- </div>
1325
-
1326
- <div id="instance_method_details" class="method_details_list">
1327
- <h2>Instance Method Details</h2>
1328
-
1329
-
1330
- <div class="method_details first">
1331
- <p class="signature first" id="file_exists?-instance_method">
1332
-
1333
- - (<tt>Boolean</tt>) <strong>file_exists?</strong>(file_name = nil)
1334
-
1335
-
1336
-
1337
- <span class="aliases">Also known as:
1338
- <span class="names"><span id='file_exist?-instance_method'>file_exist?</span></span>
1339
- </span>
1340
-
1341
- </p><div class="docstring">
1342
- <div class="discussion">
1343
-
1344
-
1345
- </div>
1346
- </div>
1347
- <div class="tags">
1348
-
1349
- <h3>Returns:</h3>
1350
- <ul class="return">
1351
-
1352
- <li>
1353
-
1354
-
1355
- <span class='type'>(<tt>Boolean</tt>)</span>
1356
-
1357
-
1358
-
1359
- </li>
1360
-
1361
- </ul>
1362
-
1363
- </div><table class="source_code blame">
1364
- <caption><span class="info file"># File 'lib/io_shuten/memory.rb', line 137</span></caption>
1365
- <tr>
1366
- <td>
1367
- <table>
1368
-
1369
-
1370
-
1371
- <tr>
1372
-
1373
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1374
-
1375
- <td class="date">2012-01-23 02:28:15</td>
1376
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1377
- <td class="lines">137</td>
1378
- <td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_file_exists?'>file_exists?</span> <span class='id identifier rubyid_file_name'>file_name</span> <span class='op'>=</span> <span class='kw'>nil</span></pre></td>
1379
- </tr>
1380
-
1381
-
1382
- <tr>
1383
-
1384
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1385
-
1386
- <td class="date">2012-01-23 02:28:15</td>
1387
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1388
- <td class="lines">138</td>
1389
- <td><pre class="code"> <span class='id identifier rubyid_file_name'>file_name</span> <span class='op'>||=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_node_name'>node_name</span></pre></td>
1390
- </tr>
1391
-
1392
-
1393
- <tr>
1394
-
1395
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1396
-
1397
- <td class="date">2012-01-23 02:28:15</td>
1398
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1399
- <td class="lines">139</td>
1400
- <td><pre class="code"> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exists?'>exists?</span><span class='lparen'>(</span><span class='id identifier rubyid_file_name'>file_name</span><span class='rparen'>)</span></pre></td>
1401
- </tr>
1402
-
1403
-
1404
- <tr>
1405
-
1406
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1407
-
1408
- <td class="date">2012-01-23 02:28:15</td>
1409
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1410
- <td class="lines">140</td>
1411
- <td><pre class="code"><span class='kw'>end</span></pre></td>
1412
- </tr>
1413
-
1414
- </table>
1415
- </td>
1416
- <td>
1417
- </tr>
1418
- </table>
1419
- </div>
1420
-
1421
- <div class="method_details ">
1422
- <p class="signature " id="load_from_file-instance_method">
1423
-
1424
- - (<tt><span class='object_link'><a href="" title="IO_shuten::Memory (class)">Memory</a></span></tt>) <strong>load_from_file</strong>(file_name = nil)
1425
-
1426
-
1427
-
1428
- </p><div class="docstring">
1429
- <div class="discussion">
1430
-
1431
- <p>Itself on success</p>
1432
-
1433
-
1434
- </div>
1435
- </div>
1436
- <div class="tags">
1437
-
1438
- <h3>Returns:</h3>
1439
- <ul class="return">
1440
-
1441
- <li>
1442
-
1443
-
1444
- <span class='type'>(<tt><span class='object_link'><a href="" title="IO_shuten::Memory (class)">Memory</a></span></tt>)</span>
1445
-
1446
-
1447
-
1448
- &mdash;
1449
- <div class='inline'>
1450
- <p>itself on success</p>
1451
- </div>
1452
-
1453
- </li>
1454
-
1455
- </ul>
1456
- <h3>Raises:</h3>
1457
- <ul class="raise">
1458
-
1459
- <li>
1460
-
1461
-
1462
- <span class='type'>(<tt>FileNotFoundError</tt>)</span>
1463
-
1464
-
1465
-
1466
- </li>
1467
-
1468
- </ul>
1469
-
1470
- </div><table class="source_code blame">
1471
- <caption><span class="info file"># File 'lib/io_shuten/memory.rb', line 112</span></caption>
1472
- <tr>
1473
- <td>
1474
- <table>
1475
-
1476
-
1477
-
1478
- <tr>
1479
-
1480
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1481
-
1482
- <td class="date">2012-01-23 02:28:15</td>
1483
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1484
- <td class="lines">112</td>
1485
- <td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_load_from_file'>load_from_file</span> <span class='id identifier rubyid_file_name'>file_name</span> <span class='op'>=</span> <span class='kw'>nil</span></pre></td>
1486
- </tr>
1487
-
1488
-
1489
- <tr>
1490
-
1491
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1492
-
1493
- <td class="date">2012-01-23 02:28:15</td>
1494
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1495
- <td class="lines">113</td>
1496
- <td><pre class="code"> <span class='id identifier rubyid_file_name'>file_name</span> <span class='op'>||=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_node_name'>node_name</span></pre></td>
1497
- </tr>
1498
-
1499
-
1500
- <tr>
1501
-
1502
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1503
-
1504
- <td class="date">2012-01-23 02:28:15</td>
1505
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1506
- <td class="lines">114</td>
1507
- <td><pre class="code"> <span class='kw'>if</span> <span class='id identifier rubyid_file_exists?'>file_exists?</span> <span class='id identifier rubyid_file_name'>file_name</span></pre></td>
1508
- </tr>
1509
-
1510
-
1511
- <tr>
1512
-
1513
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1514
-
1515
- <td class="date">2012-01-23 02:28:15</td>
1516
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1517
- <td class="lines">115</td>
1518
- <td><pre class="code"> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_container'>container</span><span class='period'>.</span><span class='id identifier rubyid_string'>string</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='id identifier rubyid_file_name'>file_name</span><span class='rparen'>)</span></pre></td>
1519
- </tr>
1520
-
1521
-
1522
- <tr>
1523
-
1524
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1525
-
1526
- <td class="date">2012-01-23 02:28:15</td>
1527
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1528
- <td class="lines">116</td>
1529
- <td><pre class="code"> <span class='kw'>self</span></pre></td>
1530
- </tr>
1531
-
1532
-
1533
- <tr>
1534
-
1535
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1536
-
1537
- <td class="date">2012-01-23 02:28:15</td>
1538
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1539
- <td class="lines">117</td>
1540
- <td><pre class="code"> <span class='kw'>else</span></pre></td>
1541
- </tr>
1542
-
1543
-
1544
- <tr>
1545
-
1546
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1547
-
1548
- <td class="date">2012-01-23 02:28:15</td>
1549
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1550
- <td class="lines">118</td>
1551
- <td><pre class="code"> <span class='id identifier rubyid_raise'>raise</span> <span class='const'>Errors</span><span class='op'>::</span><span class='const'>FileNotFoundError</span><span class='comma'>,</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_node_name'>node_name</span></pre></td>
1552
- </tr>
1553
-
1554
-
1555
- <tr>
1556
-
1557
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1558
-
1559
- <td class="date">2012-01-23 02:28:15</td>
1560
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1561
- <td class="lines">119</td>
1562
- <td><pre class="code"> <span class='kw'>end</span></pre></td>
1563
- </tr>
1564
-
1565
-
1566
- <tr>
1567
-
1568
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1569
-
1570
- <td class="date">2012-01-23 02:28:15</td>
1571
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1572
- <td class="lines">120</td>
1573
- <td><pre class="code"><span class='kw'>end</span></pre></td>
1574
- </tr>
1575
-
1576
- </table>
1577
- </td>
1578
- <td>
1579
- </tr>
1580
- </table>
1581
- </div>
1582
-
1583
- <div class="method_details ">
1584
- <p class="signature " id="save_to_file-instance_method">
1585
-
1586
- - (<tt><span class='object_link'><a href="" title="IO_shuten::Memory (class)">Memory</a></span></tt>) <strong>save_to_file</strong>(file_name = nil)
1587
-
1588
-
1589
-
1590
- </p><div class="docstring">
1591
- <div class="discussion">
1592
-
1593
- <p>Itself on success</p>
1594
-
1595
-
1596
- </div>
1597
- </div>
1598
- <div class="tags">
1599
-
1600
- <h3>Returns:</h3>
1601
- <ul class="return">
1602
-
1603
- <li>
1604
-
1605
-
1606
- <span class='type'>(<tt><span class='object_link'><a href="" title="IO_shuten::Memory (class)">Memory</a></span></tt>)</span>
1607
-
1608
-
1609
-
1610
- &mdash;
1611
- <div class='inline'>
1612
- <p>itself on success</p>
1613
- </div>
1614
-
1615
- </li>
1616
-
1617
- </ul>
1618
- <h3>Raises:</h3>
1619
- <ul class="raise">
1620
-
1621
- <li>
1622
-
1623
-
1624
- <span class='type'>(<tt>FileAccessError</tt>)</span>
1625
-
1626
-
1627
-
1628
- </li>
1629
-
1630
- </ul>
1631
-
1632
- </div><table class="source_code blame">
1633
- <caption><span class="info file"># File 'lib/io_shuten/memory.rb', line 124</span></caption>
1634
- <tr>
1635
- <td>
1636
- <table>
1637
-
1638
-
1639
-
1640
- <tr>
1641
-
1642
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1643
-
1644
- <td class="date">2012-01-23 02:28:15</td>
1645
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1646
- <td class="lines">124</td>
1647
- <td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_save_to_file'>save_to_file</span> <span class='id identifier rubyid_file_name'>file_name</span> <span class='op'>=</span> <span class='kw'>nil</span></pre></td>
1648
- </tr>
1649
-
1650
-
1651
- <tr>
1652
-
1653
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1654
-
1655
- <td class="date">2012-01-23 02:28:15</td>
1656
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1657
- <td class="lines">125</td>
1658
- <td><pre class="code"> <span class='id identifier rubyid_file_name'>file_name</span> <span class='op'>||=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_node_name'>node_name</span></pre></td>
1659
- </tr>
1660
-
1661
-
1662
- <tr>
1663
-
1664
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1665
-
1666
- <td class="date">2012-01-23 02:28:15</td>
1667
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1668
- <td class="lines">126</td>
1669
- <td><pre class="code"> <span class='kw'>begin</span></pre></td>
1670
- </tr>
1671
-
1672
-
1673
- <tr>
1674
-
1675
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1676
-
1677
- <td class="date">2012-01-23 02:28:15</td>
1678
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1679
- <td class="lines">127</td>
1680
- <td><pre class="code"> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_file_name'>file_name</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>w</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_fh'>fh</span><span class='op'>|</span></pre></td>
1681
- </tr>
1682
-
1683
-
1684
- <tr>
1685
-
1686
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1687
-
1688
- <td class="date">2012-01-23 02:28:15</td>
1689
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1690
- <td class="lines">128</td>
1691
- <td><pre class="code"> <span class='id identifier rubyid_fh'>fh</span><span class='period'>.</span><span class='id identifier rubyid_write'>write</span><span class='lparen'>(</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_container'>container</span><span class='period'>.</span><span class='id identifier rubyid_string'>string</span><span class='rparen'>)</span></pre></td>
1692
- </tr>
1693
-
1694
-
1695
- <tr>
1696
-
1697
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1698
-
1699
- <td class="date">2012-01-23 02:28:15</td>
1700
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1701
- <td class="lines">129</td>
1702
- <td><pre class="code"> <span class='kw'>end</span></pre></td>
1703
- </tr>
1704
-
1705
-
1706
- <tr>
1707
-
1708
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1709
-
1710
- <td class="date">2012-01-23 02:28:15</td>
1711
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1712
- <td class="lines">130</td>
1713
- <td><pre class="code"> <span class='kw'>self</span></pre></td>
1714
- </tr>
1715
-
1716
-
1717
- <tr>
1718
-
1719
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1720
-
1721
- <td class="date">2012-01-23 02:28:15</td>
1722
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1723
- <td class="lines">131</td>
1724
- <td><pre class="code"> <span class='kw'>rescue</span> <span class='const'>Exception</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_e'>e</span></pre></td>
1725
- </tr>
1726
-
1727
-
1728
- <tr>
1729
-
1730
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1731
-
1732
- <td class="date">2012-01-23 02:28:15</td>
1733
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1734
- <td class="lines">132</td>
1735
- <td><pre class="code"> <span class='id identifier rubyid_raise'>raise</span> <span class='const'>Errors</span><span class='op'>::</span><span class='const'>FileAccessError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Reason: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_message'>message</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span></pre></td>
1736
- </tr>
1737
-
1738
-
1739
- <tr>
1740
-
1741
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1742
-
1743
- <td class="date">2012-01-23 02:28:15</td>
1744
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1745
- <td class="lines">133</td>
1746
- <td><pre class="code"> <span class='kw'>end</span></pre></td>
1747
- </tr>
1748
-
1749
-
1750
- <tr>
1751
-
1752
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1753
-
1754
- <td class="date">2012-01-23 02:28:15</td>
1755
- <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
1756
- <td class="lines">134</td>
1757
- <td><pre class="code"><span class='kw'>end</span></pre></td>
1758
- </tr>
1759
-
1760
- </table>
1761
- </td>
1762
- <td>
1763
- </tr>
1764
- </table>
1765
- </div>
1766
-
1767
- </div>
1768
-
1769
- </div>
1770
-
1771
- <div id="footer">
1772
- Generated on Mon Jan 30 01:52:36 2012 by
1773
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1774
- 0.7.4 (ruby-1.9.3).
1775
- </div>
1776
-
1777
- </body>
1778
- </html>