slave 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- <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>
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
- <br />
61
+ <br />
59
62
  </td>
60
63
  </tr>
61
64
 
@@ -69,102 +72,112 @@
69
72
  </div>
70
73
  <!-- banner header -->
71
74
 
72
- <div id="bodyContent">
75
+ <div id="bodyContent">
73
76
 
74
77
 
75
- <div id="contextContent">
76
- <div id="diagram">
77
- <map name="map">
78
- <area shape="RECT" coords="123,98,195,50" href="../o.html" alt="o">
79
- <area shape="RECT" coords="27,98,99,50" href="../Slave.html" alt="Slave">
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="TopLevel">
82
- </div>
84
+ <img src="../../dot/f_1.jpg" usemap="#map" border="0" alt="dot/f_1.jpg">
85
+ </div>
83
86
 
84
- <div id="description">
85
- <p>
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&#8217;s socket ever grow stale, will exit the process. this
94
+ that, should it&#8216;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
- </div>
99
+ </div>
97
100
 
98
101
 
99
- <div id="method-list">
100
- <h2 class="section-bar">Methods</h2>
102
+ </div>
101
103
 
102
- <div class="name-list">
103
- <a href="#M000026">catch</a>&nbsp;&nbsp;
104
- <a href="#M000030">cling</a>&nbsp;&nbsp;
105
- <a href="#M000027">close_unused_sockets_after_forking</a>&nbsp;&nbsp;
106
- <a href="#M000028">cut</a>&nbsp;&nbsp;
107
- <a href="#M000023">new</a>&nbsp;&nbsp;
108
- <a href="#M000029">on_cut</a>&nbsp;&nbsp;
109
- <a href="#M000024">owner?</a>&nbsp;&nbsp;
110
- <a href="#M000025">throw</a>&nbsp;&nbsp;
111
- </div>
112
- </div>
104
+ <div id="method-list">
105
+ <h3 class="section-bar">Methods</h3>
113
106
 
114
- <div id="constants-list">
115
- <h2 class="section-bar">Constants</h2>
107
+ <div class="name-list">
108
+ <a href="#M000025">catch</a>&nbsp;&nbsp;
109
+ <a href="#M000029">cling</a>&nbsp;&nbsp;
110
+ <a href="#M000026">close_unused_sockets_after_forking</a>&nbsp;&nbsp;
111
+ <a href="#M000027">cut</a>&nbsp;&nbsp;
112
+ <a href="#M000022">new</a>&nbsp;&nbsp;
113
+ <a href="#M000028">on_cut</a>&nbsp;&nbsp;
114
+ <a href="#M000023">owner?</a>&nbsp;&nbsp;
115
+ <a href="#M000024">throw</a>&nbsp;&nbsp;
116
+ </div>
117
+ </div>
116
118
 
117
- <div class="name-list">
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
- <div class="name-list">
137
- "cut" -> "release" <br />
138
- </div>
139
- </div>
122
+ <!-- if includes -->
140
123
 
124
+ <div id="section">
141
125
 
142
-
143
126
 
144
- </div>
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
- <!-- if includes -->
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>-&gt;</td>
154
+ <td class="context-item-value">"release"</td>
155
+ </tr>
156
+ </table>
157
+ </div>
158
+ </div>
149
159
 
150
160
 
