rubybreaker 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. data/ABOUT.md +20 -0
  2. data/NEWS +5 -0
  3. data/README.md +16 -352
  4. data/Rakefile +30 -16
  5. data/TOPICS.md +55 -0
  6. data/TUTORIAL.md +291 -0
  7. data/VERSION +1 -1
  8. data/bin/rubybreaker +32 -14
  9. data/lib/rubybreaker/runtime/monitor.rb +1 -1
  10. data/lib/rubybreaker/runtime.rb +41 -21
  11. data/lib/rubybreaker/task.rb +15 -9
  12. data/lib/rubybreaker/test/rspec.rb +3 -3
  13. data/lib/rubybreaker/test/testcase.rb +3 -3
  14. data/lib/rubybreaker.rb +31 -16
  15. data/test/integrated/{tc_both_broken_breakable.rb → tc_both_documented_and_undocumented.rb} +3 -4
  16. data/test/integrated/tc_class_methods.rb +1 -1
  17. data/test/integrated/tc_inherit_broken.rb +1 -1
  18. data/test/integrated/tc_method_missing.rb +1 -1
  19. data/test/integrated/tc_namespace.rb +1 -1
  20. data/test/integrated/tc_simple1.rb +1 -1
  21. data/test/testtask/tc_testtask.rb +2 -2
  22. data/test/ts_integrated.rb +1 -1
  23. data/test/ts_rspec.rb +1 -1
  24. data/webpage/about.html +50 -0
  25. data/webpage/footer.html +6 -1
  26. data/webpage/header.html +9 -3
  27. data/webpage/images/logo.png +0 -0
  28. data/webpage/images/title.png +0 -0
  29. data/webpage/index.html +31 -367
  30. data/webpage/rdoc/Object.html +3 -103
  31. data/webpage/rdoc/Rake/RubyBreakerTestTask.html +80 -18
  32. data/webpage/rdoc/Rake.html +3 -7
  33. data/webpage/rdoc/RubyBreaker/Breakable.html +4 -8
  34. data/webpage/rdoc/RubyBreaker/Broken.html +4 -8
  35. data/webpage/rdoc/RubyBreaker/Context.html +3 -7
  36. data/webpage/rdoc/RubyBreaker/Errors/InternalError.html +3 -7
  37. data/webpage/rdoc/RubyBreaker/Errors/InvalidSubtypeCheck.html +3 -7
  38. data/webpage/rdoc/RubyBreaker/Errors/InvalidTypeConstruction.html +3 -7
  39. data/webpage/rdoc/RubyBreaker/Errors/SubtypeFailure.html +3 -7
  40. data/webpage/rdoc/RubyBreaker/Errors/TypeError.html +3 -7
  41. data/webpage/rdoc/RubyBreaker/Errors/UserError.html +3 -7
  42. data/webpage/rdoc/RubyBreaker/Errors.html +3 -7
  43. data/webpage/rdoc/RubyBreaker/ObjectPosition.html +3 -7
  44. data/webpage/rdoc/RubyBreaker/Position.html +3 -7
  45. data/webpage/rdoc/RubyBreaker/RDocSupport.html +3 -7
  46. data/webpage/rdoc/RubyBreaker/RubyTypeUtils.html +3 -7
  47. data/webpage/rdoc/RubyBreaker/Runtime/Inspector.html +3 -7
  48. data/webpage/rdoc/RubyBreaker/Runtime/MethodInfo.html +3 -7
  49. data/webpage/rdoc/RubyBreaker/Runtime/Monitor.html +3 -7
  50. data/webpage/rdoc/RubyBreaker/Runtime/MonitorInstaller.html +10 -14
  51. data/webpage/rdoc/RubyBreaker/Runtime/MonitorSwitch.html +3 -7
  52. data/webpage/rdoc/RubyBreaker/Runtime/MonitorUtils.html +3 -7
  53. data/webpage/rdoc/RubyBreaker/Runtime/ObjectWrapper.html +3 -7
  54. data/webpage/rdoc/RubyBreaker/Runtime/Pluggable.html +3 -7
  55. data/webpage/rdoc/RubyBreaker/Runtime/TypeSigParser.html +3 -7
  56. data/webpage/rdoc/RubyBreaker/Runtime/TypeSigUnparser.html +3 -7
  57. data/webpage/rdoc/RubyBreaker/Runtime/TypeSystem.html +3 -7
  58. data/webpage/rdoc/RubyBreaker/Runtime.html +42 -39
  59. data/webpage/rdoc/RubyBreaker/TypeComparer.html +3 -7
  60. data/webpage/rdoc/RubyBreaker/TypeDefs/AnyType.html +3 -7
  61. data/webpage/rdoc/RubyBreaker/TypeDefs/BlockType.html +3 -7
  62. data/webpage/rdoc/RubyBreaker/TypeDefs/DuckType.html +3 -7
  63. data/webpage/rdoc/RubyBreaker/TypeDefs/FusionType.html +3 -7
  64. data/webpage/rdoc/RubyBreaker/TypeDefs/MethodListType.html +3 -7
  65. data/webpage/rdoc/RubyBreaker/TypeDefs/MethodType.html +3 -7
  66. data/webpage/rdoc/RubyBreaker/TypeDefs/NilType.html +3 -7
  67. data/webpage/rdoc/RubyBreaker/TypeDefs/NominalType.html +3 -7
  68. data/webpage/rdoc/RubyBreaker/TypeDefs/OptionalType.html +3 -7
  69. data/webpage/rdoc/RubyBreaker/TypeDefs/OrType.html +3 -7
  70. data/webpage/rdoc/RubyBreaker/TypeDefs/SelfType.html +3 -7
  71. data/webpage/rdoc/RubyBreaker/TypeDefs/Type.html +3 -7
  72. data/webpage/rdoc/RubyBreaker/TypeDefs/VarLengthType.html +3 -7
  73. data/webpage/rdoc/RubyBreaker/TypeDefs.html +3 -7
  74. data/webpage/rdoc/RubyBreaker/TypeUnparser.html +3 -7
  75. data/webpage/rdoc/RubyBreaker/Typing.html +3 -7
  76. data/webpage/rdoc/RubyBreaker/Util.html +3 -7
  77. data/webpage/rdoc/RubyBreaker.html +48 -15
  78. data/webpage/rdoc/Test/Unit.html +3 -7
  79. data/webpage/rdoc/Test.html +3 -7
  80. data/webpage/rdoc/created.rid +18 -17
  81. data/webpage/rdoc/index.html +3 -7
  82. data/webpage/rdoc/js/search_index.js +1 -1
  83. data/webpage/rdoc/table_of_contents.html +28 -36
  84. data/webpage/rubybreaker.css +8 -6
  85. data/webpage/topics.html +85 -0
  86. data/webpage/tutorial.html +331 -0
  87. metadata +14 -8
  88. data/lib/rubybreaker/doc.rb +0 -3
  89. data/webpage/rdoc/Kernel.html +0 -286
  90. data/webpage/rdoc/Test/Unit/TestCase.html +0 -309
