slave 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +390 -0
- data/doc/classes/Slave.html +765 -790
- data/doc/classes/Slave/LifeLine.html +262 -249
- data/doc/classes/Slave/ThreadSafe.html +184 -176
- data/doc/classes/Slave/ThreadSafeHash.html +85 -78
- data/doc/created.rid +1 -1
- data/doc/dot/f_0.dot +1 -1
- data/doc/dot/f_0.jpg +0 -0
- data/doc/dot/f_1.dot +1 -10
- data/doc/dot/f_1.jpg +0 -0
- data/doc/files/README.html +87 -70
- data/doc/files/lib/slave_rb.html +77 -83
- data/doc/fr_class_index.html +12 -13
- data/doc/fr_file_index.html +10 -10
- data/doc/fr_method_index.html +38 -39
- data/doc/index.html +3 -3
- data/doc/rdoc-style.css +79 -43
- data/install.rb +0 -0
- data/lib/slave.rb +1 -1
- data/rdoc.cmd +0 -0
- metadata +76 -64
- data/slave-1.2.1.gem +0 -0
@@ -1,45 +1,45 @@
|
|
1
1
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
2
|
<!DOCTYPE html
|
3
3
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"DTD/xhtml1-transitional.dtd">
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
5
|
|
6
6
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
7
|
<head>
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
8
|
+
<title>Class: Slave::LifeLine</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
43
|
|
44
44
|
</head>
|
45
45
|
<body>
|
@@ -47,15 +47,18 @@
|
|
47
47
|
|
48
48
|
|
49
49
|
<div id="classHeader">
|
50
|
-
<h1>Slave::LifeLine <sup class="type-note">(Class)</sup></h1>
|
51
50
|
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">Slave::LifeLine</td>
|
54
|
+
</tr>
|
52
55
|
<tr class="top-aligned-row">
|
53
56
|
<td><strong>In:</strong></td>
|
54
57
|
<td>
|
55
58
|
<a href="../../files/lib/slave_rb.html">
|
56
59
|
lib/slave.rb
|
57
60
|
</a>
|
58
|
-
|
61
|
+
<br />
|
59
62
|
</td>
|
60
63
|
</tr>
|
61
64
|
|
@@ -69,102 +72,112 @@
|
|
69
72
|
</div>
|
70
73
|
<!-- banner header -->
|
71
74
|
|
72
|
-
|
75
|
+
<div id="bodyContent">
|
73
76
|
|
74
77
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<area shape="
|
78
|
+
|
79
|
+
<div id="contextContent">
|
80
|
+
<div id="diagram">
|
81
|
+
<map id="map" name="map">
|
82
|
+
<area shape="rect" coords="27,50,99,98" href="../Slave.html" alt="Slave" />
|
80
83
|
</map>
|
81
|
-
<img src="../../dot/f_1.jpg" usemap="#map" border=0 alt="
|
82
|
-
|
84
|
+
<img src="../../dot/f_1.jpg" usemap="#map" border="0" alt="dot/f_1.jpg">
|
85
|
+
</div>
|
83
86
|
|
84
|
-
|
85
|
-
|
87
|
+
<div id="description">
|
88
|
+
<p>
|
86
89
|
the <a href="LifeLine.html">LifeLine</a> class is used to communitacte
|
87
90
|
between child and parent processes and to prevent child processes from ever
|
88
91
|
becoming zombies or otherwise abandoned by their parents. the basic concept
|
89
92
|
is that a socket pair is setup between child and parent. the child process,
|
90
93
|
because it is a <a href="../Slave.html">Slave</a>, sets up a handler such
|
91
|
-
that, should it&#
|
94
|
+
that, should it‘s socket ever grow stale, will exit the process. this
|
92
95
|
class replaces the HeartBeat class from previous <a
|
93
96
|
href="../Slave.html">Slave</a> versions.
|
94
97
|
</p>
|
95
98
|
|
96
|
-
|
99
|
+
</div>
|
97
100
|
|
98
101
|
|
99
|
-
|
100
|
-
<h2 class="section-bar">Methods</h2>
|
102
|
+
</div>
|
101
103
|
|
102
|
-
|
103
|
-
|
104
|
-
<a href="#M000030">cling</a>
|
105
|
-
<a href="#M000027">close_unused_sockets_after_forking</a>
|
106
|
-
<a href="#M000028">cut</a>
|
107
|
-
<a href="#M000023">new</a>
|
108
|
-
<a href="#M000029">on_cut</a>
|
109
|
-
<a href="#M000024">owner?</a>
|
110
|
-
<a href="#M000025">throw</a>
|
111
|
-
</div>
|
112
|
-
</div>
|
104
|
+
<div id="method-list">
|
105
|
+
<h3 class="section-bar">Methods</h3>
|
113
106
|
|
114
|
-
|
115
|
-
|
107
|
+
<div class="name-list">
|
108
|
+
<a href="#M000025">catch</a>
|
109
|
+
<a href="#M000029">cling</a>
|
110
|
+
<a href="#M000026">close_unused_sockets_after_forking</a>
|
111
|
+
<a href="#M000027">cut</a>
|
112
|
+
<a href="#M000022">new</a>
|
113
|
+
<a href="#M000028">on_cut</a>
|
114
|
+
<a href="#M000023">owner?</a>
|
115
|
+
<a href="#M000024">throw</a>
|
116
|
+
</div>
|
117
|
+
</div>
|
116
118
|
|
117
|
-
|
118
|
-
<table summary="Constants">
|
119
|
-
<tr class="top-aligned-row context-row">
|
120
|
-
<td class="context-item-name">FDS</td>
|
121
|
-
<td>=</td>
|
122
|
-
<td class="context-item-value">ThreadSafeHash.new</td>
|
123
|
-
</tr>
|
124
|
-
<tr class="top-aligned-row context-row">
|
125
|
-
<td class="context-item-name">DELEGATED</td>
|
126
|
-
<td>=</td>
|
127
|
-
<td class="context-item-value">%w( puts gets read write close flush each )</td>
|
128
|
-
</tr>
|
129
|
-
</table>
|
130
|
-
</div>
|
131
|
-
</div>
|
119
|
+
</div>
|
132
120
|
|
133
|
-
<div id="aliases-list">
|
134
|
-
<h2 class="section-bar">External Aliases</h2>
|
135
121
|
|
136
|
-
|
137
|
-
"cut" -> "release" <br />
|
138
|
-
</div>
|
139
|
-
</div>
|
122
|
+
<!-- if includes -->
|
140
123
|
|
124
|
+
<div id="section">
|
141
125
|
|
142
|
-
|
143
126
|
|
144
|
-
|
127
|
+
<div id="constants-list">
|
128
|
+
<h3 class="section-bar">Constants</h3>
|
145
129
|
|
130
|
+
<div class="name-list">
|
131
|
+
<table summary="Constants">
|
132
|
+
<tr class="top-aligned-row context-row">
|
133
|
+
<td class="context-item-name">FDS</td>
|
134
|
+
<td>=</td>
|
135
|
+
<td class="context-item-value">ThreadSafeHash.new</td>
|
136
|
+
</tr>
|
137
|
+
<tr class="top-aligned-row context-row">
|
138
|
+
<td class="context-item-name">DELEGATED</td>
|
139
|
+
<td>=</td>
|
140
|
+
<td class="context-item-value">%w( puts gets read write close flush each )</td>
|
141
|
+
</tr>
|
142
|
+
</table>
|
143
|
+
</div>
|
144
|
+
</div>
|
146
145
|
|
146
|
+
<div id="aliases-list">
|
147
|
+
<h3 class="section-bar">External Aliases</h3>
|
147
148
|
|
148
|
-
|
149
|
+
<div class="name-list">
|
150
|
+
<table summary="aliases">
|
151
|
+
<tr class="top-aligned-row context-row">
|
152
|
+
<td class="context-item-name">"cut"</td>
|
153
|
+
<td>-></td>
|
154
|
+
<td class="context-item-value">"release"</td>
|
155
|
+
</tr>
|
156
|
+
</table>
|
157
|
+
</div>
|
158
|
+
</div>
|
149
159
|
|
150
160
|
|
151
|
-
|
152
|
-
<div id="methods">
|
153
|
-
<h2 class="section-bar">Public Class methods</h2>
|
161
|
+
|
154
162
|
|
155
|
-
<div id="method-M000023" class="method-detail">
|
156
|
-
<a name="M000023"></a>
|
157
163
|
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
164
|
+
<!-- if method_list -->
|
165
|
+
<div id="methods">
|
166
|
+
<h3 class="section-bar">Public Class methods</h3>
|
167
|
+
|
168
|
+
<div id="method-M000022" class="method-detail">
|
169
|
+
<a name="M000022"></a>
|
170
|
+
|
171
|
+
<div class="method-heading">
|
172
|
+
<a href="#M000022" class="method-signature">
|
173
|
+
<span class="method-name">new</span><span class="method-args">()</span>
|
174
|
+
</a>
|
175
|
+
</div>
|
176
|
+
|
177
|
+
<div class="method-description">
|
178
|
+
<p><a class="source-toggle" href="#"
|
179
|
+
onclick="toggleCode('M000022-source');return false;">[Source]</a></p>
|
180
|
+
<div class="method-source-code" id="M000022-source">
|
168
181
|
<pre>
|
169
182
|
<span class="ruby-comment cmt"># File lib/slave.rb, line 171</span>
|
170
183
|
171: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
@@ -180,25 +193,25 @@ href="../Slave.html">Slave</a> versions.
|
|
180
193
|
181: <span class="ruby-constant">ObjectSpace</span>.<span class="ruby-identifier">define_finalizer</span>(<span class="ruby-keyword kw">self</span>){ <span class="ruby-constant">FDS</span>.<span class="ruby-identifier">delete</span> <span class="ruby-identifier">oid</span> }
|
181
194
|
182: <span class="ruby-keyword kw">end</span>
|
182
195
|
</pre>
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
196
|
+
</div>
|
197
|
+
</div>
|
198
|
+
</div>
|
199
|
+
|
200
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
201
|
+
|
202
|
+
<div id="method-M000025" class="method-detail">
|
203
|
+
<a name="M000025"></a>
|
204
|
+
|
205
|
+
<div class="method-heading">
|
206
|
+
<a href="#M000025" class="method-signature">
|
207
|
+
<span class="method-name">catch</span><span class="method-args">(*ignored)</span>
|
208
|
+
</a>
|
209
|
+
</div>
|
210
|
+
|
211
|
+
<div class="method-description">
|
212
|
+
<p><a class="source-toggle" href="#"
|
213
|
+
onclick="toggleCode('M000025-source');return false;">[Source]</a></p>
|
214
|
+
<div class="method-source-code" id="M000025-source">
|
202
215
|
<pre>
|
203
216
|
<span class="ruby-comment cmt"># File lib/slave.rb, line 197</span>
|
204
217
|
197: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">catch</span> <span class="ruby-operator">*</span><span class="ruby-identifier">ignored</span>
|
@@ -211,46 +224,46 @@ href="../Slave.html">Slave</a> versions.
|
|
211
224
|
204: <span class="ruby-identifier">close_unused_sockets_after_forking</span>
|
212
225
|
205: <span class="ruby-keyword kw">end</span>
|
213
226
|
</pre>
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
227
|
+
</div>
|
228
|
+
</div>
|
229
|
+
</div>
|
230
|
+
|
231
|
+
<div id="method-M000029" class="method-detail">
|
232
|
+
<a name="M000029"></a>
|
233
|
+
|
234
|
+
<div class="method-heading">
|
235
|
+
<a href="#M000029" class="method-signature">
|
236
|
+
<span class="method-name">cling</span><span class="method-args">(&b)</span>
|
237
|
+
</a>
|
238
|
+
</div>
|
239
|
+
|
240
|
+
<div class="method-description">
|
241
|
+
<p><a class="source-toggle" href="#"
|
242
|
+
onclick="toggleCode('M000029-source');return false;">[Source]</a></p>
|
243
|
+
<div class="method-source-code" id="M000029-source">
|
231
244
|
<pre>
|
232
|
-
<span class="ruby-comment cmt"># File lib/slave.rb, line
|
233
|
-
|
234
|
-
|
235
|
-
|
245
|
+
<span class="ruby-comment cmt"># File lib/slave.rb, line 265</span>
|
246
|
+
265: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cling</span> <span class="ruby-operator">&</span><span class="ruby-identifier">b</span>
|
247
|
+
266: <span class="ruby-identifier">on_cut</span>{ <span class="ruby-keyword kw">begin</span>; <span class="ruby-identifier">b</span>.<span class="ruby-identifier">call</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">b</span>; <span class="ruby-keyword kw">ensure</span>; <span class="ruby-constant">Kernel</span>.<span class="ruby-identifier">exit</span>; <span class="ruby-keyword kw">end</span> }.<span class="ruby-identifier">join</span>
|
248
|
+
267: <span class="ruby-keyword kw">end</span>
|
236
249
|
</pre>
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
250
|
+
</div>
|
251
|
+
</div>
|
252
|
+
</div>
|
253
|
+
|
254
|
+
<div id="method-M000026" class="method-detail">
|
255
|
+
<a name="M000026"></a>
|
256
|
+
|
257
|
+
<div class="method-heading">
|
258
|
+
<a href="#M000026" class="method-signature">
|
259
|
+
<span class="method-name">close_unused_sockets_after_forking</span><span class="method-args">()</span>
|
260
|
+
</a>
|
261
|
+
</div>
|
262
|
+
|
263
|
+
<div class="method-description">
|
264
|
+
<p><a class="source-toggle" href="#"
|
265
|
+
onclick="toggleCode('M000026-source');return false;">[Source]</a></p>
|
266
|
+
<div class="method-source-code" id="M000026-source">
|
254
267
|
<pre>
|
255
268
|
<span class="ruby-comment cmt"># File lib/slave.rb, line 207</span>
|
256
269
|
207: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close_unused_sockets_after_forking</span>
|
@@ -276,23 +289,23 @@ href="../Slave.html">Slave</a> versions.
|
|
276
289
|
227: <span class="ruby-keyword kw">end</span>
|
277
290
|
228: <span class="ruby-keyword kw">end</span>
|
278
291
|
</pre>
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
292
|
+
</div>
|
293
|
+
</div>
|
294
|
+
</div>
|
295
|
+
|
296
|
+
<div id="method-M000027" class="method-detail">
|
297
|
+
<a name="M000027"></a>
|
298
|
+
|
299
|
+
<div class="method-heading">
|
300
|
+
<a href="#M000027" class="method-signature">
|
301
|
+
<span class="method-name">cut</span><span class="method-args">()</span>
|
302
|
+
</a>
|
303
|
+
</div>
|
304
|
+
|
305
|
+
<div class="method-description">
|
306
|
+
<p><a class="source-toggle" href="#"
|
307
|
+
onclick="toggleCode('M000027-source');return false;">[Source]</a></p>
|
308
|
+
<div class="method-source-code" id="M000027-source">
|
296
309
|
<pre>
|
297
310
|
<span class="ruby-comment cmt"># File lib/slave.rb, line 230</span>
|
298
311
|
230: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cut</span>
|
@@ -302,80 +315,80 @@ href="../Slave.html">Slave</a> versions.
|
|
302
315
|
234: <span class="ruby-constant">FDS</span>.<span class="ruby-identifier">delete</span> <span class="ruby-identifier">object_id</span>
|
303
316
|
235: <span class="ruby-keyword kw">end</span>
|
304
317
|
</pre>
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
318
|
+
</div>
|
319
|
+
</div>
|
320
|
+
</div>
|
321
|
+
|
322
|
+
<div id="method-M000028" class="method-detail">
|
323
|
+
<a name="M000028"></a>
|
324
|
+
|
325
|
+
<div class="method-heading">
|
326
|
+
<a href="#M000028" class="method-signature">
|
327
|
+
<span class="method-name">on_cut</span><span class="method-args">(&b)</span>
|
328
|
+
</a>
|
329
|
+
</div>
|
330
|
+
|
331
|
+
<div class="method-description">
|
332
|
+
<p><a class="source-toggle" href="#"
|
333
|
+
onclick="toggleCode('M000028-source');return false;">[Source]</a></p>
|
334
|
+
<div class="method-source-code" id="M000028-source">
|
322
335
|
<pre>
|
323
|
-
<span class="ruby-comment cmt"># File lib/slave.rb, line
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
336
|
+
<span class="ruby-comment cmt"># File lib/slave.rb, line 250</span>
|
337
|
+
250: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">on_cut</span> <span class="ruby-operator">&</span><span class="ruby-identifier">b</span>
|
338
|
+
251: <span class="ruby-identifier">at_exit</span>{ <span class="ruby-keyword kw">begin</span>; <span class="ruby-identifier">b</span>.<span class="ruby-identifier">call</span>; <span class="ruby-keyword kw">ensure</span>; <span class="ruby-identifier">b</span> = <span class="ruby-keyword kw">nil</span>; <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">b</span>}
|
339
|
+
252: <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">Thread</span>.<span class="ruby-identifier">current</span>){<span class="ruby-operator">|</span><span class="ruby-identifier">current</span><span class="ruby-operator">|</span>
|
340
|
+
253: <span class="ruby-constant">Thread</span>.<span class="ruby-identifier">current</span>.<span class="ruby-identifier">abort_on_exception</span> = <span class="ruby-keyword kw">true</span>
|
341
|
+
254: <span class="ruby-keyword kw">begin</span>
|
342
|
+
255: <span class="ruby-identifier">each</span>{<span class="ruby-operator">|</span><span class="ruby-operator">*</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span>}
|
343
|
+
256: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Exception</span>
|
344
|
+
257: <span class="ruby-identifier">current</span>.<span class="ruby-identifier">raise</span> <span class="ruby-identifier">$!</span>
|
345
|
+
258: <span class="ruby-value">42</span>
|
346
|
+
259: <span class="ruby-keyword kw">ensure</span>
|
347
|
+
260: <span class="ruby-keyword kw">begin</span>; <span class="ruby-identifier">b</span>.<span class="ruby-identifier">call</span>; <span class="ruby-keyword kw">ensure</span>; <span class="ruby-identifier">b</span> = <span class="ruby-keyword kw">nil</span>; <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">b</span>
|
348
|
+
261: <span class="ruby-keyword kw">end</span>
|
349
|
+
262: }
|
350
|
+
263: <span class="ruby-keyword kw">end</span>
|
338
351
|
</pre>
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
352
|
+
</div>
|
353
|
+
</div>
|
354
|
+
</div>
|
355
|
+
|
356
|
+
<div id="method-M000023" class="method-detail">
|
357
|
+
<a name="M000023"></a>
|
358
|
+
|
359
|
+
<div class="method-heading">
|
360
|
+
<a href="#M000023" class="method-signature">
|
361
|
+
<span class="method-name">owner?</span><span class="method-args">()</span>
|
362
|
+
</a>
|
363
|
+
</div>
|
364
|
+
|
365
|
+
<div class="method-description">
|
366
|
+
<p><a class="source-toggle" href="#"
|
367
|
+
onclick="toggleCode('M000023-source');return false;">[Source]</a></p>
|
368
|
+
<div class="method-source-code" id="M000023-source">
|
356
369
|
<pre>
|
357
370
|
<span class="ruby-comment cmt"># File lib/slave.rb, line 184</span>
|
358
371
|
184: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">owner?</span>
|
359
372
|
185: <span class="ruby-constant">Process</span>.<span class="ruby-identifier">pid</span> <span class="ruby-operator">==</span> <span class="ruby-ivar">@owner</span>
|
360
373
|
186: <span class="ruby-keyword kw">end</span>
|
361
374
|
</pre>
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
375
|
+
</div>
|
376
|
+
</div>
|
377
|
+
</div>
|
378
|
+
|
379
|
+
<div id="method-M000024" class="method-detail">
|
380
|
+
<a name="M000024"></a>
|
381
|
+
|
382
|
+
<div class="method-heading">
|
383
|
+
<a href="#M000024" class="method-signature">
|
384
|
+
<span class="method-name">throw</span><span class="method-args">(*ignored)</span>
|
385
|
+
</a>
|
386
|
+
</div>
|
387
|
+
|
388
|
+
<div class="method-description">
|
389
|
+
<p><a class="source-toggle" href="#"
|
390
|
+
onclick="toggleCode('M000024-source');return false;">[Source]</a></p>
|
391
|
+
<div class="method-source-code" id="M000024-source">
|
379
392
|
<pre>
|
380
393
|
<span class="ruby-comment cmt"># File lib/slave.rb, line 188</span>
|
381
394
|
188: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">throw</span> <span class="ruby-operator">*</span><span class="ruby-identifier">ignored</span>
|
@@ -387,15 +400,15 @@ href="../Slave.html">Slave</a> versions.
|
|
387
400
|
194: <span class="ruby-ivar">@socket</span>.<span class="ruby-identifier">sync</span> = <span class="ruby-keyword kw">true</span>
|
388
401
|
195: <span class="ruby-keyword kw">end</span>
|
389
402
|
</pre>
|
390
|
-
|
391
|
-
|
392
|
-
|
403
|
+
</div>
|
404
|
+
</div>
|
405
|
+
</div>
|
393
406
|
|
394
407
|
|
395
|
-
|
408
|
+
</div>
|
396
409
|
|
397
410
|
|
398
|
-
|
411
|
+
</div>
|
399
412
|
|
400
413
|
|
401
414
|
<div id="validator-badges">
|