151
- <!-- if method_list -->
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
- <div class="method-heading">
159
- <a href="#M000023" class="method-signature">
160
- <span class="method-name">new</span><span class="method-args">()</span>
161
- </a>
162
- </div>
163
-
164
- <div class="method-description">
165
- <p><a class="source-toggle" href="#"
166
- onclick="toggleCode('M000023-source');return false;">[Source]</a></p>
167
- <div class="method-source-code" id="M000023-source">
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
- </div>
184
- </div>
185
- </div>
186
-
187
- <h2 class="section-bar">Public Instance methods</h2>
188
-
189
- <div id="method-M000026" class="method-detail">
190
- <a name="M000026"></a>
191
-
192
- <div class="method-heading">
193
- <a href="#M000026" class="method-signature">
194
- <span class="method-name">catch</span><span class="method-args">(*ignored)</span>
195
- </a>
196
- </div>
197
-
198
- <div class="method-description">
199
- <p><a class="source-toggle" href="#"
200
- onclick="toggleCode('M000026-source');return false;">[Source]</a></p>
201
- <div class="method-source-code" id="M000026-source">
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
- </div>
215
- </div>
216
- </div>
217
-
218
- <div id="method-M000030" class="method-detail">
219
- <a name="M000030"></a>
220
-
221
- <div class="method-heading">
222
- <a href="#M000030" class="method-signature">
223
- <span class="method-name">cling</span><span class="method-args">(&amp;b)</span>
224
- </a>
225
- </div>
226
-
227
- <div class="method-description">
228
- <p><a class="source-toggle" href="#"
229
- onclick="toggleCode('M000030-source');return false;">[Source]</a></p>
230
- <div class="method-source-code" id="M000030-source">
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">(&amp;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 266</span>
233
- 266: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cling</span> <span class="ruby-operator">&amp;</span><span class="ruby-identifier">b</span>
234
- 267: <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>
235
- 268: <span class="ruby-keyword kw">end</span>
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">&amp;</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
- </div>
238
- </div>
239
- </div>
240
-
241
- <div id="method-M000027" class="method-detail">
242
- <a name="M000027"></a>
243
-
244
- <div class="method-heading">
245
- <a href="#M000027" class="method-signature">
246
- <span class="method-name">close_unused_sockets_after_forking</span><span class="method-args">()</span>
247
- </a>
248
- </div>
249
-
250
- <div class="method-description">
251
- <p><a class="source-toggle" href="#"
252
- onclick="toggleCode('M000027-source');return false;">[Source]</a></p>
253
- <div class="method-source-code" id="M000027-source">
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
- </div>
280
- </div>
281
- </div>
282
-
283
- <div id="method-M000028" class="method-detail">
284
- <a name="M000028"></a>
285
-
286
- <div class="method-heading">
287
- <a href="#M000028" class="method-signature">
288
- <span class="method-name">cut</span><span class="method-args">()</span>
289
- </a>
290
- </div>
291
-
292
- <div class="method-description">
293
- <p><a class="source-toggle" href="#"
294
- onclick="toggleCode('M000028-source');return false;">[Source]</a></p>
295
- <div class="method-source-code" id="M000028-source">
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
- </div>
306
- </div>
307
- </div>
308
-
309
- <div id="method-M000029" class="method-detail">
310
- <a name="M000029"></a>
311
-
312
- <div class="method-heading">
313
- <a href="#M000029" class="method-signature">
314
- <span class="method-name">on_cut</span><span class="method-args">(&amp;b)</span>
315
- </a>
316
- </div>
317
-
318
- <div class="method-description">
319
- <p><a class="source-toggle" href="#"
320
- onclick="toggleCode('M000029-source');return false;">[Source]</a></p>
321
- <div class="method-source-code" id="M000029-source">
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">(&amp;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 251</span>
324
- 251: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">on_cut</span> <span class="ruby-operator">&amp;</span><span class="ruby-identifier">b</span>
325
- 252: <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>}
326
- 253: <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>
327
- 254: <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>
328
- 255: <span class="ruby-keyword kw">begin</span>
329
- 256: <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>}
330
- 257: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Exception</span>
331
- 258: <span class="ruby-identifier">current</span>.<span class="ruby-identifier">raise</span> <span class="ruby-identifier">$!</span>
332
- 259: <span class="ruby-value">42</span>
333
- 260: <span class="ruby-keyword kw">ensure</span>
334
- 261: <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>
335
- 262: <span class="ruby-keyword kw">end</span>
336
- 263: }
337
- 264: <span class="ruby-keyword kw">end</span>
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">&amp;</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
- </div>
340
- </div>
341
- </div>
342
-
343
- <div id="method-M000024" class="method-detail">
344
- <a name="M000024"></a>
345
-
346
- <div class="method-heading">
347
- <a href="#M000024" class="method-signature">
348
- <span class="method-name">owner?</span><span class="method-args">()</span>
349
- </a>
350
- </div>
351
-
352
- <div class="method-description">
353
- <p><a class="source-toggle" href="#"
354
- onclick="toggleCode('M000024-source');return false;">[Source]</a></p>
355
- <div class="method-source-code" id="M000024-source">
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
- </div>
363
- </div>
364
- </div>
365
-
366
- <div id="method-M000025" class="method-detail">
367
- <a name="M000025"></a>
368
-
369
- <div class="method-heading">
370
- <a href="#M000025" class="method-signature">
371
- <span class="method-name">throw</span><span class="method-args">(*ignored)</span>
372
- </a>
373
- </div>
374
-
375
- <div class="method-description">
376
- <p><a class="source-toggle" href="#"
377
- onclick="toggleCode('M000025-source');return false;">[Source]</a></p>
378
- <div class="method-source-code" id="M000025-source">
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
- </div>
391
- </div>
392
- </div>
403
+ </div>
404
+ </div>
405
+ </div>
393
406
 
394
407
 
395
- </div>
408
+ </div>
396
409
 
397
410
 
398
- </div>
411
+ </div>
399
412
 
400
413
 
401
414
  <div id="validator-badges">