@@ -174,17 +174,13 @@
174
174
 
175
175
  <li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
176
176
 
177
- <li><a href="../../Test.html">Test</a>
178
-
179
- <li><a href="../../Test/Unit.html">Test::Unit</a>
180
-
181
- <li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
182
-
183
177
  <li><a href="../../Rake.html">Rake</a>
184
178
 
185
179
  <li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
186
180
 
187
- <li><a href="../../Kernel.html">Kernel</a>
181
+ <li><a href="../../Test.html">Test</a>
182
+
183
+ <li><a href="../../Test/Unit.html">Test::Unit</a>
188
184
 
189
185
  <li><a href="../../Object.html">Object</a>
190
186
 
@@ -174,17 +174,13 @@
174
174
 
175
175
  <li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
176
176
 
177
- <li><a href="../../Test.html">Test</a>
178
-
179
- <li><a href="../../Test/Unit.html">Test::Unit</a>
180
-
181
- <li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
182
-
183
177
  <li><a href="../../Rake.html">Rake</a>
184
178
 
185
179
  <li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
186
180
 
187
- <li><a href="../../Kernel.html">Kernel</a>
181
+ <li><a href="../../Test.html">Test</a>
182
+
183
+ <li><a href="../../Test/Unit.html">Test::Unit</a>
188
184
 
