rubybreaker 0.0.3 → 0.0.4
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/NEWS +4 -0
- data/README.md +33 -19
- data/Rakefile +31 -13
- data/TODO +6 -4
- data/VERSION +1 -1
- data/bin/rubybreaker +0 -1
- data/lib/rubybreaker/debug/debug.rb +1 -1
- data/lib/rubybreaker/runtime/typesig_unparser.rb +96 -0
- data/lib/rubybreaker/runtime.rb +1 -0
- data/lib/rubybreaker/test/rspec.rb +15 -0
- data/lib/rubybreaker/test/testcase.rb +4 -4
- data/lib/rubybreaker/test.rb +1 -0
- data/lib/rubybreaker/type/type_grammar.treetop +5 -4
- data/lib/rubybreaker/type/type_unparser.rb +69 -25
- data/lib/rubybreaker.rb +9 -77
- data/test/integrated/tc_namespace.rb +56 -0
- data/test/ts_integrated.rb +1 -0
- data/test/ts_rspec.rb +31 -0
- data/test/ts_type.rb +2 -0
- data/test/type/tc_camelize.rb +24 -0
- data/test/type/tc_namespace.rb +25 -0
- data/test/type/tc_unparser.rb +31 -32
- data/webpage/index.html +34 -19
- data/webpage/rdoc/Object.html +308 -0
- data/webpage/rdoc/RubyBreaker/Breakable.html +5 -1
- data/webpage/rdoc/RubyBreaker/Broken/BrokenEigen.html +5 -1
- data/webpage/rdoc/RubyBreaker/Broken.html +5 -1
- data/webpage/rdoc/RubyBreaker/Context.html +5 -1
- data/webpage/rdoc/RubyBreaker/Errors/InternalError.html +4 -0
- data/webpage/rdoc/RubyBreaker/Errors/InvalidSubtypeCheck.html +4 -0
- data/webpage/rdoc/RubyBreaker/Errors/InvalidTypeConstruction.html +4 -0
- data/webpage/rdoc/RubyBreaker/Errors/SubtypeFailure.html +4 -0
- data/webpage/rdoc/RubyBreaker/Errors/TypeError.html +4 -0
- data/webpage/rdoc/RubyBreaker/Errors/UserError.html +4 -0
- data/webpage/rdoc/RubyBreaker/Errors.html +4 -0
- data/webpage/rdoc/RubyBreaker/Main.html +17 -132
- data/webpage/rdoc/RubyBreaker/ObjectPosition.html +5 -1
- data/webpage/rdoc/RubyBreaker/Position.html +5 -1
- data/webpage/rdoc/RubyBreaker/RubyTypeUtils.html +4 -0
- data/webpage/rdoc/RubyBreaker/Runtime/Inspector.html +4 -0
- data/webpage/rdoc/RubyBreaker/Runtime/MethodInfo.html +5 -1
- data/webpage/rdoc/RubyBreaker/Runtime/Monitor.html +5 -1
- data/webpage/rdoc/RubyBreaker/Runtime/MonitorInstaller.html +4 -0
- data/webpage/rdoc/RubyBreaker/Runtime/MonitorSwitch.html +5 -1
- data/webpage/rdoc/RubyBreaker/Runtime/MonitorUtils.html +4 -0
- data/webpage/rdoc/RubyBreaker/Runtime/ObjectWrapper.html +4 -0
- data/webpage/rdoc/RubyBreaker/Runtime/Pluggable.html +4 -0
- data/webpage/rdoc/RubyBreaker/Runtime/TypePlaceholder.html +5 -1
- data/webpage/rdoc/RubyBreaker/Runtime/TypeSigParser.html +4 -0
- data/webpage/rdoc/RubyBreaker/Runtime/TypeSystem.html +5 -1
- data/webpage/rdoc/RubyBreaker/Runtime/TypesigUnparser.html +404 -0
- data/webpage/rdoc/RubyBreaker/Runtime.html +5 -0
- data/webpage/rdoc/RubyBreaker/TestCase.html +47 -43
- data/webpage/rdoc/RubyBreaker/TypeComparer.html +4 -0
- data/webpage/rdoc/RubyBreaker/TypeDefs/AnyType.html +4 -0
- data/webpage/rdoc/RubyBreaker/TypeDefs/BlockType.html +4 -0
- data/webpage/rdoc/RubyBreaker/TypeDefs/DuckType.html +4 -0
- data/webpage/rdoc/RubyBreaker/TypeDefs/FusionType.html +4 -0
- data/webpage/rdoc/RubyBreaker/TypeDefs/MethodListType.html +4 -0
- data/webpage/rdoc/RubyBreaker/TypeDefs/MethodType.html +4 -0
- data/webpage/rdoc/RubyBreaker/TypeDefs/NilType.html +4 -0
- data/webpage/rdoc/RubyBreaker/TypeDefs/NominalType.html +4 -0
- data/webpage/rdoc/RubyBreaker/TypeDefs/OptionalType.html +4 -0
- data/webpage/rdoc/RubyBreaker/TypeDefs/OrType.html +4 -0
- data/webpage/rdoc/RubyBreaker/TypeDefs/SelfType.html +4 -0
- data/webpage/rdoc/RubyBreaker/TypeDefs/Type.html +11 -6
- data/webpage/rdoc/RubyBreaker/TypeDefs/VarLengthType.html +4 -0
- data/webpage/rdoc/RubyBreaker/TypeDefs.html +4 -0
- data/webpage/rdoc/RubyBreaker/TypeUnparser.html +15 -7
- data/webpage/rdoc/RubyBreaker/Typing.html +4 -0
- data/webpage/rdoc/RubyBreaker/Util.html +4 -0
- data/webpage/rdoc/RubyBreaker.html +6 -6
- data/webpage/rdoc/created.rid +9 -7
- data/webpage/rdoc/index.html +4 -0
- data/webpage/rdoc/js/search_index.js +1 -1
- data/webpage/rdoc/table_of_contents.html +36 -24
- metadata +13 -7
|
@@ -84,10 +84,6 @@
|
|
|
84
84
|
|
|
85
85
|
<li><a href="#method-c-output">::output</a>
|
|
86
86
|
|
|
87
|
-
<li><a href="#method-c-pp_methods">::pp_methods</a>
|
|
88
|
-
|
|
89
|
-
<li><a href="#method-c-pp_module">::pp_module</a>
|
|
90
|
-
|
|
91
87
|
<li><a href="#method-c-run">::run</a>
|
|
92
88
|
|
|
93
89
|
<li><a href="#method-c-setup">::setup</a>
|
|
@@ -160,6 +156,8 @@
|
|
|
160
156
|
|
|
161
157
|
<li><a href="../RubyBreaker/Runtime/TypeSystem.html">RubyBreaker::Runtime::TypeSystem</a>
|
|
162
158
|
|
|
159
|
+
<li><a href="../RubyBreaker/Runtime/TypesigUnparser.html">RubyBreaker::Runtime::TypesigUnparser</a>
|
|
160
|
+
|
|
163
161
|
<li><a href="../RubyBreaker/TestCase.html">RubyBreaker::TestCase</a>
|
|
164
162
|
|
|
165
163
|
<li><a href="../RubyBreaker/TypeComparer.html">RubyBreaker::TypeComparer</a>
|
|
@@ -198,6 +196,8 @@
|
|
|
198
196
|
|
|
199
197
|
<li><a href="../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
|
200
198
|
|
|
199
|
+
<li><a href="../Object.html">Object</a>
|
|
200
|
+
|
|
201
201
|
</ul>
|
|
202
202
|
</nav>
|
|
203
203
|
|
|
@@ -248,7 +248,7 @@ running <a href="../RubyBreaker.html">RubyBreaker</a>.</p>
|
|
|
248
248
|
|
|
249
249
|
|
|
250
250
|
<div class="method-source-code" id="input-source">
|
|
251
|
-
<pre><span class="ruby-comment"># File lib/rubybreaker.rb, line
|
|
251
|
+
<pre><span class="ruby-comment"># File lib/rubybreaker.rb, line 69</span>
|
|
252
252
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">input</span>()
|
|
253
253
|
<span class="ruby-keyword">return</span> <span class="ruby-keyword">unless</span> <span class="ruby-constant">OPTIONS</span>[<span class="ruby-value">:io_file</span>] <span class="ruby-operator">&&</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-constant">OPTIONS</span>[<span class="ruby-value">:io_file</span>])
|
|
254
254
|
<span class="ruby-constant">RubyBreaker</span>.<span class="ruby-identifier">verbose</span>(<span class="ruby-string">"RubyBreaker input file exists...loading"</span>)
|
|
@@ -280,22 +280,22 @@ running <a href="../RubyBreaker.html">RubyBreaker</a>.</p>
|
|
|
280
280
|
|
|
281
281
|
|
|
282
282
|
<div class="method-source-code" id="output-source">
|
|
283
|
-
<pre><span class="ruby-comment"># File lib/rubybreaker.rb, line
|
|
283
|
+
<pre><span class="ruby-comment"># File lib/rubybreaker.rb, line 76</span>
|
|
284
284
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">output</span>()
|
|
285
285
|
|
|
286
286
|
<span class="ruby-constant">RubyBreaker</span>.<span class="ruby-identifier">verbose</span>(<span class="ruby-string">"Generating type documentation"</span>)
|
|
287
287
|
|
|
288
288
|
<span class="ruby-identifier">io_exist</span> = <span class="ruby-constant">OPTIONS</span>[<span class="ruby-value">:io_file</span>] <span class="ruby-operator">&&</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-constant">OPTIONS</span>[<span class="ruby-value">:io_file</span>])
|
|
289
289
|
|
|
290
|
-
<span class="ruby-identifier">
|
|
291
|
-
<span class="ruby-identifier">pp</span> = <span class="ruby-constant">PrettyPrint</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">str</span>)
|
|
292
|
-
|
|
290
|
+
<span class="ruby-identifier">code</span> = <span class="ruby-string">""</span>
|
|
293
291
|
<span class="ruby-comment"># Document each module that was monitored</span>
|
|
294
|
-
<span class="ruby-constant">INSTALLED</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">mod</span><span class="ruby-operator">|</span>
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
292
|
+
<span class="ruby-constant">INSTALLED</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">mod</span><span class="ruby-operator">|</span>
|
|
293
|
+
<span class="ruby-identifier">str</span> = <span class="ruby-constant">Runtime</span><span class="ruby-operator">::</span><span class="ruby-constant">TypesigUnparser</span>.<span class="ruby-identifier">unparse</span>(<span class="ruby-identifier">mod</span>)
|
|
294
|
+
<span class="ruby-identifier">code</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">str</span>
|
|
295
|
+
<span class="ruby-keyword">if</span> <span class="ruby-constant">OPTIONS</span>[<span class="ruby-value">:mode</span>] <span class="ruby-operator">==</span> <span class="ruby-value">:lib</span>
|
|
296
|
+
<span class="ruby-identifier">print</span> <span class="ruby-identifier">str</span>
|
|
297
|
+
<span class="ruby-keyword">end</span>
|
|
298
|
+
}
|
|
299
299
|
|
|
300
300
|
<span class="ruby-comment"># If this was a library mode run, exit now. </span>
|
|
301
301
|
<span class="ruby-keyword">return</span> <span class="ruby-keyword">if</span> <span class="ruby-constant">OPTIONS</span>[<span class="ruby-value">:mode</span>] <span class="ruby-operator">==</span> <span class="ruby-value">:lib</span>
|
|
@@ -306,7 +306,7 @@ running <a href="../RubyBreaker.html">RubyBreaker</a>.</p>
|
|
|
306
306
|
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">"# This file is auto-generated by RubyBreaker"</span>
|
|
307
307
|
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">puts</span> <span class="ruby-string">"require \"rubybreaker\""</span>
|
|
308
308
|
<span class="ruby-keyword">end</span>
|
|
309
|
-
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">
|
|
309
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">print</span> <span class="ruby-identifier">code</span>
|
|
310
310
|
<span class="ruby-keyword">end</span>
|
|
311
311
|
|
|
312
312
|
<span class="ruby-constant">RubyBreaker</span>.<span class="ruby-identifier">verbose</span>(<span class="ruby-string">"Done generating type documentation"</span>)
|
|
@@ -321,121 +321,6 @@ running <a href="../RubyBreaker.html">RubyBreaker</a>.</p>
|
|
|
321
321
|
</div><!-- output-method -->
|
|
322
322
|
|
|
323
323
|
|
|
324
|
-
<div id="method-c-pp_methods" class="method-detail ">
|
|
325
|
-
|
|
326
|
-
<div class="method-heading">
|
|
327
|
-
<span class="method-name">pp_methods</span><span
|
|
328
|
-
class="method-args">(pp, meth_type_map)</span>
|
|
329
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
330
|
-
</div>
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
<div class="method-description">
|
|
334
|
-
|
|
335
|
-
<p>Pretty prints type information for methods</p>
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
<div class="method-source-code" id="pp_methods-source">
|
|
340
|
-
<pre><span class="ruby-comment"># File lib/rubybreaker.rb, line 79</span>
|
|
341
|
-
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">pp_methods</span>(<span class="ruby-identifier">pp</span>, <span class="ruby-identifier">meth_type_map</span>)
|
|
342
|
-
<span class="ruby-identifier">meth_type_map</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">meth_name</span>, <span class="ruby-identifier">meth_type</span><span class="ruby-operator">|</span>
|
|
343
|
-
<span class="ruby-keyword">case</span> <span class="ruby-identifier">meth_type</span>
|
|
344
|
-
<span class="ruby-keyword">when</span> <span class="ruby-constant">MethodType</span>
|
|
345
|
-
<span class="ruby-identifier">pp</span>.<span class="ruby-identifier">breakable</span>()
|
|
346
|
-
<span class="ruby-identifier">pp</span>.<span class="ruby-identifier">text</span>(<span class="ruby-string">"typesig(\""</span>)
|
|
347
|
-
<span class="ruby-constant">TypeUnparser</span>.<span class="ruby-identifier">unparse_pp</span>(<span class="ruby-identifier">pp</span>,<span class="ruby-identifier">meth_type</span>)
|
|
348
|
-
<span class="ruby-identifier">pp</span>.<span class="ruby-identifier">text</span>(<span class="ruby-string">"\")"</span>)
|
|
349
|
-
<span class="ruby-keyword">when</span> <span class="ruby-constant">MethodListType</span>
|
|
350
|
-
<span class="ruby-identifier">meth_type</span>.<span class="ruby-identifier">types</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">real_meth_type</span><span class="ruby-operator">|</span>
|
|
351
|
-
<span class="ruby-identifier">pp</span>.<span class="ruby-identifier">breakable</span>()
|
|
352
|
-
<span class="ruby-identifier">pp</span>.<span class="ruby-identifier">text</span>(<span class="ruby-string">"typesig(\""</span>)
|
|
353
|
-
<span class="ruby-constant">TypeUnparser</span>.<span class="ruby-identifier">unparse_pp</span>(<span class="ruby-identifier">pp</span>,<span class="ruby-identifier">real_meth_type</span>)
|
|
354
|
-
<span class="ruby-identifier">pp</span>.<span class="ruby-identifier">text</span>(<span class="ruby-string">"\")"</span>)
|
|
355
|
-
}
|
|
356
|
-
<span class="ruby-keyword">else</span>
|
|
357
|
-
<span class="ruby-comment"># Can't happen</span>
|
|
358
|
-
<span class="ruby-keyword">end</span>
|
|
359
|
-
}
|
|
360
|
-
<span class="ruby-keyword">end</span></pre>
|
|
361
|
-
</div><!-- pp_methods-source -->
|
|
362
|
-
|
|
363
|
-
</div>
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
</div><!-- pp_methods-method -->
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
<div id="method-c-pp_module" class="method-detail ">
|
|
372
|
-
|
|
373
|
-
<div class="method-heading">
|
|
374
|
-
<span class="method-name">pp_module</span><span
|
|
375
|
-
class="method-args">(pp, mod)</span>
|
|
376
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
377
|
-
</div>
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
<div class="method-description">
|
|
381
|
-
|
|
382
|
-
<p>Pretty prints type information for the module/class</p>
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
<div class="method-source-code" id="pp_module-source">
|
|
387
|
-
<pre><span class="ruby-comment"># File lib/rubybreaker.rb, line 101</span>
|
|
388
|
-
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">pp_module</span>(<span class="ruby-identifier">pp</span>, <span class="ruby-identifier">mod</span>)
|
|
389
|
-
<span class="ruby-comment"># Skip it if we already have seen it</span>
|
|
390
|
-
<span class="ruby-keyword">return</span> <span class="ruby-keyword">if</span> <span class="ruby-constant">DOCUMENTED</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">mod</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">mod</span>.<span class="ruby-identifier">to_s</span>[<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-node">"#<"</span>
|
|
391
|
-
|
|
392
|
-
<span class="ruby-comment"># Remember that we have documented this module/class</span>
|
|
393
|
-
<span class="ruby-constant">DOCUMENTED</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">mod</span>
|
|
394
|
-
|
|
395
|
-
<span class="ruby-comment"># Get the method type mapping</span>
|
|
396
|
-
<span class="ruby-identifier">meth_type_map</span> = <span class="ruby-constant">Inspector</span>.<span class="ruby-identifier">inspect_all</span>(<span class="ruby-identifier">mod</span>)
|
|
397
|
-
|
|
398
|
-
<span class="ruby-comment"># Check if this module is a class</span>
|
|
399
|
-
<span class="ruby-identifier">keyword</span> = <span class="ruby-identifier">mod</span>.<span class="ruby-identifier">instance_of?</span>(<span class="ruby-constant">Class</span>) <span class="ruby-operator">?</span> <span class="ruby-string">"class"</span> <span class="ruby-operator">:</span> <span class="ruby-string">"module"</span>
|
|
400
|
-
|
|
401
|
-
<span class="ruby-identifier">pp</span>.<span class="ruby-identifier">text</span>(<span class="ruby-node">"#{keyword} #{mod.to_s}"</span>, <span class="ruby-value">80</span>)
|
|
402
|
-
<span class="ruby-identifier">pp</span>.<span class="ruby-identifier">nest</span>(<span class="ruby-value">2</span>) <span class="ruby-keyword">do</span>
|
|
403
|
-
<span class="ruby-identifier">pp</span>.<span class="ruby-identifier">breakable</span>(<span class="ruby-string">""</span>)
|
|
404
|
-
<span class="ruby-identifier">pp</span>.<span class="ruby-identifier">text</span>(<span class="ruby-string">"include RubyBreaker::Broken"</span>, <span class="ruby-value">80</span>)
|
|
405
|
-
|
|
406
|
-
<span class="ruby-comment"># See if there is any class method to show</span>
|
|
407
|
-
<span class="ruby-identifier">eigen</span> = <span class="ruby-constant">Runtime</span>.<span class="ruby-identifier">eigen_class</span>(<span class="ruby-identifier">mod</span>)
|
|
408
|
-
|
|
409
|
-
<span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-constant">DOCUMENTED</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">eigen</span>)
|
|
410
|
-
<span class="ruby-constant">DOCUMENTED</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">eigen</span>
|
|
411
|
-
<span class="ruby-identifier">eigen_meth_type_map</span> = <span class="ruby-constant">Inspector</span>.<span class="ruby-identifier">inspect_all</span>(<span class="ruby-identifier">eigen</span>)
|
|
412
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">eigen_meth_type_map</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
|
413
|
-
<span class="ruby-identifier">pp</span>.<span class="ruby-identifier">breakable</span>()
|
|
414
|
-
<span class="ruby-identifier">pp</span>.<span class="ruby-identifier">text</span>(<span class="ruby-string">"class << self"</span>, <span class="ruby-value">80</span>)
|
|
415
|
-
<span class="ruby-identifier">pp</span>.<span class="ruby-identifier">nest</span>(<span class="ruby-value">2</span>) <span class="ruby-keyword">do</span>
|
|
416
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">pp_methods</span>(<span class="ruby-identifier">pp</span>, <span class="ruby-identifier">eigen_meth_type_map</span>)
|
|
417
|
-
<span class="ruby-keyword">end</span>
|
|
418
|
-
<span class="ruby-identifier">pp</span>.<span class="ruby-identifier">breakable</span>()
|
|
419
|
-
<span class="ruby-identifier">pp</span>.<span class="ruby-identifier">text</span>(<span class="ruby-string">"end"</span>, <span class="ruby-value">80</span>)
|
|
420
|
-
<span class="ruby-keyword">end</span>
|
|
421
|
-
<span class="ruby-keyword">end</span>
|
|
422
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">pp_methods</span>(<span class="ruby-identifier">pp</span>, <span class="ruby-identifier">meth_type_map</span>)
|
|
423
|
-
|
|
424
|
-
<span class="ruby-keyword">end</span>
|
|
425
|
-
<span class="ruby-identifier">pp</span>.<span class="ruby-identifier">breakable</span>()
|
|
426
|
-
<span class="ruby-identifier">pp</span>.<span class="ruby-identifier">text</span>(<span class="ruby-string">"end"</span>,<span class="ruby-value">80</span>)
|
|
427
|
-
<span class="ruby-identifier">pp</span>.<span class="ruby-identifier">breakable</span>()
|
|
428
|
-
<span class="ruby-keyword">end</span></pre>
|
|
429
|
-
</div><!-- pp_module-source -->
|
|
430
|
-
|
|
431
|
-
</div>
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
</div><!-- pp_module-method -->
|
|
437
|
-
|
|
438
|
-
|
|
439
324
|
<div id="method-c-run" class="method-detail ">
|
|
440
325
|
|
|
441
326
|
<div class="method-heading">
|
|
@@ -458,7 +343,7 @@ running <a href="../RubyBreaker.html">RubyBreaker</a>.</p>
|
|
|
458
343
|
|
|
459
344
|
|
|
460
345
|
<div class="method-source-code" id="run-source">
|
|
461
|
-
<pre><span class="ruby-comment"># File lib/rubybreaker.rb, line
|
|
346
|
+
<pre><span class="ruby-comment"># File lib/rubybreaker.rb, line 114</span>
|
|
462
347
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">run</span>()
|
|
463
348
|
|
|
464
349
|
<span class="ruby-constant">RubyBreaker</span>.<span class="ruby-identifier">setup_logger</span>()
|
|
@@ -527,7 +412,7 @@ running <a href="../RubyBreaker.html">RubyBreaker</a>.</p>
|
|
|
527
412
|
|
|
528
413
|
|
|
529
414
|
<div class="method-source-code" id="setup-source">
|
|
530
|
-
<pre><span class="ruby-comment"># File lib/rubybreaker.rb, line
|
|
415
|
+
<pre><span class="ruby-comment"># File lib/rubybreaker.rb, line 47</span>
|
|
531
416
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">setup</span>()
|
|
532
417
|
|
|
533
418
|
<span class="ruby-constant">BREAKABLE</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>
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
<nav id="parent-class-section" class="section">
|
|
60
60
|
<h3 class="section-header">Parent</h3>
|
|
61
61
|
|
|
62
|
-
<p class="link">Object
|
|
62
|
+
<p class="link"><a href="../Object.html">Object</a>
|
|
63
63
|
|
|
64
64
|
</nav>
|
|
65
65
|
|
|
@@ -142,6 +142,8 @@
|
|
|
142
142
|
|
|
143
143
|
<li><a href="../RubyBreaker/Runtime/TypeSystem.html">RubyBreaker::Runtime::TypeSystem</a>
|
|
144
144
|
|
|
145
|
+
<li><a href="../RubyBreaker/Runtime/TypesigUnparser.html">RubyBreaker::Runtime::TypesigUnparser</a>
|
|
146
|
+
|
|
145
147
|
<li><a href="../RubyBreaker/TestCase.html">RubyBreaker::TestCase</a>
|
|
146
148
|
|
|
147
149
|
<li><a href="../RubyBreaker/TypeComparer.html">RubyBreaker::TypeComparer</a>
|
|
@@ -180,6 +182,8 @@
|
|
|
180
182
|
|
|
181
183
|
<li><a href="../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
|
182
184
|
|
|
185
|
+
<li><a href="../Object.html">Object</a>
|
|
186
|
+
|
|
183
187
|
</ul>
|
|
184
188
|
</nav>
|
|
185
189
|
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
<nav id="parent-class-section" class="section">
|
|
60
60
|
<h3 class="section-header">Parent</h3>
|
|
61
61
|
|
|
62
|
-
<p class="link">Object
|
|
62
|
+
<p class="link"><a href="../Object.html">Object</a>
|
|
63
63
|
|
|
64
64
|
</nav>
|
|
65
65
|
|
|
@@ -148,6 +148,8 @@
|
|
|
148
148
|
|
|
149
149
|
<li><a href="../RubyBreaker/Runtime/TypeSystem.html">RubyBreaker::Runtime::TypeSystem</a>
|
|
150
150
|
|
|
151
|
+
<li><a href="../RubyBreaker/Runtime/TypesigUnparser.html">RubyBreaker::Runtime::TypesigUnparser</a>
|
|
152
|
+
|
|
151
153
|
<li><a href="../RubyBreaker/TestCase.html">RubyBreaker::TestCase</a>
|
|
152
154
|
|
|
153
155
|
<li><a href="../RubyBreaker/TypeComparer.html">RubyBreaker::TypeComparer</a>
|
|
@@ -186,6 +188,8 @@
|
|
|
186
188
|
|
|
187
189
|
<li><a href="../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
|
188
190
|
|
|
191
|
+
<li><a href="../Object.html">Object</a>
|
|
192
|
+
|
|
189
193
|
</ul>
|
|
190
194
|
</nav>
|
|
191
195
|
|
|
@@ -136,6 +136,8 @@
|
|
|
136
136
|
|
|
137
137
|
<li><a href="../RubyBreaker/Runtime/TypeSystem.html">RubyBreaker::Runtime::TypeSystem</a>
|
|
138
138
|
|
|
139
|
+
<li><a href="../RubyBreaker/Runtime/TypesigUnparser.html">RubyBreaker::Runtime::TypesigUnparser</a>
|
|
140
|
+
|
|
139
141
|
<li><a href="../RubyBreaker/TestCase.html">RubyBreaker::TestCase</a>
|
|
140
142
|
|
|
141
143
|
<li><a href="../RubyBreaker/TypeComparer.html">RubyBreaker::TypeComparer</a>
|
|
@@ -174,6 +176,8 @@
|
|
|
174
176
|
|
|
175
177
|
<li><a href="../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
|
176
178
|
|
|
179
|
+
<li><a href="../Object.html">Object</a>
|
|
180
|
+
|
|
177
181
|
</ul>
|
|
178
182
|
</nav>
|
|
179
183
|
|
|
@@ -140,6 +140,8 @@
|
|
|
140
140
|
|
|
141
141
|
<li><a href="../../RubyBreaker/Runtime/TypeSystem.html">RubyBreaker::Runtime::TypeSystem</a>
|
|
142
142
|
|
|
143
|
+
<li><a href="../../RubyBreaker/Runtime/TypesigUnparser.html">RubyBreaker::Runtime::TypesigUnparser</a>
|
|
144
|
+
|
|
143
145
|
<li><a href="../../RubyBreaker/TestCase.html">RubyBreaker::TestCase</a>
|
|
144
146
|
|
|
145
147
|
<li><a href="../../RubyBreaker/TypeComparer.html">RubyBreaker::TypeComparer</a>
|
|
@@ -178,6 +180,8 @@
|
|
|
178
180
|
|
|
179
181
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
|
180
182
|
|
|
183
|
+
<li><a href="../../Object.html">Object</a>
|
|
184
|
+
|
|
181
185
|
</ul>
|
|
182
186
|
</nav>
|
|
183
187
|
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
<nav id="parent-class-section" class="section">
|
|
60
60
|
<h3 class="section-header">Parent</h3>
|
|
61
61
|
|
|
62
|
-
<p class="link">Object
|
|
62
|
+
<p class="link"><a href="../../Object.html">Object</a>
|
|
63
63
|
|
|
64
64
|
</nav>
|
|
65
65
|
|
|
@@ -140,6 +140,8 @@
|
|
|
140
140
|
|
|
141
141
|
<li><a href="../../RubyBreaker/Runtime/TypeSystem.html">RubyBreaker::Runtime::TypeSystem</a>
|
|
142
142
|
|
|
143
|
+
<li><a href="../../RubyBreaker/Runtime/TypesigUnparser.html">RubyBreaker::Runtime::TypesigUnparser</a>
|
|
144
|
+
|
|
143
145
|
<li><a href="../../RubyBreaker/TestCase.html">RubyBreaker::TestCase</a>
|
|
144
146
|
|
|
145
147
|
<li><a href="../../RubyBreaker/TypeComparer.html">RubyBreaker::TypeComparer</a>
|
|
@@ -178,6 +180,8 @@
|
|
|
178
180
|
|
|
179
181
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
|
180
182
|
|
|
183
|
+
<li><a href="../../Object.html">Object</a>
|
|
184
|
+
|
|
181
185
|
</ul>
|
|
182
186
|
</nav>
|
|
183
187
|
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
<nav id="parent-class-section" class="section">
|
|
60
60
|
<h3 class="section-header">Parent</h3>
|
|
61
61
|
|
|
62
|
-
<p class="link">Object
|
|
62
|
+
<p class="link"><a href="../../Object.html">Object</a>
|
|
63
63
|
|
|
64
64
|
</nav>
|
|
65
65
|
|
|
@@ -144,6 +144,8 @@
|
|
|
144
144
|
|
|
145
145
|
<li><a href="../../RubyBreaker/Runtime/TypeSystem.html">RubyBreaker::Runtime::TypeSystem</a>
|
|
146
146
|
|
|
147
|
+
<li><a href="../../RubyBreaker/Runtime/TypesigUnparser.html">RubyBreaker::Runtime::TypesigUnparser</a>
|
|
148
|
+
|
|
147
149
|
<li><a href="../../RubyBreaker/TestCase.html">RubyBreaker::TestCase</a>
|
|
148
150
|
|
|
149
151
|
<li><a href="../../RubyBreaker/TypeComparer.html">RubyBreaker::TypeComparer</a>
|
|
@@ -182,6 +184,8 @@
|
|
|
182
184
|
|
|
183
185
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
|
184
186
|
|
|
187
|
+
<li><a href="../../Object.html">Object</a>
|
|
188
|
+
|
|
185
189
|
</ul>
|
|
186
190
|
</nav>
|
|
187
191
|
|
|
@@ -150,6 +150,8 @@
|
|
|
150
150
|
|
|
151
151
|
<li><a href="../../RubyBreaker/Runtime/TypeSystem.html">RubyBreaker::Runtime::TypeSystem</a>
|
|
152
152
|
|
|
153
|
+
<li><a href="../../RubyBreaker/Runtime/TypesigUnparser.html">RubyBreaker::Runtime::TypesigUnparser</a>
|
|
154
|
+
|
|
153
155
|
<li><a href="../../RubyBreaker/TestCase.html">RubyBreaker::TestCase</a>
|
|
154
156
|
|
|
155
157
|
<li><a href="../../RubyBreaker/TypeComparer.html">RubyBreaker::TypeComparer</a>
|
|
@@ -188,6 +190,8 @@
|
|
|
188
190
|
|
|
189
191
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
|
190
192
|
|
|
193
|
+
<li><a href="../../Object.html">Object</a>
|
|
194
|
+
|
|
191
195
|
</ul>
|
|
192
196
|
</nav>
|
|
193
197
|
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
<nav id="parent-class-section" class="section">
|
|
60
60
|
<h3 class="section-header">Parent</h3>
|
|
61
61
|
|
|
62
|
-
<p class="link">Object
|
|
62
|
+
<p class="link"><a href="../../Object.html">Object</a>
|
|
63
63
|
|
|
64
64
|
</nav>
|
|
65
65
|
|
|
@@ -146,6 +146,8 @@
|
|
|
146
146
|
|
|
147
147
|
<li><a href="../../RubyBreaker/Runtime/TypeSystem.html">RubyBreaker::Runtime::TypeSystem</a>
|
|
148
148
|
|
|
149
|
+
<li><a href="../../RubyBreaker/Runtime/TypesigUnparser.html">RubyBreaker::Runtime::TypesigUnparser</a>
|
|
150
|
+
|
|
149
151
|
<li><a href="../../RubyBreaker/TestCase.html">RubyBreaker::TestCase</a>
|
|
150
152
|
|
|
151
153
|
<li><a href="../../RubyBreaker/TypeComparer.html">RubyBreaker::TypeComparer</a>
|
|
@@ -184,6 +186,8 @@
|
|
|
184
186
|
|
|
185
187
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
|
186
188
|
|
|
189
|
+
<li><a href="../../Object.html">Object</a>
|
|
190
|
+
|
|
187
191
|
</ul>
|
|
188
192
|
</nav>
|
|
189
193
|
|
|
@@ -138,6 +138,8 @@
|
|
|
138
138
|
|
|
139
139
|
<li><a href="../../RubyBreaker/Runtime/TypeSystem.html">RubyBreaker::Runtime::TypeSystem</a>
|
|
140
140
|
|
|
141
|
+
<li><a href="../../RubyBreaker/Runtime/TypesigUnparser.html">RubyBreaker::Runtime::TypesigUnparser</a>
|
|
142
|
+
|
|
141
143
|
<li><a href="../../RubyBreaker/TestCase.html">RubyBreaker::TestCase</a>
|
|
142
144
|
|
|
143
145
|
<li><a href="../../RubyBreaker/TypeComparer.html">RubyBreaker::TypeComparer</a>
|
|
@@ -176,6 +178,8 @@
|
|
|
176
178
|
|
|
177
179
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
|
178
180
|
|
|
181
|
+
<li><a href="../../Object.html">Object</a>
|
|
182
|
+
|
|
179
183
|
</ul>
|
|
180
184
|
</nav>
|
|
181
185
|
|
|
@@ -148,6 +148,8 @@
|
|
|
148
148
|
|
|
149
149
|
<li><a href="../../RubyBreaker/Runtime/TypeSystem.html">RubyBreaker::Runtime::TypeSystem</a>
|
|
150
150
|
|
|
151
|
+
<li><a href="../../RubyBreaker/Runtime/TypesigUnparser.html">RubyBreaker::Runtime::TypesigUnparser</a>
|
|
152
|
+
|
|
151
153
|
<li><a href="../../RubyBreaker/TestCase.html">RubyBreaker::TestCase</a>
|
|
152
154
|
|
|
153
155
|
<li><a href="../../RubyBreaker/TypeComparer.html">RubyBreaker::TypeComparer</a>
|
|
@@ -186,6 +188,8 @@
|
|
|
186
188
|
|
|
187
189
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
|
188
190
|
|
|
191
|
+
<li><a href="../../Object.html">Object</a>
|
|
192
|
+
|
|
189
193
|
</ul>
|
|
190
194
|
</nav>
|
|
191
195
|
|
|
@@ -136,6 +136,8 @@
|
|
|
136
136
|
|
|
137
137
|
<li><a href="../../RubyBreaker/Runtime/TypeSystem.html">RubyBreaker::Runtime::TypeSystem</a>
|
|
138
138
|
|
|
139
|
+
<li><a href="../../RubyBreaker/Runtime/TypesigUnparser.html">RubyBreaker::Runtime::TypesigUnparser</a>
|
|
140
|
+
|
|
139
141
|
<li><a href="../../RubyBreaker/TestCase.html">RubyBreaker::TestCase</a>
|
|
140
142
|
|
|
141
143
|
<li><a href="../../RubyBreaker/TypeComparer.html">RubyBreaker::TypeComparer</a>
|
|
@@ -174,6 +176,8 @@
|
|
|
174
176
|
|
|
175
177
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
|
176
178
|
|
|
179
|
+
<li><a href="../../Object.html">Object</a>
|
|
180
|
+
|
|
177
181
|
</ul>
|
|
178
182
|
</nav>
|
|
179
183
|
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
<nav id="parent-class-section" class="section">
|
|
60
60
|
<h3 class="section-header">Parent</h3>
|
|
61
61
|
|
|
62
|
-
<p class="link">Object
|
|
62
|
+
<p class="link"><a href="../../Object.html">Object</a>
|
|
63
63
|
|
|
64
64
|
</nav>
|
|
65
65
|
|
|
@@ -140,6 +140,8 @@
|
|
|
140
140
|
|
|
141
141
|
<li><a href="../../RubyBreaker/Runtime/TypeSystem.html">RubyBreaker::Runtime::TypeSystem</a>
|
|
142
142
|
|
|
143
|
+
<li><a href="../../RubyBreaker/Runtime/TypesigUnparser.html">RubyBreaker::Runtime::TypesigUnparser</a>
|
|
144
|
+
|
|
143
145
|
<li><a href="../../RubyBreaker/TestCase.html">RubyBreaker::TestCase</a>
|
|
144
146
|
|
|
145
147
|
<li><a href="../../RubyBreaker/TypeComparer.html">RubyBreaker::TypeComparer</a>
|
|
@@ -178,6 +180,8 @@
|
|
|
178
180
|
|
|
179
181
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
|
180
182
|
|
|
183
|
+
<li><a href="../../Object.html">Object</a>
|
|
184
|
+
|
|
181
185
|
</ul>
|
|
182
186
|
</nav>
|
|
183
187
|
|
|
@@ -134,6 +134,8 @@
|
|
|
134
134
|
|
|
135
135
|
<li><a href="../../RubyBreaker/Runtime/TypeSystem.html">RubyBreaker::Runtime::TypeSystem</a>
|
|
136
136
|
|
|
137
|
+
<li><a href="../../RubyBreaker/Runtime/TypesigUnparser.html">RubyBreaker::Runtime::TypesigUnparser</a>
|
|
138
|
+
|
|
137
139
|
<li><a href="../../RubyBreaker/TestCase.html">RubyBreaker::TestCase</a>
|
|
138
140
|
|
|
139
141
|
<li><a href="../../RubyBreaker/TypeComparer.html">RubyBreaker::TypeComparer</a>
|
|
@@ -172,6 +174,8 @@
|
|
|
172
174
|
|
|
173
175
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
|
174
176
|
|
|
177
|
+
<li><a href="../../Object.html">Object</a>
|
|
178
|
+
|
|
175
179
|
</ul>
|
|
176
180
|
</nav>
|
|
177
181
|
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
<nav id="parent-class-section" class="section">
|
|
60
60
|
<h3 class="section-header">Parent</h3>
|
|
61
61
|
|
|
62
|
-
<p class="link">Object
|
|
62
|
+
<p class="link"><a href="../../Object.html">Object</a>
|
|
63
63
|
|
|
64
64
|
</nav>
|
|
65
65
|
|
|
@@ -164,6 +164,8 @@
|
|
|
164
164
|
|
|
165
165
|
<li><a href="../../RubyBreaker/Runtime/TypeSystem.html">RubyBreaker::Runtime::TypeSystem</a>
|
|
166
166
|
|
|
167
|
+
<li><a href="../../RubyBreaker/Runtime/TypesigUnparser.html">RubyBreaker::Runtime::TypesigUnparser</a>
|
|
168
|
+
|
|
167
169
|
<li><a href="../../RubyBreaker/TestCase.html">RubyBreaker::TestCase</a>
|
|
168
170
|
|
|
169
171
|
<li><a href="../../RubyBreaker/TypeComparer.html">RubyBreaker::TypeComparer</a>
|
|
@@ -202,6 +204,8 @@
|
|
|
202
204
|
|
|
203
205
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
|
204
206
|
|
|
207
|
+
<li><a href="../../Object.html">Object</a>
|
|
208
|
+
|
|
205
209
|
</ul>
|
|
206
210
|
</nav>
|
|
207
211
|
|