rubybreaker 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. data/NEWS +6 -46
  2. data/README.md +30 -19
  3. data/TODO +22 -20
  4. data/VERSION +1 -1
  5. data/bin/rubybreaker +11 -2
  6. data/lib/rubybreaker.rb +31 -11
  7. data/lib/rubybreaker/debug.rb +5 -49
  8. data/lib/rubybreaker/{context.rb → debug/context.rb} +0 -0
  9. data/lib/rubybreaker/debug/debug.rb +61 -0
  10. data/lib/rubybreaker/{error.rb → debug/error.rb} +1 -1
  11. data/lib/rubybreaker/runtime.rb +3 -2
  12. data/lib/rubybreaker/runtime/inspector.rb +20 -13
  13. data/lib/rubybreaker/runtime/monitor.rb +21 -13
  14. data/lib/rubybreaker/runtime/object_wrapper.rb +3 -1
  15. data/lib/rubybreaker/runtime/type_system.rb +3 -2
  16. data/lib/rubybreaker/test/testcase.rb +0 -1
  17. data/lib/rubybreaker/type/type.rb +1 -1
  18. data/lib/rubybreaker/type/type_grammar.treetop +1 -1
  19. data/lib/rubybreaker/type/type_unparser.rb +1 -1
  20. data/lib/rubybreaker/util.rb +3 -11
  21. data/test/integrated/tc_both_broken_breakable.rb +27 -0
  22. data/test/ts_integrated.rb +1 -0
  23. data/webpage/index.html +30 -19
  24. data/webpage/rdoc/RubyBreaker.html +127 -10
  25. data/webpage/rdoc/RubyBreaker/Breakable.html +1 -5
  26. data/webpage/rdoc/RubyBreaker/Broken.html +2 -6
  27. data/webpage/rdoc/RubyBreaker/Broken/BrokenEigen.html +3 -6
  28. data/webpage/rdoc/RubyBreaker/Context.html +6 -10
  29. data/webpage/rdoc/RubyBreaker/Errors.html +2 -6
  30. data/webpage/rdoc/RubyBreaker/Errors/InternalError.html +3 -7
  31. data/webpage/rdoc/RubyBreaker/Errors/InvalidSubtypeCheck.html +3 -7
  32. data/webpage/rdoc/RubyBreaker/Errors/InvalidTypeConstruction.html +2 -6
  33. data/webpage/rdoc/RubyBreaker/Errors/SubtypeFailure.html +2 -6
  34. data/webpage/rdoc/RubyBreaker/Errors/TypeError.html +3 -7
  35. data/webpage/rdoc/RubyBreaker/Errors/UserError.html +3 -7
  36. data/webpage/rdoc/RubyBreaker/Main.html +33 -20
  37. data/webpage/rdoc/RubyBreaker/ObjectPosition.html +4 -8
  38. data/webpage/rdoc/RubyBreaker/Position.html +7 -11
  39. data/webpage/rdoc/RubyBreaker/RubyTypeUtils.html +1 -5
  40. data/webpage/rdoc/RubyBreaker/Runtime.html +1 -5
  41. data/webpage/rdoc/RubyBreaker/Runtime/Inspector.html +25 -18
  42. data/webpage/rdoc/RubyBreaker/Runtime/MethodInfo.html +1 -5
  43. data/webpage/rdoc/RubyBreaker/Runtime/Monitor.html +4 -8
  44. data/webpage/rdoc/RubyBreaker/Runtime/MonitorInstaller.html +20 -43
  45. data/webpage/rdoc/RubyBreaker/Runtime/MonitorSwitch.html +7 -11
  46. data/webpage/rdoc/RubyBreaker/Runtime/MonitorUtils.html +6 -10
  47. data/webpage/rdoc/RubyBreaker/Runtime/ObjectWrapper.html +7 -11
  48. data/webpage/rdoc/RubyBreaker/Runtime/Pluggable.html +1 -5
  49. data/webpage/rdoc/RubyBreaker/Runtime/TypePlaceholder.html +1 -5
  50. data/webpage/rdoc/RubyBreaker/Runtime/TypeSigParser.html +1 -5
  51. data/webpage/rdoc/RubyBreaker/Runtime/TypeSystem.html +8 -12
  52. data/webpage/rdoc/RubyBreaker/TestCase.html +1 -6
  53. data/webpage/rdoc/RubyBreaker/TypeComparer.html +1 -5
  54. data/webpage/rdoc/RubyBreaker/TypeDefs.html +1 -5
  55. data/webpage/rdoc/RubyBreaker/TypeDefs/AnyType.html +1 -5
  56. data/webpage/rdoc/RubyBreaker/TypeDefs/BlockType.html +1 -5
  57. data/webpage/rdoc/RubyBreaker/TypeDefs/DuckType.html +1 -5
  58. data/webpage/rdoc/RubyBreaker/TypeDefs/FusionType.html +1 -5
  59. data/webpage/rdoc/RubyBreaker/TypeDefs/MethodListType.html +1 -5
  60. data/webpage/rdoc/RubyBreaker/TypeDefs/MethodType.html +1 -5
  61. data/webpage/rdoc/RubyBreaker/TypeDefs/NilType.html +1 -5
  62. data/webpage/rdoc/RubyBreaker/TypeDefs/NominalType.html +1 -5
  63. data/webpage/rdoc/RubyBreaker/TypeDefs/OptionalType.html +1 -5
  64. data/webpage/rdoc/RubyBreaker/TypeDefs/OrType.html +1 -5
  65. data/webpage/rdoc/RubyBreaker/TypeDefs/SelfType.html +1 -5
  66. data/webpage/rdoc/RubyBreaker/TypeDefs/Type.html +1 -5
  67. data/webpage/rdoc/RubyBreaker/TypeDefs/VarLengthType.html +1 -5
  68. data/webpage/rdoc/RubyBreaker/TypeUnparser.html +1 -5
  69. data/webpage/rdoc/RubyBreaker/Typing.html +1 -5
  70. data/webpage/rdoc/RubyBreaker/{Utilities.html → Util.html} +8 -9
  71. data/webpage/rdoc/created.rid +15 -14
  72. data/webpage/rdoc/index.html +1 -5
  73. data/webpage/rdoc/js/search_index.js +1 -1
  74. data/webpage/rdoc/table_of_contents.html +22 -36
  75. metadata +9 -7
  76. data/webpage/rdoc/RubyBreaker/Debug.html +0 -411
  77. data/webpage/rdoc/RubyBreaker/Kernel.html +0 -259