189
185
  <li><a href="../../Object.html">Object</a>
190
186
 
@@ -178,17 +178,13 @@
178
178
 
179
179
  <li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
180
180
 
181
- <li><a href="../../Test.html">Test</a>
182
-
183
- <li><a href="../../Test/Unit.html">Test::Unit</a>
184
-
185
- <li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
186
-
187
181
  <li><a href="../../Rake.html">Rake</a>
188
182
 
189
183
  <li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
190
184
 
191
- <li><a href="../../Kernel.html">Kernel</a>
185
+ <li><a href="../../Test.html">Test</a>
186
+
187
+ <li><a href="../../Test/Unit.html">Test::Unit</a>
192
188
 
193
189
  <li><a href="../../Object.html">Object</a>
194
190
 
@@ -76,7 +76,7 @@
76
76
 
77
77
  <ul class="link-list">
78
78
 
79
- <li><a href="#method-c-install_module_monitor">::install_module_monitor</a>
79
+ <li><a href="#method-c-install_monitor">::install_monitor</a>
80
80
 
81
81
  <li><a href="#method-c-is_module-3F">::is_module?</a>
82
82
 
@@ -184,17 +184,13 @@
184
184
 
185
185
  <li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
186
186
 
187
- <li><a href="../../Test.html">Test</a>
188
-
189
- <li><a href="../../Test/Unit.html">Test::Unit</a>
190
-
191
- <li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
192
-
193
187
  <li><a href="../../Rake.html">Rake</a>
194
188
 
195
189
  <li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
196
190
 
197
- <li><a href="../../Kernel.html">Kernel</a>
191
+ <li><a href="../../Test.html">Test</a>
192
+
193
+ <li><a href="../../Test/Unit.html">Test::Unit</a>
198
194
 
199
195
  <li><a href="../../Object.html">Object</a>
200
196
 
@@ -231,10 +227,10 @@
231
227
  <h3 class="section-header">Public Class Methods</h3>
232
228
 
233
229
 
234
- <div id="method-c-install_module_monitor" class="method-detail ">
230
+ <div id="method-c-install_monitor" class="method-detail ">
235
231
 
236
232
  <div class="method-heading">
237
- <span class="method-name">install_module_monitor</span><span
233
+ <span class="method-name">install_monitor</span><span
238
234
  class="method-args">(mod)</span>
239
235
  <span class="method-click-advice">click to toggle source</span>
240
236
  </div>
@@ -246,9 +242,9 @@
246
242
 
247
243
 
248
244
 
249
- <div class="method-source-code" id="install_module_monitor-source">
245
+ <div class="method-source-code" id="install_monitor-source">
250
246
  <pre><span class="ruby-comment"># File lib/rubybreaker/runtime/monitor.rb, line 209</span>
251
- <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">install_module_monitor</span>(<span class="ruby-identifier">mod</span>)
247
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">install_monitor</span>(<span class="ruby-identifier">mod</span>)
252
248
 
