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/Base.html
CHANGED
@@ -96,9 +96,8 @@
|
|
96
96
|
|
97
97
|
<h2>Overview</h2><div class="docstring">
|
98
98
|
<div class="discussion">
|
99
|
-
|
100
|
-
IO_shuten::Base is interface class for other implementations
|
101
|
-
</p>
|
99
|
+
|
100
|
+
<p>IO_shuten::Base is interface class for other implementations.</p>
|
102
101
|
|
103
102
|
|
104
103
|
</div>
|
@@ -108,7 +107,7 @@ IO_shuten::Base is interface class for other implementations.
|
|
108
107
|
|
109
108
|
</div><div id="subclasses">
|
110
109
|
<h2>Direct Known Subclasses</h2>
|
111
|
-
<p class="children"><span class='object_link'><a href="Buffer.html" title="IO_shuten::Buffer (class)">Buffer</a></span>, <span class='object_link'><a href="Memory.html" title="IO_shuten::Memory (class)">Memory</a></span>, <span class='object_link'><a href="Mongo.html" title="IO_shuten::Mongo (class)">Mongo</a></span>, <span class='object_link'><a href="Redis.html" title="IO_shuten::Redis (class)">Redis</a></span></p>
|
110
|
+
<p class="children"><span class='object_link'><a href="Buffer.html" title="IO_shuten::Buffer (class)">Buffer</a></span>, <span class='object_link'><a href="Memory.html" title="IO_shuten::Memory (class)">Memory</a></span>, <span class='object_link'><a href="Mongo.html" title="IO_shuten::Mongo (class)">Mongo</a></span>, <span class='object_link'><a href="Redis.html" title="IO_shuten::Redis (class)">Redis</a></span>, <span class='object_link'><a href="Zmq.html" title="IO_shuten::Zmq (class)">Zmq</a></span></p>
|
112
111
|
</div>
|
113
112
|
|
114
113
|
<h2>Constant Summary</h2>
|
@@ -118,9 +117,8 @@ IO_shuten::Base is interface class for other implementations.
|
|
118
117
|
<dt id="instances-classvariable" class="">@@instances =
|
119
118
|
<div class="docstring">
|
120
119
|
<div class="discussion">
|
121
|
-
|
122
|
-
Storage of current Base instances of the running process
|
123
|
-
</p>
|
120
|
+
|
121
|
+
<p>Storage of current Base instances of the running process</p>
|
124
122
|
|
125
123
|
|
126
124
|
</div>
|
@@ -143,8 +141,7 @@ Storage of current Base instances of the running process
|
|
143
141
|
|
144
142
|
</div>
|
145
143
|
</dt>
|
146
|
-
<dd><pre class="code"><span class='
|
147
|
-
</pre></dd>
|
144
|
+
<dd><pre class="code"><span class='lbracket'>[</span><span class='rbracket'>]</span></pre></dd>
|
148
145
|
|
149
146
|
</dl>
|
150
147
|
|
@@ -172,9 +169,8 @@ Storage of current Base instances of the running process
|
|
172
169
|
|
173
170
|
|
174
171
|
|
175
|
-
<span class="summary_desc"><div class='inline'
|
176
|
-
holds StringIO node
|
177
|
-
</p>
|
172
|
+
<span class="summary_desc"><div class='inline'>
|
173
|
+
<p>holds StringIO node.</p>
|
178
174
|
</div></span>
|
179
175
|
|
180
176
|
</li>
|
@@ -199,9 +195,8 @@ holds StringIO node.
|
|
199
195
|
|
200
196
|
|
201
197
|
|
202
|
-
<span class="summary_desc"><div class='inline'
|
203
|
-
Name of current node instance
|
204
|
-
</p>
|
198
|
+
<span class="summary_desc"><div class='inline'>
|
199
|
+
<p>Name of current node instance.</p>
|
205
200
|
</div></span>
|
206
201
|
|
207
202
|
</li>
|
@@ -236,9 +231,8 @@ Name of current node instance.
|
|
236
231
|
|
237
232
|
|
238
233
|
|
239
|
-
<span class="summary_desc"><div class='inline'
|
240
|
-
Deletes a single instance of the pool
|
241
|
-
</p>
|
234
|
+
<span class="summary_desc"><div class='inline'>
|
235
|
+
<p>Deletes a single instance of the pool.</p>
|
242
236
|
</div></span>
|
243
237
|
|
244
238
|
</li>
|
@@ -251,7 +245,7 @@ Deletes a single instance of the pool.
|
|
251
245
|
|
252
246
|
|
253
247
|
|
254
|
-
(also: instance_exist?,
|
248
|
+
(also: instance_exist?, exists?, exist?)
|
255
249
|
|
256
250
|
</span>
|
257
251
|
|
@@ -262,9 +256,8 @@ Deletes a single instance of the pool.
|
|
262
256
|
|
263
257
|
|
264
258
|
|
265
|
-
<span class="summary_desc"><div class='inline'
|
266
|
-
Checks for existence of a node
|
267
|
-
</p>
|
259
|
+
<span class="summary_desc"><div class='inline'>
|
260
|
+
<p>Checks for existence of a node.</p>
|
268
261
|
</div></span>
|
269
262
|
|
270
263
|
</li>
|
@@ -277,7 +270,7 @@ Checks for existence of a node.
|
|
277
270
|
|
278
271
|
|
279
272
|
|
280
|
-
(also:
|
273
|
+
(also: pool, nodes)
|
281
274
|
|
282
275
|
</span>
|
283
276
|
|
@@ -288,9 +281,8 @@ Checks for existence of a node.
|
|
288
281
|
|
289
282
|
|
290
283
|
|
291
|
-
<span class="summary_desc"><div class='inline'
|
292
|
-
Current instances
|
293
|
-
</p>
|
284
|
+
<span class="summary_desc"><div class='inline'>
|
285
|
+
<p>Current instances.</p>
|
294
286
|
</div></span>
|
295
287
|
|
296
288
|
</li>
|
@@ -312,9 +304,8 @@ Current instances.
|
|
312
304
|
|
313
305
|
|
314
306
|
|
315
|
-
<span class="summary_desc"><div class='inline'
|
316
|
-
Deletes ALL instances in the pool
|
317
|
-
</p>
|
307
|
+
<span class="summary_desc"><div class='inline'>
|
308
|
+
<p>Deletes ALL instances in the pool!.</p>
|
318
309
|
</div></span>
|
319
310
|
|
320
311
|
</li>
|
@@ -352,7 +343,7 @@ Deletes ALL instances in the pool!.
|
|
352
343
|
<td class="date">2012-01-21 18:02:36</td>
|
353
344
|
<td class="commit"><a title="Reimplement #method_missing">3369fd59</a><td>
|
354
345
|
<td class="lines">79</td>
|
355
|
-
<td><pre class="code"><span class='
|
346
|
+
<td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_method_missing'>method_missing</span> <span class='id identifier rubyid_method'>method</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span></pre></td>
|
356
347
|
</tr>
|
357
348
|
|
358
349
|
|
@@ -363,7 +354,7 @@ Deletes ALL instances in the pool!.
|
|
363
354
|
<td class="date">2012-01-21 18:02:36</td>
|
364
355
|
<td class="commit"><a title="Reimplement #method_missing">3369fd59</a><td>
|
365
356
|
<td class="lines">80</td>
|
366
|
-
<td><pre class="code"> <span class='
|
357
|
+
<td><pre class="code"> <span class='kw'>if</span> <span class='id identifier rubyid_respond_to_missing?'>respond_to_missing?</span> <span class='id identifier rubyid_method'>method</span></pre></td>
|
367
358
|
</tr>
|
368
359
|
|
369
360
|
|
@@ -374,7 +365,7 @@ Deletes ALL instances in the pool!.
|
|
374
365
|
<td class="date">2012-01-22 21:35:53</td>
|
375
366
|
<td class="commit"><a title="Base class is almost feature complete.">f2d93651</a><td>
|
376
367
|
<td class="lines">81</td>
|
377
|
-
<td><pre class="code"> <span class='
|
368
|
+
<td><pre class="code"> <span class='ivar'>@container</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span> <span class='id identifier rubyid_method'>method</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span></pre></td>
|
378
369
|
</tr>
|
379
370
|
|
380
371
|
|
@@ -385,7 +376,7 @@ Deletes ALL instances in the pool!.
|
|
385
376
|
<td class="date">2012-01-22 21:35:53</td>
|
386
377
|
<td class="commit"><a title="Base class is almost feature complete.">f2d93651</a><td>
|
387
378
|
<td class="lines">82</td>
|
388
|
-
<td><pre class="code"> <span class='
|
379
|
+
<td><pre class="code"> <span class='kw'>else</span></pre></td>
|
389
380
|
</tr>
|
390
381
|
|
391
382
|
|
@@ -396,7 +387,7 @@ Deletes ALL instances in the pool!.
|
|
396
387
|
<td class="date">2012-01-21 18:02:36</td>
|
397
388
|
<td class="commit"><a title="Reimplement #method_missing">3369fd59</a><td>
|
398
389
|
<td class="lines">83</td>
|
399
|
-
<td><pre class="code"> <span class='rubyid_not_yet_implemented!
|
390
|
+
<td><pre class="code"> <span class='id identifier rubyid_not_yet_implemented!'>not_yet_implemented!</span> <span class='id identifier rubyid_method'>method</span></pre></td>
|
400
391
|
</tr>
|
401
392
|
|
402
393
|
|
@@ -407,7 +398,7 @@ Deletes ALL instances in the pool!.
|
|
407
398
|
<td class="date">2012-01-21 18:02:36</td>
|
408
399
|
<td class="commit"><a title="Reimplement #method_missing">3369fd59</a><td>
|
409
400
|
<td class="lines">84</td>
|
410
|
-
<td><pre class="code"> <span class='
|
401
|
+
<td><pre class="code"> <span class='kw'>end</span></pre></td>
|
411
402
|
</tr>
|
412
403
|
|
413
404
|
|
@@ -418,7 +409,7 @@ Deletes ALL instances in the pool!.
|
|
418
409
|
<td class="date">2012-01-21 18:02:36</td>
|
419
410
|
<td class="commit"><a title="Reimplement #method_missing">3369fd59</a><td>
|
420
411
|
<td class="lines">85</td>
|
421
|
-
<td><pre class="code"><span class='
|
412
|
+
<td><pre class="code"><span class='kw'>end</span></pre></td>
|
422
413
|
</tr>
|
423
414
|
|
424
415
|
</table>
|
@@ -445,9 +436,8 @@ Deletes ALL instances in the pool!.
|
|
445
436
|
|
446
437
|
</p><div class="docstring">
|
447
438
|
<div class="discussion">
|
448
|
-
|
449
|
-
holds StringIO node
|
450
|
-
</p>
|
439
|
+
|
440
|
+
<p>holds StringIO node</p>
|
451
441
|
|
452
442
|
|
453
443
|
</div>
|
@@ -483,7 +473,7 @@ holds StringIO node
|
|
483
473
|
<td class="date">2012-01-21 23:54:47</td>
|
484
474
|
<td class="commit"><a title="Add more specs and yardoc task.">434c2c13</a><td>
|
485
475
|
<td class="lines">17</td>
|
486
|
-
<td><pre class="code"><span class='
|
476
|
+
<td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_container'>container</span></pre></td>
|
487
477
|
</tr>
|
488
478
|
|
489
479
|
|
@@ -494,7 +484,7 @@ holds StringIO node
|
|
494
484
|
<td class="date">2012-01-22 15:46:58</td>
|
495
485
|
<td class="commit"><a title="Remove mocks, move errors.">33812483</a><td>
|
496
486
|
<td class="lines">18</td>
|
497
|
-
<td><pre class="code"> <span class='
|
487
|
+
<td><pre class="code"> <span class='ivar'>@container</span></pre></td>
|
498
488
|
</tr>
|
499
489
|
|
500
490
|
|
@@ -505,7 +495,7 @@ holds StringIO node
|
|
505
495
|
<td class="date">2012-01-22 15:46:58</td>
|
506
496
|
<td class="commit"><a title="Remove mocks, move errors.">33812483</a><td>
|
507
497
|
<td class="lines">19</td>
|
508
|
-
<td><pre class="code"><span class='
|
498
|
+
<td><pre class="code"><span class='kw'>end</span></pre></td>
|
509
499
|
</tr>
|
510
500
|
|
511
501
|
</table>
|
@@ -527,9 +517,8 @@ holds StringIO node
|
|
527
517
|
|
528
518
|
</p><div class="docstring">
|
529
519
|
<div class="discussion">
|
530
|
-
|
531
|
-
Name of current node instance
|
532
|
-
</p>
|
520
|
+
|
521
|
+
<p>Name of current node instance</p>
|
533
522
|
|
534
523
|
|
535
524
|
</div>
|
@@ -565,7 +554,7 @@ Name of current node instance
|
|
565
554
|
<td class="date">2012-01-21 23:54:47</td>
|
566
555
|
<td class="commit"><a title="Add more specs and yardoc task.">434c2c13</a><td>
|
567
556
|
<td class="lines">13</td>
|
568
|
-
<td><pre class="code"><span class='
|
557
|
+
<td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_node_name'>node_name</span></pre></td>
|
569
558
|
</tr>
|
570
559
|
|
571
560
|
|
@@ -576,7 +565,7 @@ Name of current node instance
|
|
576
565
|
<td class="date">2012-01-22 21:35:53</td>
|
577
566
|
<td class="commit"><a title="Base class is almost feature complete.">f2d93651</a><td>
|
578
567
|
<td class="lines">14</td>
|
579
|
-
<td><pre class="code"> <span class='
|
568
|
+
<td><pre class="code"> <span class='ivar'>@node_name</span></pre></td>
|
580
569
|
</tr>
|
581
570
|
|
582
571
|
|
@@ -587,7 +576,7 @@ Name of current node instance
|
|
587
576
|
<td class="date">2012-01-21 23:54:47</td>
|
588
577
|
<td class="commit"><a title="Add more specs and yardoc task.">434c2c13</a><td>
|
589
578
|
<td class="lines">15</td>
|
590
|
-
<td><pre class="code"><span class='
|
579
|
+
<td><pre class="code"><span class='kw'>end</span></pre></td>
|
591
580
|
</tr>
|
592
581
|
|
593
582
|
</table>
|
@@ -613,9 +602,8 @@ Name of current node instance
|
|
613
602
|
|
614
603
|
</p><div class="docstring">
|
615
604
|
<div class="discussion">
|
616
|
-
|
617
|
-
Deletes a single instance of the pool
|
618
|
-
</p>
|
605
|
+
|
606
|
+
<p>Deletes a single instance of the pool</p>
|
619
607
|
|
620
608
|
|
621
609
|
</div>
|
@@ -634,9 +622,8 @@ Deletes a single instance of the pool
|
|
634
622
|
|
635
623
|
|
636
624
|
—
|
637
|
-
<div class='inline'
|
638
|
-
instance
|
639
|
-
</p>
|
625
|
+
<div class='inline'>
|
626
|
+
<p>instance</p>
|
640
627
|
</div>
|
641
628
|
|
642
629
|
</li>
|
@@ -651,9 +638,8 @@ instance
|
|
651
638
|
|
652
639
|
|
653
640
|
—
|
654
|
-
<div class='inline'
|
655
|
-
of node as String
|
656
|
-
</p>
|
641
|
+
<div class='inline'>
|
642
|
+
<p>of node as String</p>
|
657
643
|
</div>
|
658
644
|
|
659
645
|
</li>
|
@@ -668,9 +654,8 @@ of node as String
|
|
668
654
|
|
669
655
|
|
670
656
|
—
|
671
|
-
<div class='inline'
|
672
|
-
of node as Symbol
|
673
|
-
</p>
|
657
|
+
<div class='inline'>
|
658
|
+
<p>of node as Symbol</p>
|
674
659
|
</div>
|
675
660
|
|
676
661
|
</li>
|
@@ -693,7 +678,7 @@ of node as Symbol
|
|
693
678
|
<td class="date">2012-01-22 21:35:53</td>
|
694
679
|
<td class="commit"><a title="Base class is almost feature complete.">f2d93651</a><td>
|
695
680
|
<td class="lines">42</td>
|
696
|
-
<td><pre class="code"><span class='
|
681
|
+
<td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_delete_instance'>delete_instance</span> <span class='id identifier rubyid_node_name_or_instance'>node_name_or_instance</span></pre></td>
|
697
682
|
</tr>
|
698
683
|
|
699
684
|
|
@@ -704,7 +689,7 @@ of node as Symbol
|
|
704
689
|
<td class="date">2012-01-22 21:35:53</td>
|
705
690
|
<td class="commit"><a title="Base class is almost feature complete.">f2d93651</a><td>
|
706
691
|
<td class="lines">43</td>
|
707
|
-
<td><pre class="code"> <span class='
|
692
|
+
<td><pre class="code"> <span class='cvar'>@@instances</span><span class='period'>.</span><span class='id identifier rubyid_delete_if'>delete_if</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_node'>node</span><span class='op'>|</span></pre></td>
|
708
693
|
</tr>
|
709
694
|
|
710
695
|
|
@@ -715,7 +700,7 @@ of node as Symbol
|
|
715
700
|
<td class="date">2012-01-22 21:35:53</td>
|
716
701
|
<td class="commit"><a title="Base class is almost feature complete.">f2d93651</a><td>
|
717
702
|
<td class="lines">44</td>
|
718
|
-
<td><pre class="code"> <span class='lparen
|
703
|
+
<td><pre class="code"> <span class='lparen'>(</span><span class='id identifier rubyid_node_name_or_instance'>node_name_or_instance</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Symbol</span><span class='rparen'>)</span> <span class='op'>&&</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='op'>==</span> <span class='id identifier rubyid_node_name_or_instance'>node_name_or_instance</span><span class='rparen'>)</span> <span class='op'>||</span></pre></td>
|
719
704
|
</tr>
|
720
705
|
|
721
706
|
|
@@ -726,7 +711,7 @@ of node as Symbol
|
|
726
711
|
<td class="date">2012-01-22 21:35:53</td>
|
727
712
|
<td class="commit"><a title="Base class is almost feature complete.">f2d93651</a><td>
|
728
713
|
<td class="lines">45</td>
|
729
|
-
<td><pre class="code"> <span class='lparen
|
714
|
+
<td><pre class="code"> <span class='lparen'>(</span><span class='id identifier rubyid_node_name_or_instance'>node_name_or_instance</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>String</span><span class='rparen'>)</span> <span class='op'>&&</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='op'>==</span> <span class='id identifier rubyid_node_name_or_instance'>node_name_or_instance</span><span class='rparen'>)</span> <span class='op'>||</span></pre></td>
|
730
715
|
</tr>
|
731
716
|
|
732
717
|
|
@@ -737,7 +722,7 @@ of node as Symbol
|
|
737
722
|
<td class="date">2012-01-21 14:44:16</td>
|
738
723
|
<td class="commit"><a title="Add IO_shuten::Base in-memory instance storage.">03ec2d91</a><td>
|
739
724
|
<td class="lines">46</td>
|
740
|
-
<td><pre class="code"> <span class='lparen
|
725
|
+
<td><pre class="code"> <span class='lparen'>(</span><span class='id identifier rubyid_node_name_or_instance'>node_name_or_instance</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Base</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='id identifier rubyid_node'>node</span> <span class='op'>==</span> <span class='id identifier rubyid_node_name_or_instance'>node_name_or_instance</span><span class='rparen'>)</span></pre></td>
|
741
726
|
</tr>
|
742
727
|
|
743
728
|
|
@@ -748,7 +733,7 @@ of node as Symbol
|
|
748
733
|
<td class="date">2012-01-21 14:44:16</td>
|
749
734
|
<td class="commit"><a title="Add IO_shuten::Base in-memory instance storage.">03ec2d91</a><td>
|
750
735
|
<td class="lines">47</td>
|
751
|
-
<td><pre class="code"> <span class='
|
736
|
+
<td><pre class="code"> <span class='kw'>end</span></pre></td>
|
752
737
|
</tr>
|
753
738
|
|
754
739
|
|
@@ -759,7 +744,7 @@ of node as Symbol
|
|
759
744
|
<td class="date">2012-01-21 14:44:16</td>
|
760
745
|
<td class="commit"><a title="Add IO_shuten::Base in-memory instance storage.">03ec2d91</a><td>
|
761
746
|
<td class="lines">48</td>
|
762
|
-
<td><pre class="code"><span class='
|
747
|
+
<td><pre class="code"><span class='kw'>end</span></pre></td>
|
763
748
|
</tr>
|
764
749
|
|
765
750
|
</table>
|
@@ -777,14 +762,13 @@ of node as Symbol
|
|
777
762
|
|
778
763
|
|
779
764
|
<span class="aliases">Also known as:
|
780
|
-
<span class="names"><span id='instance_exist?-class_method'>instance_exist?</span>, <span id='
|
765
|
+
<span class="names"><span id='instance_exist?-class_method'>instance_exist?</span>, <span id='exists?-class_method'>exists?</span>, <span id='exist?-class_method'>exist?</span></span>
|
781
766
|
</span>
|
782
767
|
|
783
768
|
</p><div class="docstring">
|
784
769
|
<div class="discussion">
|
785
|
-
|
786
|
-
Checks for existence of a node
|
787
|
-
</p>
|
770
|
+
|
771
|
+
<p>Checks for existence of a node</p>
|
788
772
|
|
789
773
|
|
790
774
|
</div>
|
@@ -803,9 +787,8 @@ Checks for existence of a node
|
|
803
787
|
|
804
788
|
|
805
789
|
—
|
806
|
-
<div class='inline'
|
807
|
-
of node as String
|
808
|
-
</p>
|
790
|
+
<div class='inline'>
|
791
|
+
<p>of node as String</p>
|
809
792
|
</div>
|
810
793
|
|
811
794
|
</li>
|
@@ -820,9 +803,8 @@ of node as String
|
|
820
803
|
|
821
804
|
|
822
805
|
—
|
823
|
-
<div class='inline'
|
824
|
-
of node as Symbol
|
825
|
-
</p>
|
806
|
+
<div class='inline'>
|
807
|
+
<p>of node as Symbol</p>
|
826
808
|
</div>
|
827
809
|
|
828
810
|
</li>
|
@@ -858,7 +840,7 @@ of node as Symbol
|
|
858
840
|
<td class="date">2012-01-22 21:35:53</td>
|
859
841
|
<td class="commit"><a title="Base class is almost feature complete.">f2d93651</a><td>
|
860
842
|
<td class="lines">56</td>
|
861
|
-
<td><pre class="code"><span class='
|
843
|
+
<td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_instance_exists?'>instance_exists?</span> <span class='id identifier rubyid_node_name'>node_name</span></pre></td>
|
862
844
|
</tr>
|
863
845
|
|
864
846
|
|
@@ -869,7 +851,7 @@ of node as Symbol
|
|
869
851
|
<td class="date">2012-01-22 21:35:53</td>
|
870
852
|
<td class="commit"><a title="Base class is almost feature complete.">f2d93651</a><td>
|
871
853
|
<td class="lines">57</td>
|
872
|
-
<td><pre class="code"> <span class='comment
|
854
|
+
<td><pre class="code"> <span class='comment'># we need to check for node_name, otherwise it will fail though node exists</pre></td>
|
873
855
|
</tr>
|
874
856
|
|
875
857
|
|
@@ -880,7 +862,7 @@ of node as Symbol
|
|
880
862
|
<td class="date">2012-01-22 15:46:58</td>
|
881
863
|
<td class="commit"><a title="Remove mocks, move errors.">33812483</a><td>
|
882
864
|
<td class="lines">58</td>
|
883
|
-
<td><pre class="code"> <span class='
|
865
|
+
<td><pre class="code"></span> <span class='op'>!</span><span class='id identifier rubyid_instances'>instances</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span> <span class='op'>&&</span> <span class='id identifier rubyid_node_name'>node_name</span> <span class='op'>&&</span> <span class='id identifier rubyid_instances'>instances</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:node_name</span><span class='rparen'>)</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='rparen'>)</span></pre></td>
|
884
866
|
</tr>
|
885
867
|
|
886
868
|
|
@@ -891,7 +873,7 @@ of node as Symbol
|
|
891
873
|
<td class="date">2012-01-22 15:46:58</td>
|
892
874
|
<td class="commit"><a title="Remove mocks, move errors.">33812483</a><td>
|
893
875
|
<td class="lines">59</td>
|
894
|
-
<td><pre class="code"><span class='
|
876
|
+
<td><pre class="code"><span class='kw'>end</span></pre></td>
|
895
877
|
</tr>
|
896
878
|
|
897
879
|
</table>
|
@@ -909,14 +891,13 @@ of node as Symbol
|
|
909
891
|
|
910
892
|
|
911
893
|
<span class="aliases">Also known as:
|
912
|
-
<span class="names"><span id='
|
894
|
+
<span class="names"><span id='pool-class_method'>pool</span>, <span id='nodes-class_method'>nodes</span></span>
|
913
895
|
</span>
|
914
896
|
|
915
897
|
</p><div class="docstring">
|
916
898
|
<div class="discussion">
|
917
|
-
|
918
|
-
Current instances
|
919
|
-
</p>
|
899
|
+
|
900
|
+
<p>Current instances</p>
|
920
901
|
|
921
902
|
|
922
903
|
</div>
|
@@ -934,9 +915,8 @@ Current instances
|
|
934
915
|
|
935
916
|
|
936
917
|
—
|
937
|
-
<div class='inline'
|
938
|
-
current instances
|
939
|
-
</p>
|
918
|
+
<div class='inline'>
|
919
|
+
<p>current instances</p>
|
940
920
|
</div>
|
941
921
|
|
942
922
|
</li>
|
@@ -958,7 +938,7 @@ current instances
|
|
958
938
|
<td class="date">2012-01-21 14:44:16</td>
|
959
939
|
<td class="commit"><a title="Add IO_shuten::Base in-memory instance storage.">03ec2d91</a><td>
|
960
940
|
<td class="lines">24</td>
|
961
|
-
<td><pre class="code"><span class='
|
941
|
+
<td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_instances'>instances</span></pre></td>
|
962
942
|
</tr>
|
963
943
|
|
964
944
|
|
@@ -969,7 +949,7 @@ current instances
|
|
969
949
|
<td class="date">2012-01-21 14:44:16</td>
|
970
950
|
<td class="commit"><a title="Add IO_shuten::Base in-memory instance storage.">03ec2d91</a><td>
|
971
951
|
<td class="lines">25</td>
|
972
|
-
<td><pre class="code"> <span class='
|
952
|
+
<td><pre class="code"> <span class='cvar'>@@instances</span></pre></td>
|
973
953
|
</tr>
|
974
954
|
|
975
955
|
|
@@ -980,7 +960,7 @@ current instances
|
|
980
960
|
<td class="date">2012-01-22 21:35:53</td>
|
981
961
|
<td class="commit"><a title="Base class is almost feature complete.">f2d93651</a><td>
|
982
962
|
<td class="lines">26</td>
|
983
|
-
<td><pre class="code"><span class='
|
963
|
+
<td><pre class="code"><span class='kw'>end</span></pre></td>
|
984
964
|
</tr>
|
985
965
|
|
986
966
|
</table>
|
@@ -999,9 +979,8 @@ current instances
|
|
999
979
|
|
1000
980
|
</p><div class="docstring">
|
1001
981
|
<div class="discussion">
|
1002
|
-
|
1003
|
-
Deletes ALL instances in the pool
|
1004
|
-
</p>
|
982
|
+
|
983
|
+
<p>Deletes ALL instances in the pool!</p>
|
1005
984
|
|
1006
985
|
|
1007
986
|
</div>
|
@@ -1037,7 +1016,7 @@ Deletes ALL instances in the pool!
|
|
1037
1016
|
<td class="date">2012-01-22 15:46:58</td>
|
1038
1017
|
<td class="commit"><a title="Remove mocks, move errors.">33812483</a><td>
|
1039
1018
|
<td class="lines">33</td>
|
1040
|
-
<td><pre class="code"><span class='
|
1019
|
+
<td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_purge_instances!'>purge_instances!</span></pre></td>
|
1041
1020
|
</tr>
|
1042
1021
|
|
1043
1022
|
|
@@ -1048,7 +1027,7 @@ Deletes ALL instances in the pool!
|
|
1048
1027
|
<td class="date">2012-01-21 14:44:16</td>
|
1049
1028
|
<td class="commit"><a title="Add IO_shuten::Base in-memory instance storage.">03ec2d91</a><td>
|
1050
1029
|
<td class="lines">34</td>
|
1051
|
-
<td><pre class="code"> <span class='
|
1030
|
+
<td><pre class="code"> <span class='cvar'>@@instances</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span> <span class='kw'>and</span> <span class='kw'>true</span></pre></td>
|
1052
1031
|
</tr>
|
1053
1032
|
|
1054
1033
|
|
@@ -1059,7 +1038,7 @@ Deletes ALL instances in the pool!
|
|
1059
1038
|
<td class="date">2012-01-21 14:44:16</td>
|
1060
1039
|
<td class="commit"><a title="Add IO_shuten::Base in-memory instance storage.">03ec2d91</a><td>
|
1061
1040
|
<td class="lines">35</td>
|
1062
|
-
<td><pre class="code"><span class='
|
1041
|
+
<td><pre class="code"><span class='kw'>end</span></pre></td>
|
1063
1042
|
</tr>
|
1064
1043
|
|
1065
1044
|
</table>
|
@@ -1074,9 +1053,9 @@ Deletes ALL instances in the pool!
|
|
1074
1053
|
</div>
|
1075
1054
|
|
1076
1055
|
<div id="footer">
|
1077
|
-
Generated on
|
1056
|
+
Generated on Mon Jan 30 01:52:36 2012 by
|
1078
1057
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1079
|
-
0.7.4 (ruby-1.
|
1058
|
+
0.7.4 (ruby-1.9.3).
|
1080
1059
|
</div>
|
1081
1060
|
|
1082
1061
|
</body>
|