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
data/.rvmrc DELETED
@@ -1,71 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- # This is an RVM Project .rvmrc file, used to automatically load the ruby
4
- # development environment upon cd'ing into the directory
5
-
6
- # First we specify our desired <ruby>[@<gemset>], the @gemset name is optional.
7
- environment_id="ruby-1.9.3-p0@io_shuten"
8
-
9
- #
10
- # Uncomment following line if you want options to be set only for given project.
11
- #
12
- # PROJECT_JRUBY_OPTS=( --1.9 )
13
- #
14
- # The variable PROJECT_JRUBY_OPTS requires the following to be run in shell:
15
- #
16
- # chmod +x ${rvm_path}/hooks/after_use_jruby_opts
17
- #
18
-
19
- #
20
- # First we attempt to load the desired environment directly from the environment
21
- # file. This is very fast and efficient compared to running through the entire
22
- # CLI and selector. If you want feedback on which environment was used then
23
- # insert the word 'use' after --create as this triggers verbose mode.
24
- #
25
- if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
26
- && -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
27
- then
28
- \. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
29
-
30
- if [[ -s "${rvm_path:-$HOME/.rvm}/hooks/after_use" ]]
31
- then
32
- . "${rvm_path:-$HOME/.rvm}/hooks/after_use"
33
- fi
34
- else
35
- # If the environment file has not yet been created, use the RVM CLI to select.
36
- if ! rvm --create use "$environment_id"
37
- then
38
- echo "Failed to create RVM environment '${environment_id}'."
39
- return 1
40
- fi
41
- fi
42
-
43
- #
44
- # If you use an RVM gemset file to install a list of gems (*.gems), you can have
45
- # it be automatically loaded. Uncomment the following and adjust the filename if
46
- # necessary.
47
- #
48
- # filename=".gems"
49
- # if [[ -s "$filename" ]]
50
- # then
51
- # rvm gemset import "$filename" | grep -v already | grep -v listed | grep -v complete | sed '/^$/d'
52
- # fi
53
-
54
- # If you use bundler, this might be useful to you:
55
- # if [[ -s Gemfile ]] && ! command -v bundle >/dev/null
56
- # then
57
- # printf "The rubygem 'bundler' is not installed. Installing it now.\n"
58
- # gem install bundler
59
- # fi
60
- # if [[ -s Gemfile ]] && command -v bundle
61
- # then
62
- # bundle install
63
- # fi
64
-
65
- if [[ $- == *i* ]] # check for interactive shells
66
- then
67
- echo "Using: $(tput setaf 2)$GEM_HOME$(tput sgr0)" # show the user the ruby and gemset they are using in green
68
- else
69
- echo "Using: $GEM_HOME" # don't use colors in interactive shells
70
- fi
71
-
data/.simplecov DELETED
@@ -1,16 +0,0 @@
1
- if ENV["COV"] || ENV["COVERAGE"]
2
- require 'simplecov-rcov'
3
- require 'simplecov-csv'
4
- class SimpleCov::Formatter::MergedFormatter
5
- def format(result)
6
- SimpleCov::Formatter::RcovFormatter.new.format(result)
7
- SimpleCov::Formatter::HTMLFormatter.new.format(result)
8
- SimpleCov::Formatter::CSVFormatter.new.format(result)
9
- end
10
- end
11
- SimpleCov.formatter = SimpleCov::Formatter::MergedFormatter
12
- SimpleCov.start do
13
- add_filter "/spec/"
14
- end
15
- end
16
-
data/.yardopts DELETED
@@ -1,3 +0,0 @@
1
- --title 'IO::shuten 【五百::終点】'
2
- --no-private
3
- --plugin blame
@@ -1,198 +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::Buffer
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 (I)</a> &raquo;
39
-
40
-
41
- <span class="title">IO::Buffer</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::Buffer
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">Object</span>
72
-
73
- <ul class="fullTree">
74
- <li>Object</li>
75
-
76
- <li class="next">IO::Buffer</li>
77
-
78
- </ul>
79
- <a href="#" class="inheritanceTree">show all</a>
80
-
81
- </dd>
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
- <dt class="r2 last">Defined in:</dt>
92
- <dd class="r2 last">lib/io_shuten/buffer.rb</dd>
93
-
94
- </dl>
95
- <div class="clear"></div>
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
- <h2>
104
- Instance Method Summary
105
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
106
- </h2>
107
-
108
- <ul class="summary">
109
-
110
- <li class="public ">
111
- <span class="summary_signature">
112
-
113
- <a href="#close-instance_method" title="#close (instance method)">- (Object) <strong>close</strong> </a>
114
-
115
-
116
-
117
- </span>
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
- <span class="summary_desc"><div class='inline'><p>
127
- dummy.
128
- </p>
129
- </div></span>
130
-
131
- </li>
132
-
133
-
134
- </ul>
135
-
136
-
137
-
138
-
139
- <div id="instance_method_details" class="method_details_list">
140
- <h2>Instance Method Details</h2>
141
-
142
-
143
- <div class="method_details first">
144
- <p class="signature first" id="close-instance_method">
145
-
146
- - (<tt>Object</tt>) <strong>close</strong>
147
-
148
-
149
-
150
- </p><div class="docstring">
151
- <div class="discussion">
152
- <p>
153
- dummy
154
- </p>
155
-
156
-
157
- </div>
158
- </div>
159
- <div class="tags">
160
-
161
-
162
- </div><table class="source_code blame">
163
- <caption><span class="info file"># File 'lib/io_shuten/buffer.rb', line 6</span></caption>
164
- <tr>
165
- <td>
166
- <table>
167
-
168
-
169
-
170
- <tr>
171
-
172
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
173
-
174
- <td class="date">2012-01-26 00:33:32</td>
175
- <td class="commit"><a title="Fix some issues with incompatibilities of rubies">b0f63a42</a><td>
176
- <td class="lines">6</td>
177
- <td><pre class="code"><span class='rubyid_def def kw'>def</span> <span class='rubyid_close identifier id'>close</span><span class='semicolon token'>;</span> <span class='rubyid_end end kw'>end</span></pre></td>
178
- </tr>
179
-
180
- </table>
181
- </td>
182
- <td>
183
- </tr>
184
- </table>
185
- </div>
186
-
187
- </div>
188
-
189
- </div>
190
-
191
- <div id="footer">
192
- Generated on Thu Jan 26 00:41:21 2012 by
193
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
194
- 0.7.4 (ruby-1.8.7).
195
- </div>
196
-
197
- </body>
198
- </html>
data/doc/IO_shuten.html DELETED
@@ -1,126 +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
- Module: IO_shuten
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 (I)</a> &raquo;
39
-
40
-
41
- <span class="title">IO_shuten</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>Module: IO_shuten
62
-
63
-
64
-
65
- </h1>
66
-
67
- <dl class="box">
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
- <dt class="r1 last">Defined in:</dt>
77
- <dd class="r1 last">lib/io_shuten.rb<span class="defines">,<br />
78
- lib/io_shuten/zmq.rb,<br /> lib/io_shuten/base.rb,<br /> lib/io_shuten/mongo.rb,<br /> lib/io_shuten/redis.rb,<br /> lib/io_shuten/buffer.rb,<br /> lib/io_shuten/errors.rb,<br /> lib/io_shuten/memory.rb,<br /> lib/io_shuten/stores.rb,<br /> lib/io_shuten/version.rb</span>
79
- </dd>
80
-
81
- </dl>
82
- <div class="clear"></div>
83
-
84
- <h2>Overview</h2><div class="docstring">
85
- <div class="discussion">
86
-
87
- <p>Namespace of the IO implementations</p>
88
-
89
-
90
- </div>
91
- </div>
92
- <div class="tags">
93
-
94
-
95
- </div><h2>Defined Under Namespace</h2>
96
- <p class="children">
97
-
98
-
99
- <strong class="modules">Modules:</strong> <span class='object_link'><a href="IO_shuten/Errors.html" title="IO_shuten::Errors (module)">Errors</a></span>, <span class='object_link'><a href="IO_shuten/Stores.html" title="IO_shuten::Stores (module)">Stores</a></span>
100
-
101
-
102
-
103
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="IO_shuten/Base.html" title="IO_shuten::Base (class)">Base</a></span>, <span class='object_link'><a href="IO_shuten/Buffer.html" title="IO_shuten::Buffer (class)">Buffer</a></span>, <span class='object_link'><a href="IO_shuten/Memory.html" title="IO_shuten::Memory (class)">Memory</a></span>, <span class='object_link'><a href="IO_shuten/Mongo.html" title="IO_shuten::Mongo (class)">Mongo</a></span>, <span class='object_link'><a href="IO_shuten/Redis.html" title="IO_shuten::Redis (class)">Redis</a></span>, <span class='object_link'><a href="IO_shuten/Zmq.html" title="IO_shuten::Zmq (class)">Zmq</a></span>
104
-
105
-
106
- </p>
107
-
108
- <h2>Constant Summary</h2>
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
- </div>
118
-
119
- <div id="footer">
120
- Generated on Mon Jan 30 01:52:35 2012 by
121
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
122
- 0.7.4 (ruby-1.9.3).
123
- </div>
124
-
125
- </body>
126
- </html>
@@ -1,1062 +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::Base
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 (B)</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">Base</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::Base
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">Object</span>
72
-
73
- <ul class="fullTree">
74
- <li>Object</li>
75
-
76
- <li class="next">IO_shuten::Base</li>
77
-
78
- </ul>
79
- <a href="#" class="inheritanceTree">show all</a>
80
-
81
- </dd>
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
- <dt class="r2 last">Defined in:</dt>
92
- <dd class="r2 last">lib/io_shuten/base.rb</dd>
93
-
94
- </dl>
95
- <div class="clear"></div>
96
-
97
- <h2>Overview</h2><div class="docstring">
98
- <div class="discussion">
99
-
100
- <p>IO_shuten::Base is interface class for other implementations.</p>
101
-
102
-
103
- </div>
104
- </div>
105
- <div class="tags">
106
-
107
-
108
- </div><div id="subclasses">
109
- <h2>Direct Known Subclasses</h2>
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>
111
- </div>
112
-
113
- <h2>Constant Summary</h2>
114
-
115
- <dl class="constants">
116
-
117
- <dt id="instances-classvariable" class="">@@instances =
118
- <div class="docstring">
119
- <div class="discussion">
120
-
121
- <p>Storage of current Base instances of the running process</p>
122
-
123
-
124
- </div>
125
- </div>
126
- <div class="tags">
127
-
128
- <h3>Returns:</h3>
129
- <ul class="return">
130
-
131
- <li>
132
-
133
-
134
- <span class='type'>(<tt>Array</tt>)</span>
135
-
136
-
137
-
138
- </li>
139
-
140
- </ul>
141
-
142
- </div>
143
- </dt>
144
- <dd><pre class="code"><span class='lbracket'>[</span><span class='rbracket'>]</span></pre></dd>
145
-
146
- </dl>
147
-
148
-
149
-
150
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
151
- <ul class="summary">
152
-
153
- <li class="public ">
154
- <span class="summary_signature">
155
-
156
- <a href="#container-instance_method" title="#container (instance method)">- (StringIO) <strong>container</strong> </a>
157
-
158
-
159
-
160
- </span>
161
-
162
-
163
- <span class="note title readonly">readonly</span>
164
-
165
-
166
-
167
-
168
-
169
-
170
-
171
-
172
- <span class="summary_desc"><div class='inline'>
173
- <p>holds StringIO node.</p>
174
- </div></span>
175
-
176
- </li>
177
-
178
-
179
- <li class="public ">
180
- <span class="summary_signature">
181
-
182
- <a href="#node_name-instance_method" title="#node_name (instance method)">- (String) <strong>node_name</strong> </a>
183
-
184
-
185
-
186
- </span>
187
-
188
-
189
- <span class="note title readonly">readonly</span>
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
- <span class="summary_desc"><div class='inline'>
199
- <p>Name of current node instance.</p>
200
- </div></span>
201
-
202
- </li>
203
-
204
-
205
- </ul>
206
-
207
-
208
-
209
-
210
-
211
- <h2>
212
- Class Method Summary
213
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
214
- </h2>
215
-
216
- <ul class="summary">
217
-
218
- <li class="public ">
219
- <span class="summary_signature">
220
-
221
- <a href="#delete_instance-class_method" title="delete_instance (class method)">+ (Object) <strong>delete_instance</strong>(node_name_or_instance) </a>
222
-
223
-
224
-
225
- </span>
226
-
227
-
228
-
229
-
230
-
231
-
232
-
233
-
234
- <span class="summary_desc"><div class='inline'>
235
- <p>Deletes a single instance of the pool.</p>
236
- </div></span>
237
-
238
- </li>
239
-
240
-
241
- <li class="public ">
242
- <span class="summary_signature">
243
-
244
- <a href="#instance_exists%3F-class_method" title="instance_exists? (class method)">+ (Boolean) <strong>instance_exists?</strong>(node_name) </a>
245
-
246
-
247
-
248
- (also: instance_exist?, exists?, exist?)
249
-
250
- </span>
251
-
252
-
253
-
254
-
255
-
256
-
257
-
258
-
259
- <span class="summary_desc"><div class='inline'>
260
- <p>Checks for existence of a node.</p>
261
- </div></span>
262
-
263
- </li>
264
-
265
-
266
- <li class="public ">
267
- <span class="summary_signature">
268
-
269
- <a href="#instances-class_method" title="instances (class method)">+ (Array) <strong>instances</strong> </a>
270
-
271
-
272
-
273
- (also: pool, nodes)
274
-
275
- </span>
276
-
277
-
278
-
279
-
280
-
281
-
282
-
283
-
284
- <span class="summary_desc"><div class='inline'>
285
- <p>Current instances.</p>
286
- </div></span>
287
-
288
- </li>
289
-
290
-
291
- <li class="public ">
292
- <span class="summary_signature">
293
-
294
- <a href="#purge_instances%21-class_method" title="purge_instances! (class method)">+ (Boolean) <strong>purge_instances!</strong> </a>
295
-
296
-
297
-
298
- </span>
299
-
300
-
301
-
302
-
303
-
304
-
305
-
306
-
307
- <span class="summary_desc"><div class='inline'>
308
- <p>Deletes ALL instances in the pool!.</p>
309
- </div></span>
310
-
311
- </li>
312
-
313
-
314
- </ul>
315
-
316
-
317
- <div id="method_missing_details" class="method_details_list">
318
- <h2>Dynamic Method Handling</h2>
319
- <p class="notice this">
320
- This class handles dynamic methods through the <tt>method_missing</tt> method
321
-
322
- </p>
323
-
324
- <div class="method_details first">
325
- <p class="signature first" id="method_missing-instance_method">
326
-
327
- - (<tt>Object</tt>) <strong>method_missing</strong>(method, *args, &amp;block)
328
-
329
-
330
-
331
- </p><table class="source_code blame">
332
- <caption><span class="info file"># File 'lib/io_shuten/base.rb', line 79</span></caption>
333
- <tr>
334
- <td>
335
- <table>
336
-
337
-
338
-
339
- <tr>
340
-
341
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
342
-
343
- <td class="date">2012-01-21 18:02:36</td>
344
- <td class="commit"><a title="Reimplement #method_missing">3369fd59</a><td>
345
- <td class="lines">79</td>
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'>&amp;</span><span class='id identifier rubyid_block'>block</span></pre></td>
347
- </tr>
348
-
349
-
350
- <tr>
351
-
352
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
353
-
354
- <td class="date">2012-01-21 18:02:36</td>
355
- <td class="commit"><a title="Reimplement #method_missing">3369fd59</a><td>
356
- <td class="lines">80</td>
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>
358
- </tr>
359
-
360
-
361
- <tr>
362
-
363
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
364
-
365
- <td class="date">2012-01-22 21:35:53</td>
366
- <td class="commit"><a title="Base class is almost feature complete.">f2d93651</a><td>
367
- <td class="lines">81</td>
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'>&amp;</span><span class='id identifier rubyid_block'>block</span></pre></td>
369
- </tr>
370
-
371
-
372
- <tr>
373
-
374
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
375
-
376
- <td class="date">2012-01-22 21:35:53</td>
377
- <td class="commit"><a title="Base class is almost feature complete.">f2d93651</a><td>
378
- <td class="lines">82</td>
379
- <td><pre class="code"> <span class='kw'>else</span></pre></td>
380
- </tr>
381
-
382
-
383
- <tr>
384
-
385
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
386
-
387
- <td class="date">2012-01-21 18:02:36</td>
388
- <td class="commit"><a title="Reimplement #method_missing">3369fd59</a><td>
389
- <td class="lines">83</td>
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>
391
- </tr>
392
-
393
-
394
- <tr>
395
-
396
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
397
-
398
- <td class="date">2012-01-21 18:02:36</td>
399
- <td class="commit"><a title="Reimplement #method_missing">3369fd59</a><td>
400
- <td class="lines">84</td>
401
- <td><pre class="code"> <span class='kw'>end</span></pre></td>
402
- </tr>
403
-
404
-
405
- <tr>
406
-
407
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
408
-
409
- <td class="date">2012-01-21 18:02:36</td>
410
- <td class="commit"><a title="Reimplement #method_missing">3369fd59</a><td>
411
- <td class="lines">85</td>
412
- <td><pre class="code"><span class='kw'>end</span></pre></td>
413
- </tr>
414
-
415
- </table>
416
- </td>
417
- <td>
418
- </tr>
419
- </table>
420
- </div>
421
-
422
- </div>
423
-
424
- <div id="instance_attr_details" class="attr_details">
425
- <h2>Instance Attribute Details</h2>
426
-
427
-
428
- <span id=""></span>
429
- <span id="container-instance_method"></span>
430
- <div class="method_details first">
431
- <p class="signature first" id="container-instance_method">
432
-
433
- - (<tt>StringIO</tt>) <strong>container</strong> <span class="extras">(readonly)</span>
434
-
435
-
436
-
437
- </p><div class="docstring">
438
- <div class="discussion">
439
-
440
- <p>holds StringIO node</p>
441
-
442
-
443
- </div>
444
- </div>
445
- <div class="tags">
446
-
447
- <h3>Returns:</h3>
448
- <ul class="return">
449
-
450
- <li>
451
-
452
-
453
- <span class='type'>(<tt>StringIO</tt>)</span>
454
-
455
-
456
-
457
- </li>
458
-
459
- </ul>
460
-
461
- </div><table class="source_code blame">
462
- <caption><span class="info file"># File 'lib/io_shuten/base.rb', line 17</span></caption>
463
- <tr>
464
- <td>
465
- <table>
466
-
467
-
468
-
469
- <tr>
470
-
471
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
472
-
473
- <td class="date">2012-01-21 23:54:47</td>
474
- <td class="commit"><a title="Add more specs and yardoc task.">434c2c13</a><td>
475
- <td class="lines">17</td>
476
- <td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_container'>container</span></pre></td>
477
- </tr>
478
-
479
-
480
- <tr>
481
-
482
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
483
-
484
- <td class="date">2012-01-22 15:46:58</td>
485
- <td class="commit"><a title="Remove mocks, move errors.">33812483</a><td>
486
- <td class="lines">18</td>
487
- <td><pre class="code"> <span class='ivar'>@container</span></pre></td>
488
- </tr>
489
-
490
-
491
- <tr>
492
-
493
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
494
-
495
- <td class="date">2012-01-22 15:46:58</td>
496
- <td class="commit"><a title="Remove mocks, move errors.">33812483</a><td>
497
- <td class="lines">19</td>
498
- <td><pre class="code"><span class='kw'>end</span></pre></td>
499
- </tr>
500
-
501
- </table>
502
- </td>
503
- <td>
504
- </tr>
505
- </table>
506
- </div>
507
-
508
-
509
- <span id=""></span>
510
- <span id="node_name-instance_method"></span>
511
- <div class="method_details ">
512
- <p class="signature " id="node_name-instance_method">
513
-
514
- - (<tt>String</tt>) <strong>node_name</strong> <span class="extras">(readonly)</span>
515
-
516
-
517
-
518
- </p><div class="docstring">
519
- <div class="discussion">
520
-
521
- <p>Name of current node instance</p>
522
-
523
-
524
- </div>
525
- </div>
526
- <div class="tags">
527
-
528
- <h3>Returns:</h3>
529
- <ul class="return">
530
-
531
- <li>
532
-
533
-
534
- <span class='type'>(<tt>String</tt>)</span>
535
-
536
-
537
-
538
- </li>
539
-
540
- </ul>
541
-
542
- </div><table class="source_code blame">
543
- <caption><span class="info file"># File 'lib/io_shuten/base.rb', line 13</span></caption>
544
- <tr>
545
- <td>
546
- <table>
547
-
548
-
549
-
550
- <tr>
551
-
552
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
553
-
554
- <td class="date">2012-01-21 23:54:47</td>
555
- <td class="commit"><a title="Add more specs and yardoc task.">434c2c13</a><td>
556
- <td class="lines">13</td>
557
- <td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_node_name'>node_name</span></pre></td>
558
- </tr>
559
-
560
-
561
- <tr>
562
-
563
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
564
-
565
- <td class="date">2012-01-22 21:35:53</td>
566
- <td class="commit"><a title="Base class is almost feature complete.">f2d93651</a><td>
567
- <td class="lines">14</td>
568
- <td><pre class="code"> <span class='ivar'>@node_name</span></pre></td>
569
- </tr>
570
-
571
-
572
- <tr>
573
-
574
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
575
-
576
- <td class="date">2012-01-21 23:54:47</td>
577
- <td class="commit"><a title="Add more specs and yardoc task.">434c2c13</a><td>
578
- <td class="lines">15</td>
579
- <td><pre class="code"><span class='kw'>end</span></pre></td>
580
- </tr>
581
-
582
- </table>
583
- </td>
584
- <td>
585
- </tr>
586
- </table>
587
- </div>
588
-
589
- </div>
590
-
591
-
592
- <div id="class_method_details" class="method_details_list">
593
- <h2>Class Method Details</h2>
594
-
595
-
596
- <div class="method_details first">
597
- <p class="signature first" id="delete_instance-class_method">
598
-
599
- + (<tt>Object</tt>) <strong>delete_instance</strong>(node_name_or_instance)
600
-
601
-
602
-
603
- </p><div class="docstring">
604
- <div class="discussion">
605
-
606
- <p>Deletes a single instance of the pool</p>
607
-
608
-
609
- </div>
610
- </div>
611
- <div class="tags">
612
- <h3>Parameters:</h3>
613
- <ul class="param">
614
-
615
- <li>
616
-
617
- <span class='name'>node</span>
618
-
619
-
620
- <span class='type'>(<tt><span class='object_link'><a href="" title="IO_shuten::Base (class)">Base</a></span></tt>)</span>
621
-
622
-
623
-
624
- &mdash;
625
- <div class='inline'>
626
- <p>instance</p>
627
- </div>
628
-
629
- </li>
630
-
631
- <li>
632
-
633
- <span class='name'>name</span>
634
-
635
-
636
- <span class='type'>(<tt>String</tt>)</span>
637
-
638
-
639
-
640
- &mdash;
641
- <div class='inline'>
642
- <p>of node as String</p>
643
- </div>
644
-
645
- </li>
646
-
647
- <li>
648
-
649
- <span class='name'>name</span>
650
-
651
-
652
- <span class='type'>(<tt>Symbol</tt>)</span>
653
-
654
-
655
-
656
- &mdash;
657
- <div class='inline'>
658
- <p>of node as Symbol</p>
659
- </div>
660
-
661
- </li>
662
-
663
- </ul>
664
-
665
-
666
- </div><table class="source_code blame">
667
- <caption><span class="info file"># File 'lib/io_shuten/base.rb', line 42</span></caption>
668
- <tr>
669
- <td>
670
- <table>
671
-
672
-
673
-
674
- <tr>
675
-
676
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
677
-
678
- <td class="date">2012-01-22 21:35:53</td>
679
- <td class="commit"><a title="Base class is almost feature complete.">f2d93651</a><td>
680
- <td class="lines">42</td>
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>
682
- </tr>
683
-
684
-
685
- <tr>
686
-
687
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
688
-
689
- <td class="date">2012-01-22 21:35:53</td>
690
- <td class="commit"><a title="Base class is almost feature complete.">f2d93651</a><td>
691
- <td class="lines">43</td>
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>
693
- </tr>
694
-
695
-
696
- <tr>
697
-
698
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
699
-
700
- <td class="date">2012-01-22 21:35:53</td>
701
- <td class="commit"><a title="Base class is almost feature complete.">f2d93651</a><td>
702
- <td class="lines">44</td>
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'>&amp;&amp;</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>
704
- </tr>
705
-
706
-
707
- <tr>
708
-
709
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
710
-
711
- <td class="date">2012-01-22 21:35:53</td>
712
- <td class="commit"><a title="Base class is almost feature complete.">f2d93651</a><td>
713
- <td class="lines">45</td>
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'>&amp;&amp;</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>
715
- </tr>
716
-
717
-
718
- <tr>
719
-
720
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
721
-
722
- <td class="date">2012-01-21 14:44:16</td>
723
- <td class="commit"><a title="Add IO_shuten::Base in-memory instance storage.">03ec2d91</a><td>
724
- <td class="lines">46</td>
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'>&amp;&amp;</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>
726
- </tr>
727
-
728
-
729
- <tr>
730
-
731
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
732
-
733
- <td class="date">2012-01-21 14:44:16</td>
734
- <td class="commit"><a title="Add IO_shuten::Base in-memory instance storage.">03ec2d91</a><td>
735
- <td class="lines">47</td>
736
- <td><pre class="code"> <span class='kw'>end</span></pre></td>
737
- </tr>
738
-
739
-
740
- <tr>
741
-
742
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
743
-
744
- <td class="date">2012-01-21 14:44:16</td>
745
- <td class="commit"><a title="Add IO_shuten::Base in-memory instance storage.">03ec2d91</a><td>
746
- <td class="lines">48</td>
747
- <td><pre class="code"><span class='kw'>end</span></pre></td>
748
- </tr>
749
-
750
- </table>
751
- </td>
752
- <td>
753
- </tr>
754
- </table>
755
- </div>
756
-
757
- <div class="method_details ">
758
- <p class="signature " id="instance_exists?-class_method">
759
-
760
- + (<tt>Boolean</tt>) <strong>instance_exists?</strong>(node_name)
761
-
762
-
763
-
764
- <span class="aliases">Also known as:
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>
766
- </span>
767
-
768
- </p><div class="docstring">
769
- <div class="discussion">
770
-
771
- <p>Checks for existence of a node</p>
772
-
773
-
774
- </div>
775
- </div>
776
- <div class="tags">
777
- <h3>Parameters:</h3>
778
- <ul class="param">
779
-
780
- <li>
781
-
782
- <span class='name'>name</span>
783
-
784
-
785
- <span class='type'>(<tt>String</tt>)</span>
786
-
787
-
788
-
789
- &mdash;
790
- <div class='inline'>
791
- <p>of node as String</p>
792
- </div>
793
-
794
- </li>
795
-
796
- <li>
797
-
798
- <span class='name'>name</span>
799
-
800
-
801
- <span class='type'>(<tt>Symbol</tt>)</span>
802
-
803
-
804
-
805
- &mdash;
806
- <div class='inline'>
807
- <p>of node as Symbol</p>
808
- </div>
809
-
810
- </li>
811
-
812
- </ul>
813
-
814
- <h3>Returns:</h3>
815
- <ul class="return">
816
-
817
- <li>
818
-
819
-
820
- <span class='type'>(<tt>Boolean</tt>)</span>
821
-
822
-
823
-
824
- </li>
825
-
826
- </ul>
827
-
828
- </div><table class="source_code blame">
829
- <caption><span class="info file"># File 'lib/io_shuten/base.rb', line 56</span></caption>
830
- <tr>
831
- <td>
832
- <table>
833
-
834
-
835
-
836
- <tr>
837
-
838
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
839
-
840
- <td class="date">2012-01-22 21:35:53</td>
841
- <td class="commit"><a title="Base class is almost feature complete.">f2d93651</a><td>
842
- <td class="lines">56</td>
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>
844
- </tr>
845
-
846
-
847
- <tr>
848
-
849
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
850
-
851
- <td class="date">2012-01-22 21:35:53</td>
852
- <td class="commit"><a title="Base class is almost feature complete.">f2d93651</a><td>
853
- <td class="lines">57</td>
854
- <td><pre class="code"> <span class='comment'># we need to check for node_name, otherwise it will fail though node exists</pre></td>
855
- </tr>
856
-
857
-
858
- <tr>
859
-
860
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
861
-
862
- <td class="date">2012-01-22 15:46:58</td>
863
- <td class="commit"><a title="Remove mocks, move errors.">33812483</a><td>
864
- <td class="lines">58</td>
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'>&amp;&amp;</span> <span class='id identifier rubyid_node_name'>node_name</span> <span class='op'>&amp;&amp;</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'>&amp;</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>
866
- </tr>
867
-
868
-
869
- <tr>
870
-
871
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
872
-
873
- <td class="date">2012-01-22 15:46:58</td>
874
- <td class="commit"><a title="Remove mocks, move errors.">33812483</a><td>
875
- <td class="lines">59</td>
876
- <td><pre class="code"><span class='kw'>end</span></pre></td>
877
- </tr>
878
-
879
- </table>
880
- </td>
881
- <td>
882
- </tr>
883
- </table>
884
- </div>
885
-
886
- <div class="method_details ">
887
- <p class="signature " id="instances-class_method">
888
-
889
- + (<tt>Array</tt>) <strong>instances</strong>
890
-
891
-
892
-
893
- <span class="aliases">Also known as:
894
- <span class="names"><span id='pool-class_method'>pool</span>, <span id='nodes-class_method'>nodes</span></span>
895
- </span>
896
-
897
- </p><div class="docstring">
898
- <div class="discussion">
899
-
900
- <p>Current instances</p>
901
-
902
-
903
- </div>
904
- </div>
905
- <div class="tags">
906
-
907
- <h3>Returns:</h3>
908
- <ul class="return">
909
-
910
- <li>
911
-
912
-
913
- <span class='type'>(<tt>Array</tt>)</span>
914
-
915
-
916
-
917
- &mdash;
918
- <div class='inline'>
919
- <p>current instances</p>
920
- </div>
921
-
922
- </li>
923
-
924
- </ul>
925
-
926
- </div><table class="source_code blame">
927
- <caption><span class="info file"># File 'lib/io_shuten/base.rb', line 24</span></caption>
928
- <tr>
929
- <td>
930
- <table>
931
-
932
-
933
-
934
- <tr>
935
-
936
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
937
-
938
- <td class="date">2012-01-21 14:44:16</td>
939
- <td class="commit"><a title="Add IO_shuten::Base in-memory instance storage.">03ec2d91</a><td>
940
- <td class="lines">24</td>
941
- <td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_instances'>instances</span></pre></td>
942
- </tr>
943
-
944
-
945
- <tr>
946
-
947
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
948
-
949
- <td class="date">2012-01-21 14:44:16</td>
950
- <td class="commit"><a title="Add IO_shuten::Base in-memory instance storage.">03ec2d91</a><td>
951
- <td class="lines">25</td>
952
- <td><pre class="code"> <span class='cvar'>@@instances</span></pre></td>
953
- </tr>
954
-
955
-
956
- <tr>
957
-
958
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
959
-
960
- <td class="date">2012-01-22 21:35:53</td>
961
- <td class="commit"><a title="Base class is almost feature complete.">f2d93651</a><td>
962
- <td class="lines">26</td>
963
- <td><pre class="code"><span class='kw'>end</span></pre></td>
964
- </tr>
965
-
966
- </table>
967
- </td>
968
- <td>
969
- </tr>
970
- </table>
971
- </div>
972
-
973
- <div class="method_details ">
974
- <p class="signature " id="purge_instances!-class_method">
975
-
976
- + (<tt>Boolean</tt>) <strong>purge_instances!</strong>
977
-
978
-
979
-
980
- </p><div class="docstring">
981
- <div class="discussion">
982
-
983
- <p>Deletes ALL instances in the pool!</p>
984
-
985
-
986
- </div>
987
- </div>
988
- <div class="tags">
989
-
990
- <h3>Returns:</h3>
991
- <ul class="return">
992
-
993
- <li>
994
-
995
-
996
- <span class='type'>(<tt>Boolean</tt>)</span>
997
-
998
-
999
-
1000
- </li>
1001
-
1002
- </ul>
1003
-
1004
- </div><table class="source_code blame">
1005
- <caption><span class="info file"># File 'lib/io_shuten/base.rb', line 33</span></caption>
1006
- <tr>
1007
- <td>
1008
- <table>
1009
-
1010
-
1011
-
1012
- <tr>
1013
-
1014
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1015
-
1016
- <td class="date">2012-01-22 15:46:58</td>
1017
- <td class="commit"><a title="Remove mocks, move errors.">33812483</a><td>
1018
- <td class="lines">33</td>
1019
- <td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_purge_instances!'>purge_instances!</span></pre></td>
1020
- </tr>
1021
-
1022
-
1023
- <tr>
1024
-
1025
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1026
-
1027
- <td class="date">2012-01-21 14:44:16</td>
1028
- <td class="commit"><a title="Add IO_shuten::Base in-memory instance storage.">03ec2d91</a><td>
1029
- <td class="lines">34</td>
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>
1031
- </tr>
1032
-
1033
-
1034
- <tr>
1035
-
1036
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
1037
-
1038
- <td class="date">2012-01-21 14:44:16</td>
1039
- <td class="commit"><a title="Add IO_shuten::Base in-memory instance storage.">03ec2d91</a><td>
1040
- <td class="lines">35</td>
1041
- <td><pre class="code"><span class='kw'>end</span></pre></td>
1042
- </tr>
1043
-
1044
- </table>
1045
- </td>
1046
- <td>
1047
- </tr>
1048
- </table>
1049
- </div>
1050
-
1051
- </div>
1052
-
1053
- </div>
1054
-
1055
- <div id="footer">
1056
- Generated on Mon Jan 30 01:52:36 2012 by
1057
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1058
- 0.7.4 (ruby-1.9.3).
1059
- </div>
1060
-
1061
- </body>
1062
- </html>