253
249
  <span class="ruby-constant">RubyBreaker</span>.<span class="ruby-identifier">log</span>(<span class="ruby-node">&quot;Installing module monitor for #{mod}&quot;</span>)
254
250
 
@@ -277,14 +273,14 @@
277
273
  <span class="ruby-keyword">end</span>
278
274
 
279
275
  <span class="ruby-keyword">end</span></pre>
280
- </div><!-- install_module_monitor-source -->
276
+ </div><!-- install_monitor-source -->
281
277
 
282
278
  </div>
283
279
 
284
280
 
285
281
 
286
282
 
287
- </div><!-- install_module_monitor-method -->
283
+ </div><!-- install_monitor-method -->
288
284
 
289
285
 
290
286
  <div id="method-c-is_module-3F" class="method-detail ">
@@ -180,17 +180,13 @@
180
180
 
181
181
  <li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
182
182
 
183
- <li><a href="../../Test.html">Test</a>
184
-
185
- <li><a href="../../Test/Unit.html">Test::Unit</a>
186
-
187
- <li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
188
-
189
183
  <li><a href="../../Rake.html">Rake</a>
190
184
 
191
185
  <li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
192
186
 
193
- <li><a href="../../Kernel.html">Kernel</a>
187
+ <li><a href="../../Test.html">Test</a>
188
+
189
+ <li><a href="../../Test/Unit.html">Test::Unit</a>
194
190
 
195
191
  <li><a href="../../Object.html">Object</a>
196
192
 
@@ -172,17 +172,13 @@
172
172
 
173
173
  <li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
174
174
 
175
- <li><a href="../../Test.html">Test</a>
176
-
177
- <li><a href="../../Test/Unit.html">Test::Unit</a>
178
-
179
- <li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
180
-
181
175
  <li><a href="../../Rake.html">Rake</a>
182
176
 
183
177
  <li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
184
178
 
185
- <li><a href="../../Kernel.html">Kernel</a>
179
+ <li><a href="../../Test.html">Test</a>
180
+
181
+ <li><a href="../../Test/Unit.html">Test::Unit</a>
186
182
 
187
183
  <li><a href="../../Object.html">Object</a>
188
184
 
@@ -182,17 +182,13 @@
182
182
 
183
183
  <li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
184
184
 
185
- <li><a href="../../Test.html">Test</a>
186
-
187
- <li><a href="../../Test/Unit.html">Test::Unit</a>
188
-
189
- <li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
190
-
191
185
  <li><a href="../../Rake.html">Rake</a>
192
186
 
193
187
  <li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
194
188
 
195
- <li><a href="../../Kernel.html">Kernel</a>
189
+ <li><a href="../../Test.html">Test</a>
190
+
191
+ <li><a href="../../Test/Unit.html">Test::Unit</a>
196
192
 
197
193
  <li><a href="../../Object.html">Object</a>
198
194
 
@@ -170,17 +170,13 @@
170
170
 
171
171
  <li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
172
172
 
173
- <li><a href="../../Test.html">Test</a>
174
-
175
- <li><a href="../../Test/Unit.html">Test::Unit</a>
176
-
177
- <li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
178
-
179
173
  <li><a href="../../Rake.html">Rake</a>
180
174
 
181
175
  <li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
182
176
 
183
- <li><a href="../../Kernel.html">Kernel</a>
177
+ <li><a href="../../Test.html">Test</a>
178
+
179
+ <li><a href="../../Test/Unit.html">Test::Unit</a>
184
180
 
185
181
  <li><a href="../../Object.html">Object</a>
186
182
 
@@ -168,17 +168,13 @@
168
168
 
169
169
  <li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
170
170
 
171
- <li><a href="../../Test.html">Test</a>
172
-
173
- <li><a href="../../Test/Unit.html">Test::Unit</a>
174
-
175
- <li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
176
-
177
171
  <li><a href="../../Rake.html">Rake</a>
178
172
 
179
173
  <li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
180
174
 
181
- <li><a href="../../Kernel.html">Kernel</a>
175
+ <li><a href="../../Test.html">Test</a>
176
+
177
+ <li><a href="../../Test/Unit.html">Test::Unit</a>
182
178
 
183
179
  <li><a href="../../Object.html">Object</a>
184
180
 
@@ -184,17 +184,13 @@
184
184
 
185
185
  <li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
186
186
 
187
- <li><a href="../../Test.html">Test</a>
188
-
189
- <li><a href="../../Test/Unit.html">Test::Unit</a>
190
-
191
- <li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
192
-
193
187
  <li><a href="../../Rake.html">Rake</a>
194
188
 
195
189
  <li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
196
190
 
197
- <li><a href="../../Kernel.html">Kernel</a>
191
+ <li><a href="../../Test.html">Test</a>
192
+
193
+ <li><a href="../../Test/Unit.html">Test::Unit</a>
198
194
 
199
195
  <li><a href="../../Object.html">Object</a>
200
196
 
@@ -198,17 +198,13 @@
198
198
 
199
199
  <li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
200
200
 
201
- <li><a href="../../Test.html">Test</a>
202
-
203
- <li><a href="../../Test/Unit.html">Test::Unit</a>
204
-
205
- <li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
206
-
207
201
  <li><a href="../../Rake.html">Rake</a>
208
202
 
209
203
  <li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
210
204
 
211
- <li><a href="../../Kernel.html">Kernel</a>
205
+ <li><a href="../../Test.html">Test</a>
206
+
207
+ <li><a href="../../Test/Unit.html">Test::Unit</a>
212
208
 
213
209
  <li><a href="../../Object.html">Object</a>
214
210
 
@@ -73,6 +73,8 @@
73
73
 
74
74
  <ul class="link-list">
75
75
 
76
+ <li><a href="#method-c-break">::break</a>
77
+
76
78
  <li><a href="#method-c-breakable">::breakable</a>
77
79
 
78
80
  <li><a href="#method-c-instrument">::instrument</a>
@@ -179,17 +181,13 @@
179
181
 
180
182
  <li><a href="../RubyBreaker/Util.html">RubyBreaker::Util</a>
181
183
 
182
- <li><a href="../Test.html">Test</a>
183
-
184
- <li><a href="../Test/Unit.html">Test::Unit</a>
185
-
186
- <li><a href="../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
187
-
188
184
  <li><a href="../Rake.html">Rake</a>
189
185
 
190
186
  <li><a href="../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
191
187
 
192
- <li><a href="../Kernel.html">Kernel</a>
188
+ <li><a href="../Test.html">Test</a>
189
+
190
+ <li><a href="../Test/Unit.html">Test::Unit</a>
193
191
 
194
192
  <li><a href="../Object.html">Object</a>
195
193
 
@@ -248,12 +246,6 @@ for module tracking in which case, there isn’t really a way to do this
248
246
  unless we track with the process or some unique id for that process.</p>
249
247
 
250
248
 
251
- <dt id="INSTALLED">INSTALLED
252
-
253
- <dd class="description"><p>This set lists modules/classes that are actually instrumented with a
254
- monitor.</p>
255
-
256
-
257
249
  <dt id="MONITOR_MAP">MONITOR_MAP
258
250
 
259
251
  <dd class="description"><p>This hash maps a (breakable) module to a type monitor</p>
@@ -289,6 +281,37 @@ non-breakable modules/classes.</p>
289
281
  <h3 class="section-header">Public Class Methods</h3>
290
282
 
291
283
 
284
+ <div id="method-c-break" class="method-detail ">
285
+
286
+ <div class="method-heading">
287
+ <span class="method-name">break</span><span
288
+ class="method-args">(*mods)</span>
289
+ <span class="method-click-advice">click to toggle source</span>
290
+ </div>
291
+
292
+
293
+ <div class="method-description">
294
+
295
+ <p>This method instruments the specified modules/classes at the time of the
296
+ call.</p>
297
+
298
+
299
+
300
+ <div class="method-source-code" id="break-source">
301
+ <pre><span class="ruby-comment"># File lib/rubybreaker/runtime.rb, line 60</span>
302
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-keyword">break</span>(*<span class="ruby-identifier">mods</span>)
303
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">install</span>(<span class="ruby-value">:break</span>, *<span class="ruby-identifier">mods</span>)
304
+ <span class="ruby-keyword">end</span></pre>
305
+ </div><!-- break-source -->
306
+
307
+ </div>
308
+
309
+
310
+
311
+
312
+ </div><!-- break-method -->
313
+
314
+
292
315
  <div id="method-c-breakable" class="method-detail ">
293
316
 
294
317
  <div class="method-heading">
@@ -301,34 +324,15 @@ non-breakable modules/classes.</p>
301
324
  <div class="method-description">
302
325
 
303
326
  <p>This method modifies specified modules/classes at the very moment (instead
304
- of registering them for later).</p>
327
+ of registering them for later). <strong>DEPRECATED</strong>: Use +break()+
328
+ method instead</p>
305
329
 
