io_shuten 0.1.0.dev6 → 0.1.0.dev7
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/IO_shuten/Base.html +78 -99
- data/doc/IO_shuten/Buffer.html +130 -150
- data/doc/IO_shuten/Errors/FileAccessError.html +4 -5
- data/doc/IO_shuten/Errors/FileNotFoundError.html +4 -5
- data/doc/IO_shuten/Errors/NodeExistsError.html +4 -5
- data/doc/IO_shuten/Errors/NodeNameError.html +4 -5
- data/doc/IO_shuten/Errors/NodeNotFoundError.html +4 -5
- data/doc/IO_shuten/Errors/NotYetImplemented.html +4 -5
- data/doc/IO_shuten/Errors.html +4 -5
- data/doc/IO_shuten/Memory.html +127 -147
- data/doc/IO_shuten/Mongo.html +6 -8
- data/doc/IO_shuten/Redis.html +164 -263
- data/doc/IO_shuten/Stores/BaseContainer.html +377 -0
- data/doc/IO_shuten/Stores/Mongo/Collection.html +4 -5
- data/doc/IO_shuten/Stores/Mongo/GridFS.html +4 -5
- data/doc/IO_shuten/Stores/Mongo.html +4 -5
- data/doc/IO_shuten/Stores/Redis/Container.html +778 -0
- data/doc/IO_shuten/Stores/Redis/KeyValue/Collection.html +504 -0
- data/doc/IO_shuten/Stores/Redis/KeyValue/Single.html +438 -0
- data/doc/IO_shuten/Stores/Redis/KeyValue.html +176 -7
- data/doc/IO_shuten/Stores/Redis/PubSub.html +140 -5
- data/doc/IO_shuten/Stores/Redis.html +7 -6
- data/doc/IO_shuten/Stores.html +6 -7
- data/doc/IO_shuten/Zmq.html +166 -0
- data/doc/IO_shuten.html +6 -7
- data/doc/_index.html +49 -6
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +10 -3
- data/doc/index.html +10 -3
- data/doc/method_list.html +160 -24
- data/doc/top-level-namespace.html +2 -2
- data/io_shuten.gemspec +6 -1
- data/lib/io_shuten/buffer.rb +8 -6
- data/lib/io_shuten/memory.rb +8 -5
- data/lib/io_shuten/version.rb +1 -1
- data/spec/lib/buffer_spec.rb +43 -0
- data/spec/lib/memory_spec.rb +49 -0
- data/spec/lib/redis_spec.rb +15 -1
- metadata +49 -44
data/doc/IO_shuten/Memory.html
CHANGED
@@ -98,9 +98,8 @@
|
|
98
98
|
|
99
99
|
<h2>Overview</h2><div class="docstring">
|
100
100
|
<div class="discussion">
|
101
|
-
|
102
|
-
Implementation of the Memory storage
|
103
|
-
</p>
|
101
|
+
|
102
|
+
<p>Implementation of the Memory storage</p>
|
104
103
|
|
105
104
|
|
106
105
|
</div>
|
@@ -149,9 +148,8 @@ Implementation of the Memory storage
|
|
149
148
|
|
150
149
|
|
151
150
|
|
152
|
-
<span class="summary_desc"><div class='inline'
|
153
|
-
Loads instances from disk
|
154
|
-
</p>
|
151
|
+
<span class="summary_desc"><div class='inline'>
|
152
|
+
<p>Loads instances from disk.</p>
|
155
153
|
</div></span>
|
156
154
|
|
157
155
|
</li>
|
@@ -175,9 +173,8 @@ Loads instances from disk.
|
|
175
173
|
|
176
174
|
|
177
175
|
|
178
|
-
<span class="summary_desc"><div class='inline'
|
179
|
-
Itself on success
|
180
|
-
</p>
|
176
|
+
<span class="summary_desc"><div class='inline'>
|
177
|
+
<p>Itself on success.</p>
|
181
178
|
</div></span>
|
182
179
|
|
183
180
|
</li>
|
@@ -199,9 +196,8 @@ Itself on success.
|
|
199
196
|
|
200
197
|
|
201
198
|
|
202
|
-
<span class="summary_desc"><div class='inline'
|
203
|
-
Saves all instances to disk
|
204
|
-
</p>
|
199
|
+
<span class="summary_desc"><div class='inline'>
|
200
|
+
<p>Saves all instances to disk.</p>
|
205
201
|
</div></span>
|
206
202
|
|
207
203
|
</li>
|
@@ -257,9 +253,8 @@ Saves all instances to disk.
|
|
257
253
|
|
258
254
|
|
259
255
|
|
260
|
-
<span class="summary_desc"><div class='inline'
|
261
|
-
Creates a new Memory node and stores it in the pool
|
262
|
-
</p>
|
256
|
+
<span class="summary_desc"><div class='inline'>
|
257
|
+
<p>Creates a new Memory node and stores it in the pool.</p>
|
263
258
|
</div></span>
|
264
259
|
|
265
260
|
</li>
|
@@ -281,9 +276,8 @@ Creates a new Memory node and stores it in the pool.
|
|
281
276
|
|
282
277
|
|
283
278
|
|
284
|
-
<span class="summary_desc"><div class='inline'
|
285
|
-
Itself on success
|
286
|
-
</p>
|
279
|
+
<span class="summary_desc"><div class='inline'>
|
280
|
+
<p>Itself on success.</p>
|
287
281
|
</div></span>
|
288
282
|
|
289
283
|
</li>
|
@@ -305,9 +299,8 @@ Itself on success.
|
|
305
299
|
|
306
300
|
|
307
301
|
|
308
|
-
<span class="summary_desc"><div class='inline'
|
309
|
-
Itself on success
|
310
|
-
</p>
|
302
|
+
<span class="summary_desc"><div class='inline'>
|
303
|
+
<p>Itself on success.</p>
|
311
304
|
</div></span>
|
312
305
|
|
313
306
|
</li>
|
@@ -338,9 +331,8 @@ Itself on success.
|
|
338
331
|
|
339
332
|
</p><div class="docstring">
|
340
333
|
<div class="discussion">
|
341
|
-
|
342
|
-
Creates a new Memory node and stores it in the pool
|
343
|
-
</p>
|
334
|
+
|
335
|
+
<p>Creates a new Memory node and stores it in the pool</p>
|
344
336
|
|
345
337
|
|
346
338
|
</div>
|
@@ -361,9 +353,8 @@ Creates a new Memory node and stores it in the pool
|
|
361
353
|
|
362
354
|
|
363
355
|
—
|
364
|
-
<div class='inline'
|
365
|
-
Name of the node node (container)
|
366
|
-
</p>
|
356
|
+
<div class='inline'>
|
357
|
+
<p>Name of the node node (container)</p>
|
367
358
|
</div>
|
368
359
|
|
369
360
|
</li>
|
@@ -380,9 +371,8 @@ Name of the node node (container)
|
|
380
371
|
|
381
372
|
|
382
373
|
—
|
383
|
-
<div class='inline'
|
384
|
-
also a symbol is allowed
|
385
|
-
</p>
|
374
|
+
<div class='inline'>
|
375
|
+
<p>also a symbol is allowed</p>
|
386
376
|
</div>
|
387
377
|
|
388
378
|
</li>
|
@@ -418,7 +408,7 @@ also a symbol is allowed
|
|
418
408
|
<td class="date">2012-01-23 02:28:15</td>
|
419
409
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
420
410
|
<td class="lines">13</td>
|
421
|
-
<td><pre class="code"><span class='
|
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>
|
422
412
|
</tr>
|
423
413
|
|
424
414
|
|
@@ -429,7 +419,7 @@ also a symbol is allowed
|
|
429
419
|
<td class="date">2012-01-23 02:28:15</td>
|
430
420
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
431
421
|
<td class="lines">14</td>
|
432
|
-
<td><pre class="code"> <span class='
|
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>
|
433
423
|
</tr>
|
434
424
|
|
435
425
|
|
@@ -440,7 +430,7 @@ also a symbol is allowed
|
|
440
430
|
<td class="date">2012-01-23 02:28:15</td>
|
441
431
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
442
432
|
<td class="lines">15</td>
|
443
|
-
<td><pre class="code"> <span class='
|
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>
|
444
434
|
</tr>
|
445
435
|
|
446
436
|
|
@@ -451,7 +441,7 @@ also a symbol is allowed
|
|
451
441
|
<td class="date">2012-01-25 22:35:33</td>
|
452
442
|
<td class="commit"><a title="Add IO_shuten::Buffer (using IO::Buffer cext) as further interface">1c2e01eb</a><td>
|
453
443
|
<td class="lines">16</td>
|
454
|
-
<td><pre class="code"> <span class='
|
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>
|
455
445
|
</tr>
|
456
446
|
|
457
447
|
|
@@ -462,7 +452,7 @@ also a symbol is allowed
|
|
462
452
|
<td class="date">2012-01-23 02:28:15</td>
|
463
453
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
464
454
|
<td class="lines">17</td>
|
465
|
-
<td><pre class="code"> <span class='
|
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'>"</span><span class='tstring_end'>"</span></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></pre></td>
|
466
456
|
</tr>
|
467
457
|
|
468
458
|
|
@@ -484,7 +474,7 @@ also a symbol is allowed
|
|
484
474
|
<td class="date">2012-01-23 02:28:15</td>
|
485
475
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
486
476
|
<td class="lines">19</td>
|
487
|
-
<td><pre class="code"> <span class='
|
477
|
+
<td><pre class="code"> <span class='cvar'>@@instances</span> <span class='op'><<</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>
|
488
478
|
</tr>
|
489
479
|
|
490
480
|
|
@@ -495,7 +485,7 @@ also a symbol is allowed
|
|
495
485
|
<td class="date">2012-01-23 02:28:15</td>
|
496
486
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
497
487
|
<td class="lines">20</td>
|
498
|
-
<td><pre class="code"> <span class='
|
488
|
+
<td><pre class="code"> <span class='kw'>else</span></pre></td>
|
499
489
|
</tr>
|
500
490
|
|
501
491
|
|
@@ -506,7 +496,7 @@ also a symbol is allowed
|
|
506
496
|
<td class="date">2012-01-23 02:28:15</td>
|
507
497
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
508
498
|
<td class="lines">21</td>
|
509
|
-
<td><pre class="code"> <span class='
|
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'>"</span><span class='tstring_content'>Node already in pool, replacement is not allowed.</span><span class='tstring_end'>"</span></span></pre></td>
|
510
500
|
</tr>
|
511
501
|
|
512
502
|
|
@@ -517,7 +507,7 @@ also a symbol is allowed
|
|
517
507
|
<td class="date">2012-01-23 02:28:15</td>
|
518
508
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
519
509
|
<td class="lines">22</td>
|
520
|
-
<td><pre class="code"> <span class='
|
510
|
+
<td><pre class="code"> <span class='kw'>end</span></pre></td>
|
521
511
|
</tr>
|
522
512
|
|
523
513
|
|
@@ -528,7 +518,7 @@ also a symbol is allowed
|
|
528
518
|
<td class="date">2012-01-23 02:28:15</td>
|
529
519
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
530
520
|
<td class="lines">23</td>
|
531
|
-
<td><pre class="code"> <span class='
|
521
|
+
<td><pre class="code"> <span class='kw'>else</span></pre></td>
|
532
522
|
</tr>
|
533
523
|
|
534
524
|
|
@@ -539,7 +529,7 @@ also a symbol is allowed
|
|
539
529
|
<td class="date">2012-01-23 02:28:15</td>
|
540
530
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
541
531
|
<td class="lines">24</td>
|
542
|
-
<td><pre class="code"> <span class='
|
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'>"</span><span class='tstring_content'>Name must be kind of String or Symbol and can't be nil.</span><span class='tstring_end'>"</span></span></pre></td>
|
543
533
|
</tr>
|
544
534
|
|
545
535
|
|
@@ -550,7 +540,7 @@ also a symbol is allowed
|
|
550
540
|
<td class="date">2012-01-23 02:28:15</td>
|
551
541
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
552
542
|
<td class="lines">25</td>
|
553
|
-
<td><pre class="code"> <span class='
|
543
|
+
<td><pre class="code"> <span class='kw'>end</span></pre></td>
|
554
544
|
</tr>
|
555
545
|
|
556
546
|
|
@@ -561,7 +551,7 @@ also a symbol is allowed
|
|
561
551
|
<td class="date">2012-01-23 02:28:15</td>
|
562
552
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
563
553
|
<td class="lines">26</td>
|
564
|
-
<td><pre class="code"><span class='
|
554
|
+
<td><pre class="code"><span class='kw'>end</span></pre></td>
|
565
555
|
</tr>
|
566
556
|
|
567
557
|
</table>
|
@@ -597,9 +587,8 @@ also a symbol is allowed
|
|
597
587
|
|
598
588
|
</p><div class="docstring">
|
599
589
|
<div class="discussion">
|
600
|
-
|
601
|
-
Loads instances from disk
|
602
|
-
</p>
|
590
|
+
|
591
|
+
<p>Loads instances from disk</p>
|
603
592
|
|
604
593
|
|
605
594
|
</div>
|
@@ -618,9 +607,8 @@ Loads instances from disk
|
|
618
607
|
|
619
608
|
|
620
609
|
—
|
621
|
-
<div class='inline'
|
622
|
-
name
|
623
|
-
</p>
|
610
|
+
<div class='inline'>
|
611
|
+
<p>name</p>
|
624
612
|
</div>
|
625
613
|
|
626
614
|
</li>
|
@@ -635,9 +623,8 @@ name
|
|
635
623
|
|
636
624
|
|
637
625
|
—
|
638
|
-
<div class='inline'
|
639
|
-
names (HINT: you can provide a Dir.glob)
|
640
|
-
</p>
|
626
|
+
<div class='inline'>
|
627
|
+
<p>names (HINT: you can provide a Dir.glob)</p>
|
641
628
|
</div>
|
642
629
|
|
643
630
|
</li>
|
@@ -673,7 +660,7 @@ names (HINT: you can provide a Dir.glob)
|
|
673
660
|
<td class="date">2012-01-23 02:28:15</td>
|
674
661
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
675
662
|
<td class="lines">37</td>
|
676
|
-
<td><pre class="code"><span class='
|
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>
|
677
664
|
</tr>
|
678
665
|
|
679
666
|
|
@@ -684,7 +671,7 @@ names (HINT: you can provide a Dir.glob)
|
|
684
671
|
<td class="date">2012-01-23 02:28:15</td>
|
685
672
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
686
673
|
<td class="lines">38</td>
|
687
|
-
<td><pre class="code"> <span class='
|
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>
|
688
675
|
</tr>
|
689
676
|
|
690
677
|
|
@@ -695,7 +682,7 @@ names (HINT: you can provide a Dir.glob)
|
|
695
682
|
<td class="date">2012-01-23 02:28:15</td>
|
696
683
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
697
684
|
<td class="lines">39</td>
|
698
|
-
<td><pre class="code"> <span class='
|
685
|
+
<td><pre class="code"> <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Array</span><span class='tstring_end'>"</span></span></pre></td>
|
699
686
|
</tr>
|
700
687
|
|
701
688
|
|
@@ -706,7 +693,7 @@ names (HINT: you can provide a Dir.glob)
|
|
706
693
|
<td class="date">2012-01-23 02:28:15</td>
|
707
694
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
708
695
|
<td class="lines">40</td>
|
709
|
-
<td><pre class="code"> <span class='
|
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>
|
710
697
|
</tr>
|
711
698
|
|
712
699
|
|
@@ -717,7 +704,7 @@ names (HINT: you can provide a Dir.glob)
|
|
717
704
|
<td class="date">2012-01-23 02:28:15</td>
|
718
705
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
719
706
|
<td class="lines">41</td>
|
720
|
-
<td><pre class="code"> <span class='
|
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>
|
721
708
|
</tr>
|
722
709
|
|
723
710
|
|
@@ -728,7 +715,7 @@ names (HINT: you can provide a Dir.glob)
|
|
728
715
|
<td class="date">2012-01-23 02:28:15</td>
|
729
716
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
730
717
|
<td class="lines">42</td>
|
731
|
-
<td><pre class="code"> <span class='
|
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>
|
732
719
|
</tr>
|
733
720
|
|
734
721
|
|
@@ -739,7 +726,7 @@ names (HINT: you can provide a Dir.glob)
|
|
739
726
|
<td class="date">2012-01-23 02:28:15</td>
|
740
727
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
741
728
|
<td class="lines">43</td>
|
742
|
-
<td><pre class="code"> <span class='
|
729
|
+
<td><pre class="code"> <span class='kw'>end</span></pre></td>
|
743
730
|
</tr>
|
744
731
|
|
745
732
|
|
@@ -750,7 +737,7 @@ names (HINT: you can provide a Dir.glob)
|
|
750
737
|
<td class="date">2012-01-23 02:28:15</td>
|
751
738
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
752
739
|
<td class="lines">44</td>
|
753
|
-
<td><pre class="code"> <span class='
|
740
|
+
<td><pre class="code"> <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>String</span><span class='tstring_end'>"</span></span></pre></td>
|
754
741
|
</tr>
|
755
742
|
|
756
743
|
|
@@ -761,7 +748,7 @@ names (HINT: you can provide a Dir.glob)
|
|
761
748
|
<td class="date">2012-01-23 02:28:15</td>
|
762
749
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
763
750
|
<td class="lines">45</td>
|
764
|
-
<td><pre class="code"> <span class='
|
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'>&&</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>
|
765
752
|
</tr>
|
766
753
|
|
767
754
|
|
@@ -772,7 +759,7 @@ names (HINT: you can provide a Dir.glob)
|
|
772
759
|
<td class="date">2012-01-23 02:28:15</td>
|
773
760
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
774
761
|
<td class="lines">46</td>
|
775
|
-
<td><pre class="code"> <span class='
|
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'>"</span><span class='tstring_content'>/**/*</span><span class='tstring_end'>"</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>
|
776
763
|
</tr>
|
777
764
|
|
778
765
|
|
@@ -783,7 +770,7 @@ names (HINT: you can provide a Dir.glob)
|
|
783
770
|
<td class="date">2012-01-23 02:28:15</td>
|
784
771
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
785
772
|
<td class="lines">47</td>
|
786
|
-
<td><pre class="code"> <span class='
|
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>
|
787
774
|
</tr>
|
788
775
|
|
789
776
|
|
@@ -794,7 +781,7 @@ names (HINT: you can provide a Dir.glob)
|
|
794
781
|
<td class="date">2012-01-23 02:28:15</td>
|
795
782
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
796
783
|
<td class="lines">48</td>
|
797
|
-
<td><pre class="code"> <span class='
|
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>
|
798
785
|
</tr>
|
799
786
|
|
800
787
|
|
@@ -805,7 +792,7 @@ names (HINT: you can provide a Dir.glob)
|
|
805
792
|
<td class="date">2012-01-23 02:28:15</td>
|
806
793
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
807
794
|
<td class="lines">49</td>
|
808
|
-
<td><pre class="code"> <span class='
|
795
|
+
<td><pre class="code"> <span class='kw'>end</span></pre></td>
|
809
796
|
</tr>
|
810
797
|
|
811
798
|
|
@@ -816,7 +803,7 @@ names (HINT: you can provide a Dir.glob)
|
|
816
803
|
<td class="date">2012-01-23 02:28:15</td>
|
817
804
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
818
805
|
<td class="lines">50</td>
|
819
|
-
<td><pre class="code"> <span class='
|
806
|
+
<td><pre class="code"> <span class='kw'>end</span></pre></td>
|
820
807
|
</tr>
|
821
808
|
|
822
809
|
|
@@ -827,7 +814,7 @@ names (HINT: you can provide a Dir.glob)
|
|
827
814
|
<td class="date">2012-01-23 02:28:15</td>
|
828
815
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
829
816
|
<td class="lines">51</td>
|
830
|
-
<td><pre class="code"> <span class='
|
817
|
+
<td><pre class="code"> <span class='kw'>else</span></pre></td>
|
831
818
|
</tr>
|
832
819
|
|
833
820
|
|
@@ -838,7 +825,7 @@ names (HINT: you can provide a Dir.glob)
|
|
838
825
|
<td class="date">2012-01-23 02:28:15</td>
|
839
826
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
840
827
|
<td class="lines">52</td>
|
841
|
-
<td><pre class="code"> <span class='
|
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'>"</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'>"</span></span></pre></td>
|
842
829
|
</tr>
|
843
830
|
|
844
831
|
|
@@ -849,7 +836,7 @@ names (HINT: you can provide a Dir.glob)
|
|
849
836
|
<td class="date">2012-01-23 02:28:15</td>
|
850
837
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
851
838
|
<td class="lines">53</td>
|
852
|
-
<td><pre class="code"> <span class='
|
839
|
+
<td><pre class="code"> <span class='kw'>end</span></pre></td>
|
853
840
|
</tr>
|
854
841
|
|
855
842
|
|
@@ -860,7 +847,7 @@ names (HINT: you can provide a Dir.glob)
|
|
860
847
|
<td class="date">2012-01-23 02:28:15</td>
|
861
848
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
862
849
|
<td class="lines">54</td>
|
863
|
-
<td><pre class="code"><span class='
|
850
|
+
<td><pre class="code"><span class='kw'>end</span></pre></td>
|
864
851
|
</tr>
|
865
852
|
|
866
853
|
</table>
|
@@ -883,9 +870,8 @@ names (HINT: you can provide a Dir.glob)
|
|
883
870
|
|
884
871
|
</p><div class="docstring">
|
885
872
|
<div class="discussion">
|
886
|
-
|
887
|
-
Itself on success
|
888
|
-
</p>
|
873
|
+
|
874
|
+
<p>Itself on success</p>
|
889
875
|
|
890
876
|
|
891
877
|
</div>
|
@@ -903,9 +889,8 @@ Itself on success
|
|
903
889
|
|
904
890
|
|
905
891
|
—
|
906
|
-
<div class='inline'
|
907
|
-
itself on success
|
908
|
-
</p>
|
892
|
+
<div class='inline'>
|
893
|
+
<p>itself on success</p>
|
909
894
|
</div>
|
910
895
|
|
911
896
|
</li>
|
@@ -940,7 +925,7 @@ itself on success
|
|
940
925
|
<td class="date">2012-01-23 02:28:15</td>
|
941
926
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
942
927
|
<td class="lines">75</td>
|
943
|
-
<td><pre class="code"><span class='
|
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>
|
944
929
|
</tr>
|
945
930
|
|
946
931
|
|
@@ -951,7 +936,7 @@ itself on success
|
|
951
936
|
<td class="date">2012-01-23 02:28:15</td>
|
952
937
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
953
938
|
<td class="lines">76</td>
|
954
|
-
<td><pre class="code"> <span class='
|
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>
|
955
940
|
</tr>
|
956
941
|
|
957
942
|
|
@@ -962,7 +947,7 @@ itself on success
|
|
962
947
|
<td class="date">2012-01-23 02:28:15</td>
|
963
948
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
964
949
|
<td class="lines">77</td>
|
965
|
-
<td><pre class="code"> <span class='
|
950
|
+
<td><pre class="code"> <span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span></pre></td>
|
966
951
|
</tr>
|
967
952
|
|
968
953
|
|
@@ -973,7 +958,7 @@ itself on success
|
|
973
958
|
<td class="date">2012-01-23 02:28:15</td>
|
974
959
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
975
960
|
<td class="lines">78</td>
|
976
|
-
<td><pre class="code"> <span class='
|
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>
|
977
962
|
</tr>
|
978
963
|
|
979
964
|
|
@@ -984,7 +969,7 @@ itself on success
|
|
984
969
|
<td class="date">2012-01-23 02:28:15</td>
|
985
970
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
986
971
|
<td class="lines">79</td>
|
987
|
-
<td><pre class="code"> <span class='
|
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>
|
988
973
|
</tr>
|
989
974
|
|
990
975
|
|
@@ -995,7 +980,7 @@ itself on success
|
|
995
980
|
<td class="date">2012-01-23 02:28:15</td>
|
996
981
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
997
982
|
<td class="lines">80</td>
|
998
|
-
<td><pre class="code"> <span class='
|
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>
|
999
984
|
</tr>
|
1000
985
|
|
1001
986
|
|
@@ -1006,7 +991,7 @@ itself on success
|
|
1006
991
|
<td class="date">2012-01-23 02:28:15</td>
|
1007
992
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1008
993
|
<td class="lines">81</td>
|
1009
|
-
<td><pre class="code"> <span class='
|
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>
|
1010
995
|
</tr>
|
1011
996
|
|
1012
997
|
|
@@ -1017,7 +1002,7 @@ itself on success
|
|
1017
1002
|
<td class="date">2012-01-23 02:28:15</td>
|
1018
1003
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1019
1004
|
<td class="lines">82</td>
|
1020
|
-
<td><pre class="code"> <span class='
|
1005
|
+
<td><pre class="code"> <span class='id identifier rubyid_base'>base</span></pre></td>
|
1021
1006
|
</tr>
|
1022
1007
|
|
1023
1008
|
|
@@ -1039,7 +1024,7 @@ itself on success
|
|
1039
1024
|
<td class="date">2012-01-23 02:28:15</td>
|
1040
1025
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1041
1026
|
<td class="lines">84</td>
|
1042
|
-
<td><pre class="code"> <span class='
|
1027
|
+
<td><pre class="code"> <span class='kw'>else</span></pre></td>
|
1043
1028
|
</tr>
|
1044
1029
|
|
1045
1030
|
|
@@ -1050,7 +1035,7 @@ itself on success
|
|
1050
1035
|
<td class="date">2012-01-23 02:28:15</td>
|
1051
1036
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1052
1037
|
<td class="lines">85</td>
|
1053
|
-
<td><pre class="code"> <span class='
|
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>
|
1054
1039
|
</tr>
|
1055
1040
|
|
1056
1041
|
|
@@ -1061,7 +1046,7 @@ itself on success
|
|
1061
1046
|
<td class="date">2012-01-23 02:28:15</td>
|
1062
1047
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1063
1048
|
<td class="lines">86</td>
|
1064
|
-
<td><pre class="code"> <span class='
|
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>
|
1065
1050
|
</tr>
|
1066
1051
|
|
1067
1052
|
|
@@ -1072,7 +1057,7 @@ itself on success
|
|
1072
1057
|
<td class="date">2012-01-23 02:28:15</td>
|
1073
1058
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1074
1059
|
<td class="lines">87</td>
|
1075
|
-
<td><pre class="code"> <span class='
|
1060
|
+
<td><pre class="code"> <span class='id identifier rubyid_base'>base</span></pre></td>
|
1076
1061
|
</tr>
|
1077
1062
|
|
1078
1063
|
|
@@ -1083,7 +1068,7 @@ itself on success
|
|
1083
1068
|
<td class="date">2012-01-23 02:28:15</td>
|
1084
1069
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1085
1070
|
<td class="lines">88</td>
|
1086
|
-
<td><pre class="code"> <span class='
|
1071
|
+
<td><pre class="code"> <span class='kw'>end</span></pre></td>
|
1087
1072
|
</tr>
|
1088
1073
|
|
1089
1074
|
|
@@ -1105,7 +1090,7 @@ itself on success
|
|
1105
1090
|
<td class="date">2012-01-23 02:28:15</td>
|
1106
1091
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1107
1092
|
<td class="lines">90</td>
|
1108
|
-
<td><pre class="code"> <span class='
|
1093
|
+
<td><pre class="code"> <span class='kw'>else</span></pre></td>
|
1109
1094
|
</tr>
|
1110
1095
|
|
1111
1096
|
|
@@ -1116,7 +1101,7 @@ itself on success
|
|
1116
1101
|
<td class="date">2012-01-23 02:28:15</td>
|
1117
1102
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1118
1103
|
<td class="lines">91</td>
|
1119
|
-
<td><pre class="code"> <span class='
|
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>
|
1120
1105
|
</tr>
|
1121
1106
|
|
1122
1107
|
|
@@ -1127,7 +1112,7 @@ itself on success
|
|
1127
1112
|
<td class="date">2012-01-23 02:28:15</td>
|
1128
1113
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1129
1114
|
<td class="lines">92</td>
|
1130
|
-
<td><pre class="code"> <span class='
|
1115
|
+
<td><pre class="code"> <span class='kw'>end</span></pre></td>
|
1131
1116
|
</tr>
|
1132
1117
|
|
1133
1118
|
|
@@ -1138,7 +1123,7 @@ itself on success
|
|
1138
1123
|
<td class="date">2012-01-23 02:28:15</td>
|
1139
1124
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1140
1125
|
<td class="lines">93</td>
|
1141
|
-
<td><pre class="code"><span class='
|
1126
|
+
<td><pre class="code"><span class='kw'>end</span></pre></td>
|
1142
1127
|
</tr>
|
1143
1128
|
|
1144
1129
|
</table>
|
@@ -1157,9 +1142,8 @@ itself on success
|
|
1157
1142
|
|
1158
1143
|
</p><div class="docstring">
|
1159
1144
|
<div class="discussion">
|
1160
|
-
|
1161
|
-
Saves all instances to disk
|
1162
|
-
</p>
|
1145
|
+
|
1146
|
+
<p>Saves all instances to disk</p>
|
1163
1147
|
|
1164
1148
|
|
1165
1149
|
</div>
|
@@ -1195,7 +1179,7 @@ Saves all instances to disk
|
|
1195
1179
|
<td class="date">2012-01-23 02:28:15</td>
|
1196
1180
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1197
1181
|
<td class="lines">59</td>
|
1198
|
-
<td><pre class="code"><span class='
|
1182
|
+
<td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_save_instances'>save_instances</span></pre></td>
|
1199
1183
|
</tr>
|
1200
1184
|
|
1201
1185
|
|
@@ -1206,7 +1190,7 @@ Saves all instances to disk
|
|
1206
1190
|
<td class="date">2012-01-23 02:28:15</td>
|
1207
1191
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1208
1192
|
<td class="lines">60</td>
|
1209
|
-
<td><pre class="code"> <span class='
|
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>
|
1210
1194
|
</tr>
|
1211
1195
|
|
1212
1196
|
|
@@ -1217,7 +1201,7 @@ Saves all instances to disk
|
|
1217
1201
|
<td class="date">2012-01-23 02:28:15</td>
|
1218
1202
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1219
1203
|
<td class="lines">61</td>
|
1220
|
-
<td><pre class="code"> <span class='
|
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'>"</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>
|
1221
1205
|
</tr>
|
1222
1206
|
|
1223
1207
|
|
@@ -1228,7 +1212,7 @@ Saves all instances to disk
|
|
1228
1212
|
<td class="date">2012-01-23 02:28:15</td>
|
1229
1213
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1230
1214
|
<td class="lines">62</td>
|
1231
|
-
<td><pre class="code"> <span class='
|
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>
|
1232
1216
|
</tr>
|
1233
1217
|
|
1234
1218
|
|
@@ -1239,7 +1223,7 @@ Saves all instances to disk
|
|
1239
1223
|
<td class="date">2012-01-23 02:28:15</td>
|
1240
1224
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1241
1225
|
<td class="lines">63</td>
|
1242
|
-
<td><pre class="code"> <span class='
|
1226
|
+
<td><pre class="code"> <span class='kw'>end</span></pre></td>
|
1243
1227
|
</tr>
|
1244
1228
|
|
1245
1229
|
|
@@ -1250,7 +1234,7 @@ Saves all instances to disk
|
|
1250
1234
|
<td class="date">2012-01-23 02:28:15</td>
|
1251
1235
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1252
1236
|
<td class="lines">64</td>
|
1253
|
-
<td><pre class="code"> <span class='
|
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>
|
1254
1238
|
</tr>
|
1255
1239
|
|
1256
1240
|
|
@@ -1261,7 +1245,7 @@ Saves all instances to disk
|
|
1261
1245
|
<td class="date">2012-01-23 02:28:15</td>
|
1262
1246
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1263
1247
|
<td class="lines">65</td>
|
1264
|
-
<td><pre class="code"> <span class='
|
1248
|
+
<td><pre class="code"> <span class='kw'>end</span></pre></td>
|
1265
1249
|
</tr>
|
1266
1250
|
|
1267
1251
|
|
@@ -1272,7 +1256,7 @@ Saves all instances to disk
|
|
1272
1256
|
<td class="date">2012-01-23 02:28:15</td>
|
1273
1257
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1274
1258
|
<td class="lines">66</td>
|
1275
|
-
<td><pre class="code"> <span class='
|
1259
|
+
<td><pre class="code"> <span class='kw'>if</span> <span class='id identifier rubyid_results'>results</span></pre></td>
|
1276
1260
|
</tr>
|
1277
1261
|
|
1278
1262
|
|
@@ -1283,7 +1267,7 @@ Saves all instances to disk
|
|
1283
1267
|
<td class="date">2012-01-23 02:28:15</td>
|
1284
1268
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1285
1269
|
<td class="lines">67</td>
|
1286
|
-
<td><pre class="code"> <span class='
|
1270
|
+
<td><pre class="code"> <span class='kw'>false</span></pre></td>
|
1287
1271
|
</tr>
|
1288
1272
|
|
1289
1273
|
|
@@ -1294,7 +1278,7 @@ Saves all instances to disk
|
|
1294
1278
|
<td class="date">2012-01-23 02:28:15</td>
|
1295
1279
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1296
1280
|
<td class="lines">68</td>
|
1297
|
-
<td><pre class="code"> <span class='
|
1281
|
+
<td><pre class="code"> <span class='kw'>else</span></pre></td>
|
1298
1282
|
</tr>
|
1299
1283
|
|
1300
1284
|
|
@@ -1305,7 +1289,7 @@ Saves all instances to disk
|
|
1305
1289
|
<td class="date">2012-01-23 02:28:15</td>
|
1306
1290
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1307
1291
|
<td class="lines">69</td>
|
1308
|
-
<td><pre class="code"> <span class='
|
1292
|
+
<td><pre class="code"> <span class='kw'>true</span></pre></td>
|
1309
1293
|
</tr>
|
1310
1294
|
|
1311
1295
|
|
@@ -1316,7 +1300,7 @@ Saves all instances to disk
|
|
1316
1300
|
<td class="date">2012-01-23 02:28:15</td>
|
1317
1301
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1318
1302
|
<td class="lines">70</td>
|
1319
|
-
<td><pre class="code"> <span class='
|
1303
|
+
<td><pre class="code"> <span class='kw'>end</span></pre></td>
|
1320
1304
|
</tr>
|
1321
1305
|
|
1322
1306
|
|
@@ -1327,7 +1311,7 @@ Saves all instances to disk
|
|
1327
1311
|
<td class="date">2012-01-23 02:28:15</td>
|
1328
1312
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1329
1313
|
<td class="lines">71</td>
|
1330
|
-
<td><pre class="code"><span class='
|
1314
|
+
<td><pre class="code"><span class='kw'>end</span></pre></td>
|
1331
1315
|
</tr>
|
1332
1316
|
|
1333
1317
|
</table>
|
@@ -1391,7 +1375,7 @@ Saves all instances to disk
|
|
1391
1375
|
<td class="date">2012-01-23 02:28:15</td>
|
1392
1376
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1393
1377
|
<td class="lines">137</td>
|
1394
|
-
<td><pre class="code"><span class='
|
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>
|
1395
1379
|
</tr>
|
1396
1380
|
|
1397
1381
|
|
@@ -1402,7 +1386,7 @@ Saves all instances to disk
|
|
1402
1386
|
<td class="date">2012-01-23 02:28:15</td>
|
1403
1387
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1404
1388
|
<td class="lines">138</td>
|
1405
|
-
<td><pre class="code"> <span class='
|
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>
|
1406
1390
|
</tr>
|
1407
1391
|
|
1408
1392
|
|
@@ -1413,7 +1397,7 @@ Saves all instances to disk
|
|
1413
1397
|
<td class="date">2012-01-23 02:28:15</td>
|
1414
1398
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1415
1399
|
<td class="lines">139</td>
|
1416
|
-
<td><pre class="code"> <span class='
|
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>
|
1417
1401
|
</tr>
|
1418
1402
|
|
1419
1403
|
|
@@ -1424,7 +1408,7 @@ Saves all instances to disk
|
|
1424
1408
|
<td class="date">2012-01-23 02:28:15</td>
|
1425
1409
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1426
1410
|
<td class="lines">140</td>
|
1427
|
-
<td><pre class="code"><span class='
|
1411
|
+
<td><pre class="code"><span class='kw'>end</span></pre></td>
|
1428
1412
|
</tr>
|
1429
1413
|
|
1430
1414
|
</table>
|
@@ -1443,9 +1427,8 @@ Saves all instances to disk
|
|
1443
1427
|
|
1444
1428
|
</p><div class="docstring">
|
1445
1429
|
<div class="discussion">
|
1446
|
-
|
1447
|
-
Itself on success
|
1448
|
-
</p>
|
1430
|
+
|
1431
|
+
<p>Itself on success</p>
|
1449
1432
|
|
1450
1433
|
|
1451
1434
|
</div>
|
@@ -1463,9 +1446,8 @@ Itself on success
|
|
1463
1446
|
|
1464
1447
|
|
1465
1448
|
—
|
1466
|
-
<div class='inline'
|
1467
|
-
itself on success
|
1468
|
-
</p>
|
1449
|
+
<div class='inline'>
|
1450
|
+
<p>itself on success</p>
|
1469
1451
|
</div>
|
1470
1452
|
|
1471
1453
|
</li>
|
@@ -1500,7 +1482,7 @@ itself on success
|
|
1500
1482
|
<td class="date">2012-01-23 02:28:15</td>
|
1501
1483
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1502
1484
|
<td class="lines">112</td>
|
1503
|
-
<td><pre class="code"><span class='
|
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>
|
1504
1486
|
</tr>
|
1505
1487
|
|
1506
1488
|
|
@@ -1511,7 +1493,7 @@ itself on success
|
|
1511
1493
|
<td class="date">2012-01-23 02:28:15</td>
|
1512
1494
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1513
1495
|
<td class="lines">113</td>
|
1514
|
-
<td><pre class="code"> <span class='
|
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>
|
1515
1497
|
</tr>
|
1516
1498
|
|
1517
1499
|
|
@@ -1522,7 +1504,7 @@ itself on success
|
|
1522
1504
|
<td class="date">2012-01-23 02:28:15</td>
|
1523
1505
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1524
1506
|
<td class="lines">114</td>
|
1525
|
-
<td><pre class="code"> <span class='
|
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>
|
1526
1508
|
</tr>
|
1527
1509
|
|
1528
1510
|
|
@@ -1533,7 +1515,7 @@ itself on success
|
|
1533
1515
|
<td class="date">2012-01-23 02:28:15</td>
|
1534
1516
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1535
1517
|
<td class="lines">115</td>
|
1536
|
-
<td><pre class="code"> <span class='
|
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>
|
1537
1519
|
</tr>
|
1538
1520
|
|
1539
1521
|
|
@@ -1544,7 +1526,7 @@ itself on success
|
|
1544
1526
|
<td class="date">2012-01-23 02:28:15</td>
|
1545
1527
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1546
1528
|
<td class="lines">116</td>
|
1547
|
-
<td><pre class="code"> <span class='
|
1529
|
+
<td><pre class="code"> <span class='kw'>self</span></pre></td>
|
1548
1530
|
</tr>
|
1549
1531
|
|
1550
1532
|
|
@@ -1555,7 +1537,7 @@ itself on success
|
|
1555
1537
|
<td class="date">2012-01-23 02:28:15</td>
|
1556
1538
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1557
1539
|
<td class="lines">117</td>
|
1558
|
-
<td><pre class="code"> <span class='
|
1540
|
+
<td><pre class="code"> <span class='kw'>else</span></pre></td>
|
1559
1541
|
</tr>
|
1560
1542
|
|
1561
1543
|
|
@@ -1566,7 +1548,7 @@ itself on success
|
|
1566
1548
|
<td class="date">2012-01-23 02:28:15</td>
|
1567
1549
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1568
1550
|
<td class="lines">118</td>
|
1569
|
-
<td><pre class="code"> <span class='
|
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>
|
1570
1552
|
</tr>
|
1571
1553
|
|
1572
1554
|
|
@@ -1577,7 +1559,7 @@ itself on success
|
|
1577
1559
|
<td class="date">2012-01-23 02:28:15</td>
|
1578
1560
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1579
1561
|
<td class="lines">119</td>
|
1580
|
-
<td><pre class="code"> <span class='
|
1562
|
+
<td><pre class="code"> <span class='kw'>end</span></pre></td>
|
1581
1563
|
</tr>
|
1582
1564
|
|
1583
1565
|
|
@@ -1588,7 +1570,7 @@ itself on success
|
|
1588
1570
|
<td class="date">2012-01-23 02:28:15</td>
|
1589
1571
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1590
1572
|
<td class="lines">120</td>
|
1591
|
-
<td><pre class="code"><span class='
|
1573
|
+
<td><pre class="code"><span class='kw'>end</span></pre></td>
|
1592
1574
|
</tr>
|
1593
1575
|
|
1594
1576
|
</table>
|
@@ -1607,9 +1589,8 @@ itself on success
|
|
1607
1589
|
|
1608
1590
|
</p><div class="docstring">
|
1609
1591
|
<div class="discussion">
|
1610
|
-
|
1611
|
-
Itself on success
|
1612
|
-
</p>
|
1592
|
+
|
1593
|
+
<p>Itself on success</p>
|
1613
1594
|
|
1614
1595
|
|
1615
1596
|
</div>
|
@@ -1627,9 +1608,8 @@ Itself on success
|
|
1627
1608
|
|
1628
1609
|
|
1629
1610
|
—
|
1630
|
-
<div class='inline'
|
1631
|
-
itself on success
|
1632
|
-
</p>
|
1611
|
+
<div class='inline'>
|
1612
|
+
<p>itself on success</p>
|
1633
1613
|
</div>
|
1634
1614
|
|
1635
1615
|
</li>
|
@@ -1664,7 +1644,7 @@ itself on success
|
|
1664
1644
|
<td class="date">2012-01-23 02:28:15</td>
|
1665
1645
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1666
1646
|
<td class="lines">124</td>
|
1667
|
-
<td><pre class="code"><span class='
|
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>
|
1668
1648
|
</tr>
|
1669
1649
|
|
1670
1650
|
|
@@ -1675,7 +1655,7 @@ itself on success
|
|
1675
1655
|
<td class="date">2012-01-23 02:28:15</td>
|
1676
1656
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1677
1657
|
<td class="lines">125</td>
|
1678
|
-
<td><pre class="code"> <span class='
|
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>
|
1679
1659
|
</tr>
|
1680
1660
|
|
1681
1661
|
|
@@ -1686,7 +1666,7 @@ itself on success
|
|
1686
1666
|
<td class="date">2012-01-23 02:28:15</td>
|
1687
1667
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1688
1668
|
<td class="lines">126</td>
|
1689
|
-
<td><pre class="code"> <span class='
|
1669
|
+
<td><pre class="code"> <span class='kw'>begin</span></pre></td>
|
1690
1670
|
</tr>
|
1691
1671
|
|
1692
1672
|
|
@@ -1697,7 +1677,7 @@ itself on success
|
|
1697
1677
|
<td class="date">2012-01-23 02:28:15</td>
|
1698
1678
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1699
1679
|
<td class="lines">127</td>
|
1700
|
-
<td><pre class="code"> <span class='
|
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>
|
1701
1681
|
</tr>
|
1702
1682
|
|
1703
1683
|
|
@@ -1708,7 +1688,7 @@ itself on success
|
|
1708
1688
|
<td class="date">2012-01-23 02:28:15</td>
|
1709
1689
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1710
1690
|
<td class="lines">128</td>
|
1711
|
-
<td><pre class="code"> <span class='
|
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>
|
1712
1692
|
</tr>
|
1713
1693
|
|
1714
1694
|
|
@@ -1719,7 +1699,7 @@ itself on success
|
|
1719
1699
|
<td class="date">2012-01-23 02:28:15</td>
|
1720
1700
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1721
1701
|
<td class="lines">129</td>
|
1722
|
-
<td><pre class="code"> <span class='
|
1702
|
+
<td><pre class="code"> <span class='kw'>end</span></pre></td>
|
1723
1703
|
</tr>
|
1724
1704
|
|
1725
1705
|
|
@@ -1730,7 +1710,7 @@ itself on success
|
|
1730
1710
|
<td class="date">2012-01-23 02:28:15</td>
|
1731
1711
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1732
1712
|
<td class="lines">130</td>
|
1733
|
-
<td><pre class="code"> <span class='
|
1713
|
+
<td><pre class="code"> <span class='kw'>self</span></pre></td>
|
1734
1714
|
</tr>
|
1735
1715
|
|
1736
1716
|
|
@@ -1741,7 +1721,7 @@ itself on success
|
|
1741
1721
|
<td class="date">2012-01-23 02:28:15</td>
|
1742
1722
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1743
1723
|
<td class="lines">131</td>
|
1744
|
-
<td><pre class="code"> <span class='
|
1724
|
+
<td><pre class="code"> <span class='kw'>rescue</span> <span class='const'>Exception</span> <span class='op'>=></span> <span class='id identifier rubyid_e'>e</span></pre></td>
|
1745
1725
|
</tr>
|
1746
1726
|
|
1747
1727
|
|
@@ -1752,7 +1732,7 @@ itself on success
|
|
1752
1732
|
<td class="date">2012-01-23 02:28:15</td>
|
1753
1733
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1754
1734
|
<td class="lines">132</td>
|
1755
|
-
<td><pre class="code"> <span class='
|
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'>"</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'>"</span></span></pre></td>
|
1756
1736
|
</tr>
|
1757
1737
|
|
1758
1738
|
|
@@ -1763,7 +1743,7 @@ itself on success
|
|
1763
1743
|
<td class="date">2012-01-23 02:28:15</td>
|
1764
1744
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1765
1745
|
<td class="lines">133</td>
|
1766
|
-
<td><pre class="code"> <span class='
|
1746
|
+
<td><pre class="code"> <span class='kw'>end</span></pre></td>
|
1767
1747
|
</tr>
|
1768
1748
|
|
1769
1749
|
|
@@ -1774,7 +1754,7 @@ itself on success
|
|
1774
1754
|
<td class="date">2012-01-23 02:28:15</td>
|
1775
1755
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
1776
1756
|
<td class="lines">134</td>
|
1777
|
-
<td><pre class="code"><span class='
|
1757
|
+
<td><pre class="code"><span class='kw'>end</span></pre></td>
|
1778
1758
|
</tr>
|
1779
1759
|
|
1780
1760
|
</table>
|
@@ -1789,9 +1769,9 @@ itself on success
|
|
1789
1769
|
</div>
|
1790
1770
|
|
1791
1771
|
<div id="footer">
|
1792
|
-
Generated on
|
1772
|
+
Generated on Mon Jan 30 01:52:36 2012 by
|
1793
1773
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1794
|
-
0.7.4 (ruby-1.
|
1774
|
+
0.7.4 (ruby-1.9.3).
|
1795
1775
|
</div>
|
1796
1776
|
|
1797
1777
|
</body>
|