@@ -1,411 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
-
7
- <title>module RubyBreaker::Debug - RDoc Documentation</title>
8
-
9
- <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
-
11
- <script type="text/javascript">
12
- var rdoc_rel_prefix = "../";
13
- </script>
14
-
15
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
16
- <script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
17
- <script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
18
- <script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
19
- <script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
20
- <script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
21
-
22
-
23
- <body id="top" class="module">
24
- <nav id="metadata">
25
- <nav id="home-section" class="section">
26
- <h3 class="section-header">
27
- <a href="../index.html">Home</a>
28
- <a href="../table_of_contents.html#classes">Classes</a>
29
- <a href="../table_of_contents.html#methods">Methods</a>
30
- </h3>
31
- </nav>
32
-
33
-
34
- <nav id="search-section" class="section project-section" class="initially-hidden">
35
- <form action="#" method="get" accept-charset="utf-8">
36
- <h3 class="section-header">
37
- <input type="text" name="search" placeholder="Search" id="search-field"
38
- title="Type to search, Up and Down to navigate, Enter to load">
39
- </h3>
40
- </form>
41
-
42
- <ul id="search-results" class="initially-hidden"></ul>
43
- </nav>
44
-
45
-
46
- <div id="file-metadata">
47
- <nav id="file-list-section" class="section">
48
- <h3 class="section-header">Defined In</h3>
49
- <ul>
50
- <li>lib/rubybreaker/debug.rb
51
- </ul>
52
- </nav>
53
-
54
-
55
- </div>
56
-
57
- <div id="class-metadata">
58
-
59
-
60
-
61
- <!-- Method Quickref -->
62
- <nav id="method-list-section" class="section">
63
- <h3 class="section-header">Methods</h3>
64
-
65
- <ul class="link-list">
66
-
67
- <li><a href="#method-c-debug_mode-3F">::debug_mode?</a>
68
-
69
- <li><a href="#method-c-feed_line">::feed_line</a>
70
-
71
- <li><a href="#method-c-msg">::msg</a>
72
-
73
- <li><a href="#method-c-short_msg">::short_msg</a>
74
-
75
- <li><a href="#method-c-token">::token</a>
76
-
77
- </ul>
78
- </nav>
79
-
80
- </div>
81
-
82
- <div id="project-metadata">
83
-
84
- <nav id="classindex-section" class="section project-section">
85
- <h3 class="section-header">Class and Module Index</h3>
86
-
87
- <ul class="link-list">
88
-
89
- <li><a href="../RubyBreaker.html">RubyBreaker</a>
90
-
91
- <li><a href="../RubyBreaker/Breakable.html">RubyBreaker::Breakable</a>
92
-
93
- <li><a href="../RubyBreaker/Broken.html">RubyBreaker::Broken</a>
94
-
95
- <li><a href="../RubyBreaker/Broken/BrokenEigen.html">RubyBreaker::Broken::BrokenEigen</a>
96
-
97
- <li><a href="../RubyBreaker/Context.html">RubyBreaker::Context</a>
98
-
99
- <li><a href="../RubyBreaker/Debug.html">RubyBreaker::Debug</a>
100
-
101
- <li><a href="../RubyBreaker/Errors.html">RubyBreaker::Errors</a>
102
-
103
- <li><a href="../RubyBreaker/Errors/InternalError.html">RubyBreaker::Errors::InternalError</a>
104
-
105
- <li><a href="../RubyBreaker/Errors/InvalidSubtypeCheck.html">RubyBreaker::Errors::InvalidSubtypeCheck</a>
106
-
107
- <li><a href="../RubyBreaker/Errors/InvalidTypeConstruction.html">RubyBreaker::Errors::InvalidTypeConstruction</a>
108
-
109
- <li><a href="../RubyBreaker/Errors/SubtypeFailure.html">RubyBreaker::Errors::SubtypeFailure</a>
110
-
111
- <li><a href="../RubyBreaker/Errors/TypeError.html">RubyBreaker::Errors::TypeError</a>
112
-
113
- <li><a href="../RubyBreaker/Errors/UserError.html">RubyBreaker::Errors::UserError</a>
114
-
115
- <li><a href="../RubyBreaker/Kernel.html">RubyBreaker::Kernel</a>
116
-
117
- <li><a href="../RubyBreaker/Main.html">RubyBreaker::Main</a>
118
-
119
- <li><a href="../RubyBreaker/ObjectPosition.html">RubyBreaker::ObjectPosition</a>
120
-
121
- <li><a href="../RubyBreaker/Position.html">RubyBreaker::Position</a>
122
-
123
- <li><a href="../RubyBreaker/RubyTypeUtils.html">RubyBreaker::RubyTypeUtils</a>
124
-
125
- <li><a href="../RubyBreaker/Runtime.html">RubyBreaker::Runtime</a>
126
-
127
- <li><a href="../RubyBreaker/Runtime/Inspector.html">RubyBreaker::Runtime::Inspector</a>
128
-
129
- <li><a href="../RubyBreaker/Runtime/MethodInfo.html">RubyBreaker::Runtime::MethodInfo</a>
130
-
131
- <li><a href="../RubyBreaker/Runtime/Monitor.html">RubyBreaker::Runtime::Monitor</a>
132
-
133
- <li><a href="../RubyBreaker/Runtime/MonitorInstaller.html">RubyBreaker::Runtime::MonitorInstaller</a>
134
-
135
- <li><a href="../RubyBreaker/Runtime/MonitorSwitch.html">RubyBreaker::Runtime::MonitorSwitch</a>
136
-
137
- <li><a href="../RubyBreaker/Runtime/MonitorUtils.html">RubyBreaker::Runtime::MonitorUtils</a>
138
-
139
- <li><a href="../RubyBreaker/Runtime/ObjectWrapper.html">RubyBreaker::Runtime::ObjectWrapper</a>
140
-
141
- <li><a href="../RubyBreaker/Runtime/Pluggable.html">RubyBreaker::Runtime::Pluggable</a>
142
-
143
- <li><a href="../RubyBreaker/Runtime/TypePlaceholder.html">RubyBreaker::Runtime::TypePlaceholder</a>
144
-
145
- <li><a href="../RubyBreaker/Runtime/TypeSigParser.html">RubyBreaker::Runtime::TypeSigParser</a>
146
-
147
- <li><a href="../RubyBreaker/Runtime/TypeSystem.html">RubyBreaker::Runtime::TypeSystem</a>
148
-
149
- <li><a href="../RubyBreaker/TestCase.html">RubyBreaker::TestCase</a>
150
-
151
- <li><a href="../RubyBreaker/TypeComparer.html">RubyBreaker::TypeComparer</a>
152
-
153
- <li><a href="../RubyBreaker/TypeDefs.html">RubyBreaker::TypeDefs</a>
154
-
155
- <li><a href="../RubyBreaker/TypeDefs/AnyType.html">RubyBreaker::TypeDefs::AnyType</a>
156
-
157
- <li><a href="../RubyBreaker/TypeDefs/BlockType.html">RubyBreaker::TypeDefs::BlockType</a>
158
-
159
- <li><a href="../RubyBreaker/TypeDefs/DuckType.html">RubyBreaker::TypeDefs::DuckType</a>
160
-
161
- <li><a href="../RubyBreaker/TypeDefs/FusionType.html">RubyBreaker::TypeDefs::FusionType</a>
162
-
163
- <li><a href="../RubyBreaker/TypeDefs/MethodListType.html">RubyBreaker::TypeDefs::MethodListType</a>
164
-
165
- <li><a href="../RubyBreaker/TypeDefs/MethodType.html">RubyBreaker::TypeDefs::MethodType</a>
166
-
167
- <li><a href="../RubyBreaker/TypeDefs/NilType.html">RubyBreaker::TypeDefs::NilType</a>
168
-
169
- <li><a href="../RubyBreaker/TypeDefs/NominalType.html">RubyBreaker::TypeDefs::NominalType</a>
170
-
171
- <li><a href="../RubyBreaker/TypeDefs/OptionalType.html">RubyBreaker::TypeDefs::OptionalType</a>
172
-
173
- <li><a href="../RubyBreaker/TypeDefs/OrType.html">RubyBreaker::TypeDefs::OrType</a>
174
-
175
- <li><a href="../RubyBreaker/TypeDefs/SelfType.html">RubyBreaker::TypeDefs::SelfType</a>
176
-
177
- <li><a href="../RubyBreaker/TypeDefs/Type.html">RubyBreaker::TypeDefs::Type</a>
178
-
179
- <li><a href="../RubyBreaker/TypeDefs/VarLengthType.html">RubyBreaker::TypeDefs::VarLengthType</a>
180
-
181
- <li><a href="../RubyBreaker/TypeUnparser.html">RubyBreaker::TypeUnparser</a>
182
-
183
- <li><a href="../RubyBreaker/Typing.html">RubyBreaker::Typing</a>
184
-
185
- <li><a href="../RubyBreaker/Utilities.html">RubyBreaker::Utilities</a>
186
-
187
- </ul>
188
- </nav>
189
-
190
- </div>
191
- </nav>
192
-
193
- <div id="documentation">
194
- <h1 class="module">module RubyBreaker::Debug</h1>
195
-
196
- <div id="description" class="description">
197
-
198
- <p>This module is for internal purpose only - to help ourselves find bugs and
199
- fix them with more informative error messages.</p>
200
-
201
- </div><!-- description -->
202
-
203
-
204
-
205
-
206
- <section id="5Buntitled-5D" class="documentation-section">
207
-
208
-
209
-
210
-
211
-
212
- <!-- Constants -->
213
- <section id="constants-list" class="section">
214
- <h3 class="section-header">Constants</h3>
215
- <dl>
216
-
217
- <dt id="OUTPUT">OUTPUT
218
-
219
- <dd class="description">
220
-
221
-
222
- </dl>
223
- </section>
224
-
225
-
226
-
227
-
228
- <!-- Methods -->
229
-
230
- <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
231
- <h3 class="section-header">Public Class Methods</h3>
232
-
233
-
234
- <div id="method-c-debug_mode-3F" class="method-detail ">
235
-
236
- <div class="method-heading">
237
- <span class="method-name">debug_mode?</span><span
238
- class="method-args">()</span>
239
- <span class="method-click-advice">click to toggle source</span>
240
- </div>
241
-
242
-
243
- <div class="method-description">
244
-
245
-
246
-
247
-
248
-
249
- <div class="method-source-code" id="debug_mode-3F-source">
250
- <pre><span class="ruby-comment"># File lib/rubybreaker/debug.rb, line 15</span>
251
- <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">debug_mode?</span>()
252
- <span class="ruby-keyword">return</span> <span class="ruby-keyword">defined?</span>(<span class="ruby-constant">RubyBreaker</span><span class="ruby-operator">::</span><span class="ruby-constant">OPTIONS</span>) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-constant">RubyBreaker</span><span class="ruby-operator">::</span><span class="ruby-constant">OPTIONS</span>[<span class="ruby-value">:debug</span>]
253
- <span class="ruby-keyword">end</span></pre>
254
- </div><!-- debug_mode-3F-source -->
255
-
256
- </div>
257
-
258
-
259
-
260
-
261
- </div><!-- debug_mode-3F-method -->
262
-
263
-
264
- <div id="method-c-feed_line" class="method-detail ">
265
-
266
- <div class="method-heading">
267
- <span class="method-name">feed_line</span><span
268
- class="method-args">()</span>
269
- <span class="method-click-advice">click to toggle source</span>
270
- </div>
271
-
272
-
273
- <div class="method-description">
274
-
275
-
276
-
277
-
278
-
279
- <div class="method-source-code" id="feed_line-source">
280
- <pre><span class="ruby-comment"># File lib/rubybreaker/debug.rb, line 45</span>
281
- <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">feed_line</span>()
282
- <span class="ruby-keyword">return</span> <span class="ruby-keyword">unless</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">debug_mode?</span>
283
- <span class="ruby-identifier">puts</span> <span class="ruby-string">&quot;&quot;</span>
284
- <span class="ruby-keyword">end</span></pre>
285
- </div><!-- feed_line-source -->
286
-
287
- </div>
288
-
289
-
290
-
291
-
292
- </div><!-- feed_line-method -->
293
-
294
-
295
- <div id="method-c-msg" class="method-detail ">
296
-
297
- <div class="method-heading">
298
- <span class="method-name">msg</span><span
299
- class="method-args">(text,context=nil)</span>
300
- <span class="method-click-advice">click to toggle source</span>
301
- </div>
302
-
303
-
304
- <div class="method-description">
305
-
306
-
307
-
308
-
309
-
310
- <div class="method-source-code" id="msg-source">
311
- <pre><span class="ruby-comment"># File lib/rubybreaker/debug.rb, line 19</span>
312
- <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">msg</span>(<span class="ruby-identifier">text</span>,<span class="ruby-identifier">context</span>=<span class="ruby-keyword">nil</span>)
313
- <span class="ruby-keyword">return</span> <span class="ruby-keyword">unless</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">debug_mode?</span>
314
- <span class="ruby-identifier">pp</span> = <span class="ruby-constant">PrettyPrint</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">OUTPUT</span>)
315
- <span class="ruby-identifier">msg</span> = <span class="ruby-node">&quot;[DEBUG] #{text}&quot;</span>
316
- <span class="ruby-keyword">if</span> <span class="ruby-identifier">context</span>
317
- <span class="ruby-identifier">context</span>.<span class="ruby-identifier">format_with_msg</span>(<span class="ruby-identifier">pp</span>,<span class="ruby-identifier">msg</span>)
318
- <span class="ruby-keyword">else</span>
319
- <span class="ruby-identifier">pp</span>.<span class="ruby-identifier">text</span>(<span class="ruby-identifier">msg</span>,<span class="ruby-value">79</span>)
320
- <span class="ruby-identifier">pp</span>.<span class="ruby-identifier">breakable</span>()
321
- <span class="ruby-keyword">end</span>
322
- <span class="ruby-identifier">pp</span>.<span class="ruby-identifier">flush</span>
323
- <span class="ruby-identifier">puts</span> <span class="ruby-constant">OUTPUT</span>
324
- <span class="ruby-constant">OUTPUT</span>.<span class="ruby-identifier">replace</span>(<span class="ruby-string">&quot;&quot;</span>)
325
- <span class="ruby-keyword">end</span></pre>
326
- </div><!-- msg-source -->
327
-
328
- </div>
329
-
330
-
331
-
332
-
333
- </div><!-- msg-method -->
334
-
335
-
336
- <div id="method-c-short_msg" class="method-detail ">
337
-
338
- <div class="method-heading">
339
- <span class="method-name">short_msg</span><span
340
- class="method-args">(text)</span>
341
- <span class="method-click-advice">click to toggle source</span>
342
- </div>
343
-
344
-
345
- <div class="method-description">
346
-
347
-
348
-
349
-
350
-
351
- <div class="method-source-code" id="short_msg-source">
352
- <pre><span class="ruby-comment"># File lib/rubybreaker/debug.rb, line 34</span>
353
- <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">short_msg</span>(<span class="ruby-identifier">text</span>)
354
- <span class="ruby-keyword">return</span> <span class="ruby-keyword">unless</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">debug_mode?</span>
355
- <span class="ruby-identifier">msg</span> = <span class="ruby-node">&quot;[DEBUG] #{text}&quot;</span>
356
- <span class="ruby-identifier">print</span> <span class="ruby-identifier">msg</span>
357
- <span class="ruby-keyword">end</span></pre>
358
- </div><!-- short_msg-source -->
359
-
360
- </div>
361
-
362
-
363
-
364
-
365
- </div><!-- short_msg-method -->
366
-
367
-
368
- <div id="method-c-token" class="method-detail ">
369
-
370
- <div class="method-heading">
371
- <span class="method-name">token</span><span
372
- class="method-args">(msg)</span>
373
- <span class="method-click-advice">click to toggle source</span>
374
- </div>
375
-
376
-
377
- <div class="method-description">
378
-
379
-
380
-
381
-
382
-
383
- <div class="method-source-code" id="token-source">
384
- <pre><span class="ruby-comment"># File lib/rubybreaker/debug.rb, line 40</span>
385
- <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">token</span>(<span class="ruby-identifier">msg</span>)
386
- <span class="ruby-keyword">return</span> <span class="ruby-keyword">unless</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">debug_mode?</span>
387
- <span class="ruby-identifier">print</span> <span class="ruby-identifier">msg</span>
388
- <span class="ruby-keyword">end</span></pre>
389
- </div><!-- token-source -->
390
-
391
- </div>
392
-
393
-
394
-
395
-
396
- </div><!-- token-method -->
397
-
398
-
399
- </section><!-- public-class-method-details -->
400
-
401
- </section><!-- 5Buntitled-5D -->
402
-
403
- </div><!-- documentation -->
404
-
405
-
406
- <footer id="validator-badges">
407
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
408
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
409
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
410
- </footer>
411
-
@@ -1,259 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
-
7
- <title>module RubyBreaker::Kernel - RDoc Documentation</title>
8
-
9
- <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
-
11
- <script type="text/javascript">
12
- var rdoc_rel_prefix = "../";
13
- </script>
14
-
15
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
16
- <script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
17
- <script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
18
- <script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
19
- <script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
20
- <script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
21
-
22
-
23
- <body id="top" class="module">
24
- <nav id="metadata">
25
- <nav id="home-section" class="section">
26
- <h3 class="section-header">
27
- <a href="../index.html">Home</a>
28
- <a href="../table_of_contents.html#classes">Classes</a>
29
- <a href="../table_of_contents.html#methods">Methods</a>
30
- </h3>
31
- </nav>
32
-
33
-
34
- <nav id="search-section" class="section project-section" class="initially-hidden">
35
- <form action="#" method="get" accept-charset="utf-8">
36
- <h3 class="section-header">
37
- <input type="text" name="search" placeholder="Search" id="search-field"
38
- title="Type to search, Up and Down to navigate, Enter to load">
39
- </h3>
40
- </form>
41
-
42
- <ul id="search-results" class="initially-hidden"></ul>
43
- </nav>
44
-
45
-
46
- <div id="file-metadata">
47
- <nav id="file-list-section" class="section">
48
- <h3 class="section-header">Defined In</h3>
49
- <ul>
50
- <li>lib/rubybreaker/util.rb
51
- </ul>
52
- </nav>
53
-
54
-
55
- </div>
56
-
57
- <div id="class-metadata">
58
-
59
-
60
-
61
- <!-- Method Quickref -->
62
- <nav id="method-list-section" class="section">
63
- <h3 class="section-header">Methods</h3>
64
-
65
- <ul class="link-list">
66
-
67
- <li><a href="#method-i-suppress_warning">#suppress_warning</a>
68
-
69
- </ul>
70
- </nav>
71
-
72
- </div>
73
-
74
- <div id="project-metadata">
75
-
76
- <nav id="classindex-section" class="section project-section">
77
- <h3 class="section-header">Class and Module Index</h3>
78
-
79
- <ul class="link-list">
80
-
81
- <li><a href="../RubyBreaker.html">RubyBreaker</a>
82
-
83
- <li><a href="../RubyBreaker/Breakable.html">RubyBreaker::Breakable</a>
84
-
85
- <li><a href="../RubyBreaker/Broken.html">RubyBreaker::Broken</a>
86
-
87
- <li><a href="../RubyBreaker/Broken/BrokenEigen.html">RubyBreaker::Broken::BrokenEigen</a>
88
-
89
- <li><a href="../RubyBreaker/Context.html">RubyBreaker::Context</a>
90
-
91
- <li><a href="../RubyBreaker/Debug.html">RubyBreaker::Debug</a>
92
-
93
- <li><a href="../RubyBreaker/Errors.html">RubyBreaker::Errors</a>
94
-
95
- <li><a href="../RubyBreaker/Errors/InternalError.html">RubyBreaker::Errors::InternalError</a>
96
-
97
- <li><a href="../RubyBreaker/Errors/InvalidSubtypeCheck.html">RubyBreaker::Errors::InvalidSubtypeCheck</a>
98
-
99
- <li><a href="../RubyBreaker/Errors/InvalidTypeConstruction.html">RubyBreaker::Errors::InvalidTypeConstruction</a>
100
-
101
- <li><a href="../RubyBreaker/Errors/SubtypeFailure.html">RubyBreaker::Errors::SubtypeFailure</a>
102
-
103
- <li><a href="../RubyBreaker/Errors/TypeError.html">RubyBreaker::Errors::TypeError</a>
104
-
105
- <li><a href="../RubyBreaker/Errors/UserError.html">RubyBreaker::Errors::UserError</a>
106
-
107
- <li><a href="../RubyBreaker/Kernel.html">RubyBreaker::Kernel</a>
108
-
109
- <li><a href="../RubyBreaker/Main.html">RubyBreaker::Main</a>
110
-
111
- <li><a href="../RubyBreaker/ObjectPosition.html">RubyBreaker::ObjectPosition</a>
112
-
113
- <li><a href="../RubyBreaker/Position.html">RubyBreaker::Position</a>
114
-
115
- <li><a href="../RubyBreaker/RubyTypeUtils.html">RubyBreaker::RubyTypeUtils</a>
116
-
117
- <li><a href="../RubyBreaker/Runtime.html">RubyBreaker::Runtime</a>
118
-
119
- <li><a href="../RubyBreaker/Runtime/Inspector.html">RubyBreaker::Runtime::Inspector</a>
120
-
121
- <li><a href="../RubyBreaker/Runtime/MethodInfo.html">RubyBreaker::Runtime::MethodInfo</a>
122
-
123
- <li><a href="../RubyBreaker/Runtime/Monitor.html">RubyBreaker::Runtime::Monitor</a>
124
-
125
- <li><a href="../RubyBreaker/Runtime/MonitorInstaller.html">RubyBreaker::Runtime::MonitorInstaller</a>
126
-
127
- <li><a href="../RubyBreaker/Runtime/MonitorSwitch.html">RubyBreaker::Runtime::MonitorSwitch</a>
128
-
129
- <li><a href="../RubyBreaker/Runtime/MonitorUtils.html">RubyBreaker::Runtime::MonitorUtils</a>
130
-
131
- <li><a href="../RubyBreaker/Runtime/ObjectWrapper.html">RubyBreaker::Runtime::ObjectWrapper</a>
132
-
133
- <li><a href="../RubyBreaker/Runtime/Pluggable.html">RubyBreaker::Runtime::Pluggable</a>
134
-
135
- <li><a href="../RubyBreaker/Runtime/TypePlaceholder.html">RubyBreaker::Runtime::TypePlaceholder</a>
136
-
137
- <li><a href="../RubyBreaker/Runtime/TypeSigParser.html">RubyBreaker::Runtime::TypeSigParser</a>
138
-
139
- <li><a href="../RubyBreaker/Runtime/TypeSystem.html">RubyBreaker::Runtime::TypeSystem</a>
140
-
141
- <li><a href="../RubyBreaker/TestCase.html">RubyBreaker::TestCase</a>
142
-
143
- <li><a href="../RubyBreaker/TypeComparer.html">RubyBreaker::TypeComparer</a>
144
-
145
- <li><a href="../RubyBreaker/TypeDefs.html">RubyBreaker::TypeDefs</a>
146
-
147
- <li><a href="../RubyBreaker/TypeDefs/AnyType.html">RubyBreaker::TypeDefs::AnyType</a>
148
-
149
- <li><a href="../RubyBreaker/TypeDefs/BlockType.html">RubyBreaker::TypeDefs::BlockType</a>
150
-
151
- <li><a href="../RubyBreaker/TypeDefs/DuckType.html">RubyBreaker::TypeDefs::DuckType</a>
152
-
153
- <li><a href="../RubyBreaker/TypeDefs/FusionType.html">RubyBreaker::TypeDefs::FusionType</a>
154
-
155
- <li><a href="../RubyBreaker/TypeDefs/MethodListType.html">RubyBreaker::TypeDefs::MethodListType</a>
156
-
157
- <li><a href="../RubyBreaker/TypeDefs/MethodType.html">RubyBreaker::TypeDefs::MethodType</a>
158
-
159
- <li><a href="../RubyBreaker/TypeDefs/NilType.html">RubyBreaker::TypeDefs::NilType</a>
160
-
161
- <li><a href="../RubyBreaker/TypeDefs/NominalType.html">RubyBreaker::TypeDefs::NominalType</a>
162
-
163
- <li><a href="../RubyBreaker/TypeDefs/OptionalType.html">RubyBreaker::TypeDefs::OptionalType</a>
164
-
165
- <li><a href="../RubyBreaker/TypeDefs/OrType.html">RubyBreaker::TypeDefs::OrType</a>
166
-
167
- <li><a href="../RubyBreaker/TypeDefs/SelfType.html">RubyBreaker::TypeDefs::SelfType</a>
168
-
169
- <li><a href="../RubyBreaker/TypeDefs/Type.html">RubyBreaker::TypeDefs::Type</a>
170
-
171
- <li><a href="../RubyBreaker/TypeDefs/VarLengthType.html">RubyBreaker::TypeDefs::VarLengthType</a>
172
-
173
- <li><a href="../RubyBreaker/TypeUnparser.html">RubyBreaker::TypeUnparser</a>
174
-
175
- <li><a href="../RubyBreaker/Typing.html">RubyBreaker::Typing</a>
176
-
177
- <li><a href="../RubyBreaker/Utilities.html">RubyBreaker::Utilities</a>
178
-
179
- </ul>
180
- </nav>
181
-
182
- </div>
183
- </nav>
184
-
185
- <div id="documentation">
186
- <h1 class="module">module RubyBreaker::Kernel</h1>
187
-
188
- <div id="description" class="description">
189
-
190
- <p><a
191
- href="http://mentalized.net/journal/2010/04/02/suppress_warnings_from_ruby/">mentalized.net/journal/2010/04/02/suppress_warnings_from_ruby/</a></p>
192
-
193
- </div><!-- description -->
194
-
195
-
196
-
197
-
198
- <section id="5Buntitled-5D" class="documentation-section">
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
- <!-- Methods -->
208
-
209
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
210
- <h3 class="section-header">Public Instance Methods</h3>
211
-
212
-
213
- <div id="method-i-suppress_warning" class="method-detail ">
214
-
215
- <div class="method-heading">
216
- <span class="method-name">suppress_warning</span><span
217
- class="method-args">() { || ... }</span>
218
- <span class="method-click-advice">click to toggle source</span>
219
- </div>
220
-
221
-
222
- <div class="method-description">
223
-
224
-
225
-
226
-
227
-
228
- <div class="method-source-code" id="suppress_warning-source">
229
- <pre><span class="ruby-comment"># File lib/rubybreaker/util.rb, line 33</span>
230
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">suppress_warning</span>
231
- <span class="ruby-identifier">original_verbosity</span> = <span class="ruby-identifier">$VERBOSE</span>
232
- <span class="ruby-identifier">$VERBOSE</span> = <span class="ruby-keyword">nil</span>
233
- <span class="ruby-identifier">result</span> = <span class="ruby-keyword">yield</span>
234
- <span class="ruby-identifier">$VERBOSE</span> = <span class="ruby-identifier">original_verbosity</span>
235
- <span class="ruby-keyword">return</span> <span class="ruby-identifier">result</span>
236
- <span class="ruby-keyword">end</span></pre>
237
- </div><!-- suppress_warning-source -->
238
-
239
- </div>
240
-
241
-
242
-
243
-
244
- </div><!-- suppress_warning-method -->
245
-
246
-
247
- </section><!-- public-instance-method-details -->
248
-
249
- </section><!-- 5Buntitled-5D -->
250
-
251
- </div><!-- documentation -->
252
-
253
-
254
- <footer id="validator-badges">
255
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
256
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
257
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
258
- </footer>
259
-