306
330
 
307
331
 
308
332
  <div class="method-source-code" id="breakable-source">
309
- <pre><span class="ruby-comment"># File lib/rubybreaker/runtime.rb, line 43</span>
333
+ <pre><span class="ruby-comment"># File lib/rubybreaker/runtime.rb, line 76</span>
310
334
  <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">breakable</span>(*<span class="ruby-identifier">mods</span>)
311
- <span class="ruby-identifier">mods</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">mod</span><span class="ruby-operator">|</span>
312
- <span class="ruby-keyword">case</span> <span class="ruby-identifier">mod</span>
313
- <span class="ruby-keyword">when</span> <span class="ruby-constant">Array</span>
314
- <span class="ruby-keyword">self</span>.<span class="ruby-identifier">breakable</span>(*<span class="ruby-identifier">mod</span>)
315
- <span class="ruby-keyword">when</span> <span class="ruby-constant">Module</span>, <span class="ruby-constant">Class</span>
316
- <span class="ruby-constant">MonitorInstaller</span>.<span class="ruby-identifier">install_module_monitor</span>(<span class="ruby-identifier">mod</span>)
317
- <span class="ruby-identifier">eigen_class</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">eigen_class</span>(<span class="ruby-identifier">mod</span>)
318
- <span class="ruby-constant">MonitorInstaller</span>.<span class="ruby-identifier">install_module_monitor</span>(<span class="ruby-identifier">eigen_class</span>)
319
- <span class="ruby-constant">INSTALLED</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">mod</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">eigen_class</span>
320
- <span class="ruby-keyword">when</span> <span class="ruby-constant">String</span>, <span class="ruby-constant">Symbol</span>
321
- <span class="ruby-keyword">begin</span>
322
- <span class="ruby-comment"># Get the actual module and install it right now</span>
323
- <span class="ruby-identifier">mod</span> = <span class="ruby-identifier">eval</span>(<span class="ruby-node">&quot;#{mod}&quot;</span>, <span class="ruby-constant">TOPLEVEL_BINDING</span>)
324
- <span class="ruby-keyword">self</span>.<span class="ruby-identifier">breakable</span>(<span class="ruby-identifier">mod</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">mod</span>
325
- <span class="ruby-keyword">rescue</span> <span class="ruby-constant">NameError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">e</span>
326
- <span class="ruby-constant">RubyBreaker</span>.<span class="ruby-identifier">error</span>(<span class="ruby-node">&quot;#{mod} cannot be found.&quot;</span>)
327
- <span class="ruby-keyword">end</span>
328
- <span class="ruby-keyword">else</span>
329
- <span class="ruby-constant">RubyBreaker</span>.<span class="ruby-identifier">error</span>(<span class="ruby-string">&quot;You must specify a module/class or its name.&quot;</span>)
330
- <span class="ruby-keyword">end</span>
331
- <span class="ruby-keyword">end</span>
335
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">install</span>(<span class="ruby-value">:break</span>, *<span class="ruby-identifier">mods</span>)
332
336
  <span class="ruby-keyword">end</span></pre>
333
337
  </div><!-- breakable-source -->
334
338
 
@@ -357,12 +361,11 @@ of registering them for later).</p>
357
361
 
358
362
 
359
363
  <div class="method-source-code" id="instrument-source">
360
- <pre><span class="ruby-comment"># File lib/rubybreaker/runtime.rb, line 33</span>
364
+ <pre><span class="ruby-comment"># File lib/rubybreaker/runtime.rb, line 66</span>
361
365
  <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">instrument</span>()
362
366
  <span class="ruby-constant">BREAKABLES</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">mod</span><span class="ruby-operator">|</span>
363
367
  <span class="ruby-comment"># Duplicate checks in place in these calls.</span>
364
- <span class="ruby-constant">MonitorInstaller</span>.<span class="ruby-identifier">install_module_monitor</span>(<span class="ruby-identifier">mod</span>)
365
- <span class="ruby-constant">INSTALLED</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">mod</span>
368
+ <span class="ruby-constant">MonitorInstaller</span>.<span class="ruby-identifier">install_monitor</span>(<span class="ruby-identifier">mod</span>)
366
369
  <span class="ruby-keyword">end</span>
367
370
  <span class="ruby-keyword">end</span></pre>
368
371
  </div><!-- instrument-source -->
@@ -180,17 +180,13 @@
180
180
 
181
181
  <li><a href="../RubyBreaker/Util.html">RubyBreaker::Util</a>
182
182
 
183
- <li><a href="../Test.html">Test</a>
184
-
185
- <li><a href="../Test/Unit.html">Test::Unit</a>
186
-
187
- <li><a href="../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
188
-
189
183
  <li><a href="../Rake.html">Rake</a>
190
184
 
191
185
  <li><a href="../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
192
186
 
193
- <li><a href="../Kernel.html">Kernel</a>
187
+ <li><a href="../Test.html">Test</a>
188
+
189
+ <li><a href="../Test/Unit.html">Test::Unit</a>
194
190
 
195
191
  <li><a href="../Object.html">Object</a>
196
192
 
@@ -174,17 +174,13 @@
174
174
 
175
175
  <li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
176
176
 
177
- <li><a href="../../Test.html">Test</a>
178
-
179
- <li><a href="../../Test/Unit.html">Test::Unit</a>
180
-
181
- <li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
182
-
183
177
  <li><a href="../../Rake.html">Rake</a>
184
178
 
185
179
  <li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
186
180
 
187
- <li><a href="../../Kernel.html">Kernel</a>
181
+ <li><a href="../../Test.html">Test</a>
182
+
183
+ <li><a href="../../Test/Unit.html">Test::Unit</a>
188
184
 
189
185
  <li><a href="../../Object.html">Object</a>
190
186
 
@@ -174,17 +174,13 @@
174
174
 
175
175
  <li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
176
176
 
177
- <li><a href="../../Test.html">Test</a>
178
-
179
- <li><a href="../../Test/Unit.html">Test::Unit</a>
180
-
181
- <li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
182
-
183
177
  <li><a href="../../Rake.html">Rake</a>
184
178
 
185
179
  <li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
186
180
 
187
- <li><a href="../../Kernel.html">Kernel</a>
181
+ <li><a href="../../Test.html">Test</a>
182
+
183
+ <li><a href="../../Test/Unit.html">Test::Unit</a>
188
184
 
189
185
  <li><a href="../../Object.html">Object</a>
190
186
 
@@ -176,17 +176,13 @@
176
176
 
177
177
  <li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
178
178
 
179
- <li><a href="../../Test.html">Test</a>
180
-
181
- <li><a href="../../Test/Unit.html">Test::Unit</a>
182
-
183
- <li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
184
-
185
179
  <li><a href="../../Rake.html">Rake</a>
186
180
 
187
181
  <li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
188
182
 
189
- <li><a href="../../Kernel.html">Kernel</a>
183
+ <li><a href="../../Test.html">Test</a>
184
+
185
+ <li><a href="../../Test/Unit.html">Test::Unit</a>
190
186
 
191
187
  <li><a href="../../Object.html">Object</a>
192
188
 
@@ -176,17 +176,13 @@
176
176
 
177
177
  <li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
178
178
 
179
- <li><a href="../../Test.html">Test</a>
180
-
181
- <li><a href="../../Test/Unit.html">Test::Unit</a>
182
-
183
- <li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
184
-
185
179
  <li><a href="../../Rake.html">Rake</a>
186
180
 
187
181
  <li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
188
182
 
189
- <li><a href="../../Kernel.html">Kernel</a>
183
+ <li><a href="../../Test.html">Test</a>
184
+
185
+ <li><a href="../../Test/Unit.html">Test::Unit</a>
190
186
 
191
187
  <li><a href="../../Object.html">Object</a>
192
188
 
@@ -174,17 +174,13 @@
174
174
 
175
175
  <li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
176
176
 
177
- <li><a href="../../Test.html">Test</a>
178
-
179
- <li><a href="../../Test/Unit.html">Test::Unit</a>
180
-
181
- <li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
182
-
183
177
  <li><a href="../../Rake.html">Rake</a>
184
178
 
185
179
  <li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
186
180
 
187
- <li><a href="../../Kernel.html">Kernel</a>
181
+ <li><a href="../../Test.html">Test</a>
182
+
183
+ <li><a href="../../Test/Unit.html">Test::Unit</a>
188
184
 
189
185
  <li><a href="../../Object.html">Object</a>
190
186
 
@@ -174,17 +174,13 @@
174
174
 
175
175
  <li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
176
176
 
177
- <li><a href="../../Test.html">Test</a>
178
-
179
- <li><a href="../../Test/Unit.html">Test::Unit</a>
180
-
181
- <li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
182
-
183
177
  <li><a href="../../Rake.html">Rake</a>
184
178
 
185
179
  <li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
186
180
 
187
- <li><a href="../../Kernel.html">Kernel</a>
181
+ <li><a href="../../Test.html">Test</a>
182
+
183
+ <li><a href="../../Test/Unit.html">Test::Unit</a>
188
184
 
189
185
  <li><a href="../../Object.html">Object</a>
190
186
 
@@ -174,17 +174,13 @@
174
174
 
175
175
  <li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
176
176
 
177
- <li><a href="../../Test.html">Test</a>
178
-
179
- <li><a href="../../Test/Unit.html">Test::Unit</a>
180
-
181
- <li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
182
-
183
177
  <li><a href="../../Rake.html">Rake</a>
184
178
 
185
179
  <li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
186
180
 
187
- <li><a href="../../Kernel.html">Kernel</a>
181
+ <li><a href="../../Test.html">Test</a>
182
+
183
+ <li><a href="../../Test/Unit.html">Test::Unit</a>
188
184
 
189
185
  <li><a href="../../Object.html">Object</a>
190
186
 
@@ -174,17 +174,13 @@
174
174
 
175
175
  <li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
176
176
 
177
- <li><a href="../../Test.html">Test</a>
178
-
179
- <li><a href="../../Test/Unit.html">Test::Unit</a>
180
-
181
- <li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
182
-
183
177
  <li><a href="../../Rake.html">Rake</a>
184
178
 
185
179
  <li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
186
180
 
187
- <li><a href="../../Kernel.html">Kernel</a>
181
+ <li><a href="../../Test.html">Test</a>
182
+
183
+ <li><a href="../../Test/Unit.html">Test::Unit</a>
188
184
 
189
185
  <li><a href="../../Object.html">Object</a>
190
186