rubybreaker 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/ABOUT.md +20 -0
- data/NEWS +5 -0
- data/README.md +16 -352
- data/Rakefile +30 -16
- data/TOPICS.md +55 -0
- data/TUTORIAL.md +291 -0
- data/VERSION +1 -1
- data/bin/rubybreaker +32 -14
- data/lib/rubybreaker/runtime/monitor.rb +1 -1
- data/lib/rubybreaker/runtime.rb +41 -21
- data/lib/rubybreaker/task.rb +15 -9
- data/lib/rubybreaker/test/rspec.rb +3 -3
- data/lib/rubybreaker/test/testcase.rb +3 -3
- data/lib/rubybreaker.rb +31 -16
- data/test/integrated/{tc_both_broken_breakable.rb → tc_both_documented_and_undocumented.rb} +3 -4
- data/test/integrated/tc_class_methods.rb +1 -1
- data/test/integrated/tc_inherit_broken.rb +1 -1
- data/test/integrated/tc_method_missing.rb +1 -1
- data/test/integrated/tc_namespace.rb +1 -1
- data/test/integrated/tc_simple1.rb +1 -1
- data/test/testtask/tc_testtask.rb +2 -2
- data/test/ts_integrated.rb +1 -1
- data/test/ts_rspec.rb +1 -1
- data/webpage/about.html +50 -0
- data/webpage/footer.html +6 -1
- data/webpage/header.html +9 -3
- data/webpage/images/logo.png +0 -0
- data/webpage/images/title.png +0 -0
- data/webpage/index.html +31 -367
- data/webpage/rdoc/Object.html +3 -103
- data/webpage/rdoc/Rake/RubyBreakerTestTask.html +80 -18
- data/webpage/rdoc/Rake.html +3 -7
- data/webpage/rdoc/RubyBreaker/Breakable.html +4 -8
- data/webpage/rdoc/RubyBreaker/Broken.html +4 -8
- data/webpage/rdoc/RubyBreaker/Context.html +3 -7
- data/webpage/rdoc/RubyBreaker/Errors/InternalError.html +3 -7
- data/webpage/rdoc/RubyBreaker/Errors/InvalidSubtypeCheck.html +3 -7
- data/webpage/rdoc/RubyBreaker/Errors/InvalidTypeConstruction.html +3 -7
- data/webpage/rdoc/RubyBreaker/Errors/SubtypeFailure.html +3 -7
- data/webpage/rdoc/RubyBreaker/Errors/TypeError.html +3 -7
- data/webpage/rdoc/RubyBreaker/Errors/UserError.html +3 -7
- data/webpage/rdoc/RubyBreaker/Errors.html +3 -7
- data/webpage/rdoc/RubyBreaker/ObjectPosition.html +3 -7
- data/webpage/rdoc/RubyBreaker/Position.html +3 -7
- data/webpage/rdoc/RubyBreaker/RDocSupport.html +3 -7
- data/webpage/rdoc/RubyBreaker/RubyTypeUtils.html +3 -7
- data/webpage/rdoc/RubyBreaker/Runtime/Inspector.html +3 -7
- data/webpage/rdoc/RubyBreaker/Runtime/MethodInfo.html +3 -7
- data/webpage/rdoc/RubyBreaker/Runtime/Monitor.html +3 -7
- data/webpage/rdoc/RubyBreaker/Runtime/MonitorInstaller.html +10 -14
- data/webpage/rdoc/RubyBreaker/Runtime/MonitorSwitch.html +3 -7
- data/webpage/rdoc/RubyBreaker/Runtime/MonitorUtils.html +3 -7
- data/webpage/rdoc/RubyBreaker/Runtime/ObjectWrapper.html +3 -7
- data/webpage/rdoc/RubyBreaker/Runtime/Pluggable.html +3 -7
- data/webpage/rdoc/RubyBreaker/Runtime/TypeSigParser.html +3 -7
- data/webpage/rdoc/RubyBreaker/Runtime/TypeSigUnparser.html +3 -7
- data/webpage/rdoc/RubyBreaker/Runtime/TypeSystem.html +3 -7
- data/webpage/rdoc/RubyBreaker/Runtime.html +42 -39
- data/webpage/rdoc/RubyBreaker/TypeComparer.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeDefs/AnyType.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeDefs/BlockType.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeDefs/DuckType.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeDefs/FusionType.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeDefs/MethodListType.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeDefs/MethodType.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeDefs/NilType.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeDefs/NominalType.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeDefs/OptionalType.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeDefs/OrType.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeDefs/SelfType.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeDefs/Type.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeDefs/VarLengthType.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeDefs.html +3 -7
- data/webpage/rdoc/RubyBreaker/TypeUnparser.html +3 -7
- data/webpage/rdoc/RubyBreaker/Typing.html +3 -7
- data/webpage/rdoc/RubyBreaker/Util.html +3 -7
- data/webpage/rdoc/RubyBreaker.html +48 -15
- data/webpage/rdoc/Test/Unit.html +3 -7
- data/webpage/rdoc/Test.html +3 -7
- data/webpage/rdoc/created.rid +18 -17
- data/webpage/rdoc/index.html +3 -7
- data/webpage/rdoc/js/search_index.js +1 -1
- data/webpage/rdoc/table_of_contents.html +28 -36
- data/webpage/rubybreaker.css +8 -6
- data/webpage/topics.html +85 -0
- data/webpage/tutorial.html +331 -0
- metadata +14 -8
- data/lib/rubybreaker/doc.rb +0 -3
- data/webpage/rdoc/Kernel.html +0 -286
- data/webpage/rdoc/Test/Unit/TestCase.html +0 -309
data/webpage/rdoc/Kernel.html
DELETED
@@ -1,286 +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 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.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-typesig">#typesig</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/Context.html">RubyBreaker::Context</a>
|
88
|
-
|
89
|
-
<li><a href="./RubyBreaker/Errors.html">RubyBreaker::Errors</a>
|
90
|
-
|
91
|
-
<li><a href="./RubyBreaker/Errors/InternalError.html">RubyBreaker::Errors::InternalError</a>
|
92
|
-
|
93
|
-
<li><a href="./RubyBreaker/Errors/InvalidSubtypeCheck.html">RubyBreaker::Errors::InvalidSubtypeCheck</a>
|
94
|
-
|
95
|
-
<li><a href="./RubyBreaker/Errors/InvalidTypeConstruction.html">RubyBreaker::Errors::InvalidTypeConstruction</a>
|
96
|
-
|
97
|
-
<li><a href="./RubyBreaker/Errors/SubtypeFailure.html">RubyBreaker::Errors::SubtypeFailure</a>
|
98
|
-
|
99
|
-
<li><a href="./RubyBreaker/Errors/TypeError.html">RubyBreaker::Errors::TypeError</a>
|
100
|
-
|
101
|
-
<li><a href="./RubyBreaker/Errors/UserError.html">RubyBreaker::Errors::UserError</a>
|
102
|
-
|
103
|
-
<li><a href="./RubyBreaker/ObjectPosition.html">RubyBreaker::ObjectPosition</a>
|
104
|
-
|
105
|
-
<li><a href="./RubyBreaker/Position.html">RubyBreaker::Position</a>
|
106
|
-
|
107
|
-
<li><a href="./RubyBreaker/RDocSupport.html">RubyBreaker::RDocSupport</a>
|
108
|
-
|
109
|
-
<li><a href="./RubyBreaker/RubyTypeUtils.html">RubyBreaker::RubyTypeUtils</a>
|
110
|
-
|
111
|
-
<li><a href="./RubyBreaker/Runtime.html">RubyBreaker::Runtime</a>
|
112
|
-
|
113
|
-
<li><a href="./RubyBreaker/Runtime/Inspector.html">RubyBreaker::Runtime::Inspector</a>
|
114
|
-
|
115
|
-
<li><a href="./RubyBreaker/Runtime/MethodInfo.html">RubyBreaker::Runtime::MethodInfo</a>
|
116
|
-
|
117
|
-
<li><a href="./RubyBreaker/Runtime/Monitor.html">RubyBreaker::Runtime::Monitor</a>
|
118
|
-
|
119
|
-
<li><a href="./RubyBreaker/Runtime/MonitorInstaller.html">RubyBreaker::Runtime::MonitorInstaller</a>
|
120
|
-
|
121
|
-
<li><a href="./RubyBreaker/Runtime/MonitorSwitch.html">RubyBreaker::Runtime::MonitorSwitch</a>
|
122
|
-
|
123
|
-
<li><a href="./RubyBreaker/Runtime/MonitorUtils.html">RubyBreaker::Runtime::MonitorUtils</a>
|
124
|
-
|
125
|
-
<li><a href="./RubyBreaker/Runtime/ObjectWrapper.html">RubyBreaker::Runtime::ObjectWrapper</a>
|
126
|
-
|
127
|
-
<li><a href="./RubyBreaker/Runtime/Pluggable.html">RubyBreaker::Runtime::Pluggable</a>
|
128
|
-
|
129
|
-
<li><a href="./RubyBreaker/Runtime/TypeSigParser.html">RubyBreaker::Runtime::TypeSigParser</a>
|
130
|
-
|
131
|
-
<li><a href="./RubyBreaker/Runtime/TypeSigUnparser.html">RubyBreaker::Runtime::TypeSigUnparser</a>
|
132
|
-
|
133
|
-
<li><a href="./RubyBreaker/Runtime/TypeSystem.html">RubyBreaker::Runtime::TypeSystem</a>
|
134
|
-
|
135
|
-
<li><a href="./RubyBreaker/TypeComparer.html">RubyBreaker::TypeComparer</a>
|
136
|
-
|
137
|
-
<li><a href="./RubyBreaker/TypeDefs.html">RubyBreaker::TypeDefs</a>
|
138
|
-
|
139
|
-
<li><a href="./RubyBreaker/TypeDefs/AnyType.html">RubyBreaker::TypeDefs::AnyType</a>
|
140
|
-
|
141
|
-
<li><a href="./RubyBreaker/TypeDefs/BlockType.html">RubyBreaker::TypeDefs::BlockType</a>
|
142
|
-
|
143
|
-
<li><a href="./RubyBreaker/TypeDefs/DuckType.html">RubyBreaker::TypeDefs::DuckType</a>
|
144
|
-
|
145
|
-
<li><a href="./RubyBreaker/TypeDefs/FusionType.html">RubyBreaker::TypeDefs::FusionType</a>
|
146
|
-
|
147
|
-
<li><a href="./RubyBreaker/TypeDefs/MethodListType.html">RubyBreaker::TypeDefs::MethodListType</a>
|
148
|
-
|
149
|
-
<li><a href="./RubyBreaker/TypeDefs/MethodType.html">RubyBreaker::TypeDefs::MethodType</a>
|
150
|
-
|
151
|
-
<li><a href="./RubyBreaker/TypeDefs/NilType.html">RubyBreaker::TypeDefs::NilType</a>
|
152
|
-
|
153
|
-
<li><a href="./RubyBreaker/TypeDefs/NominalType.html">RubyBreaker::TypeDefs::NominalType</a>
|
154
|
-
|
155
|
-
<li><a href="./RubyBreaker/TypeDefs/OptionalType.html">RubyBreaker::TypeDefs::OptionalType</a>
|
156
|
-
|
157
|
-
<li><a href="./RubyBreaker/TypeDefs/OrType.html">RubyBreaker::TypeDefs::OrType</a>
|
158
|
-
|
159
|
-
<li><a href="./RubyBreaker/TypeDefs/SelfType.html">RubyBreaker::TypeDefs::SelfType</a>
|
160
|
-
|
161
|
-
<li><a href="./RubyBreaker/TypeDefs/Type.html">RubyBreaker::TypeDefs::Type</a>
|
162
|
-
|
163
|
-
<li><a href="./RubyBreaker/TypeDefs/VarLengthType.html">RubyBreaker::TypeDefs::VarLengthType</a>
|
164
|
-
|
165
|
-
<li><a href="./RubyBreaker/TypeUnparser.html">RubyBreaker::TypeUnparser</a>
|
166
|
-
|
167
|
-
<li><a href="./RubyBreaker/Typing.html">RubyBreaker::Typing</a>
|
168
|
-
|
169
|
-
<li><a href="./RubyBreaker/Util.html">RubyBreaker::Util</a>
|
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
|
-
<li><a href="./Rake.html">Rake</a>
|
178
|
-
|
179
|
-
<li><a href="./Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
|
180
|
-
|
181
|
-
<li><a href="./Kernel.html">Kernel</a>
|
182
|
-
|
183
|
-
<li><a href="./Object.html">Object</a>
|
184
|
-
|
185
|
-
</ul>
|
186
|
-
</nav>
|
187
|
-
|
188
|
-
</div>
|
189
|
-
</nav>
|
190
|
-
|
191
|
-
<div id="documentation">
|
192
|
-
<h1 class="module">module Kernel</h1>
|
193
|
-
|
194
|
-
<div id="description" class="description">
|
195
|
-
|
196
|
-
<p>This method is available by default.</p>
|
197
|
-
|
198
|
-
</div><!-- description -->
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
<!-- Methods -->
|
213
|
-
|
214
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
215
|
-
<h3 class="section-header">Public Instance Methods</h3>
|
216
|
-
|
217
|
-
|
218
|
-
<div id="method-i-typesig" class="method-detail ">
|
219
|
-
|
220
|
-
<div class="method-heading">
|
221
|
-
<span class="method-name">typesig</span><span
|
222
|
-
class="method-args">(str)</span>
|
223
|
-
<span class="method-click-advice">click to toggle source</span>
|
224
|
-
</div>
|
225
|
-
|
226
|
-
|
227
|
-
<div class="method-description">
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
<div class="method-source-code" id="typesig-source">
|
234
|
-
<pre><span class="ruby-comment"># File lib/rubybreaker.rb, line 184</span>
|
235
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">typesig</span>(<span class="ruby-identifier">str</span>)
|
236
|
-
<span class="ruby-identifier">_TypeDefs</span> = <span class="ruby-constant">RubyBreaker</span><span class="ruby-operator">::</span><span class="ruby-constant">TypeDefs</span>
|
237
|
-
|
238
|
-
<span class="ruby-comment"># This MUST BE set for self type to work in type signatures.</span>
|
239
|
-
<span class="ruby-identifier">_TypeDefs</span><span class="ruby-operator">::</span><span class="ruby-constant">SelfType</span>.<span class="ruby-identifier">set_self</span>(<span class="ruby-keyword">self</span>)
|
240
|
-
|
241
|
-
<span class="ruby-identifier">t</span> = <span class="ruby-constant">RubyBreaker</span><span class="ruby-operator">::</span><span class="ruby-constant">Runtime</span><span class="ruby-operator">::</span><span class="ruby-constant">TypeSigParser</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">str</span>)
|
242
|
-
<span class="ruby-identifier">t_map</span> = <span class="ruby-constant">RubyBreaker</span><span class="ruby-operator">::</span><span class="ruby-constant">Runtime</span><span class="ruby-operator">::</span><span class="ruby-constant">TYPE_MAP</span>[<span class="ruby-keyword">self</span>]
|
243
|
-
|
244
|
-
<span class="ruby-comment"># If the type map doesn't exist, create it on the fly. Now this module</span>
|
245
|
-
<span class="ruby-comment"># is broken!</span>
|
246
|
-
<span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">t_map</span>
|
247
|
-
<span class="ruby-identifier">t_map</span> = {}
|
248
|
-
<span class="ruby-constant">RubyBreaker</span><span class="ruby-operator">::</span><span class="ruby-constant">Runtime</span><span class="ruby-operator">::</span><span class="ruby-constant">TYPE_MAP</span>[<span class="ruby-keyword">self</span>] = <span class="ruby-identifier">t_map</span>
|
249
|
-
<span class="ruby-keyword">end</span>
|
250
|
-
|
251
|
-
<span class="ruby-identifier">meth_type</span> = <span class="ruby-identifier">t_map</span>[<span class="ruby-identifier">t</span>.<span class="ruby-identifier">meth_name</span>]
|
252
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">meth_type</span>
|
253
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">meth_type</span>.<span class="ruby-identifier">instance_of?</span>(<span class="ruby-identifier">_TypeDefs</span><span class="ruby-operator">::</span><span class="ruby-constant">MethodListType</span>)
|
254
|
-
<span class="ruby-identifier">meth_type</span>.<span class="ruby-identifier">types</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">t</span>
|
255
|
-
<span class="ruby-keyword">else</span>
|
256
|
-
<span class="ruby-comment"># then promote it to a method list type</span>
|
257
|
-
<span class="ruby-identifier">t_map</span>[<span class="ruby-identifier">t</span>.<span class="ruby-identifier">meth_name</span>] = <span class="ruby-identifier">_TypeDefs</span><span class="ruby-operator">::</span><span class="ruby-constant">MethodListType</span>.<span class="ruby-identifier">new</span>([<span class="ruby-identifier">meth_type</span>, <span class="ruby-identifier">t</span>])
|
258
|
-
<span class="ruby-keyword">end</span>
|
259
|
-
<span class="ruby-keyword">else</span>
|
260
|
-
<span class="ruby-identifier">t_map</span>[<span class="ruby-identifier">t</span>.<span class="ruby-identifier">meth_name</span>] = <span class="ruby-identifier">t</span>
|
261
|
-
<span class="ruby-keyword">end</span>
|
262
|
-
<span class="ruby-keyword">return</span> <span class="ruby-identifier">t</span>
|
263
|
-
<span class="ruby-keyword">end</span></pre>
|
264
|
-
</div><!-- typesig-source -->
|
265
|
-
|
266
|
-
</div>
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
</div><!-- typesig-method -->
|
272
|
-
|
273
|
-
|
274
|
-
</section><!-- public-instance-method-details -->
|
275
|
-
|
276
|
-
</section><!-- 5Buntitled-5D -->
|
277
|
-
|
278
|
-
</div><!-- documentation -->
|
279
|
-
|
280
|
-
|
281
|
-
<footer id="validator-badges">
|
282
|
-
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
283
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
284
|
-
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
285
|
-
</footer>
|
286
|
-
|
@@ -1,309 +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>class Test::Unit::TestCase - 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="class">
|
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/test/testcase.rb
|
51
|
-
</ul>
|
52
|
-
</nav>
|
53
|
-
|
54
|
-
|
55
|
-
</div>
|
56
|
-
|
57
|
-
<div id="class-metadata">
|
58
|
-
|
59
|
-
<nav id="parent-class-section" class="section">
|
60
|
-
<h3 class="section-header">Parent</h3>
|
61
|
-
|
62
|
-
<p class="link"><a href="../../Object.html">Object</a>
|
63
|
-
|
64
|
-
</nav>
|
65
|
-
|
66
|
-
|
67
|
-
<!-- Method Quickref -->
|
68
|
-
<nav id="method-list-section" class="section">
|
69
|
-
<h3 class="section-header">Methods</h3>
|
70
|
-
|
71
|
-
<ul class="link-list">
|
72
|
-
|
73
|
-
<li><a href="#method-c-new">::new</a>
|
74
|
-
|
75
|
-
<li><a href="#method-i-__rubybreaker_initialize">#__rubybreaker_initialize</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/Context.html">RubyBreaker::Context</a>
|
96
|
-
|
97
|
-
<li><a href="../../RubyBreaker/Errors.html">RubyBreaker::Errors</a>
|
98
|
-
|
99
|
-
<li><a href="../../RubyBreaker/Errors/InternalError.html">RubyBreaker::Errors::InternalError</a>
|
100
|
-
|
101
|
-
<li><a href="../../RubyBreaker/Errors/InvalidSubtypeCheck.html">RubyBreaker::Errors::InvalidSubtypeCheck</a>
|
102
|
-
|
103
|
-
<li><a href="../../RubyBreaker/Errors/InvalidTypeConstruction.html">RubyBreaker::Errors::InvalidTypeConstruction</a>
|
104
|
-
|
105
|
-
<li><a href="../../RubyBreaker/Errors/SubtypeFailure.html">RubyBreaker::Errors::SubtypeFailure</a>
|
106
|
-
|
107
|
-
<li><a href="../../RubyBreaker/Errors/TypeError.html">RubyBreaker::Errors::TypeError</a>
|
108
|
-
|
109
|
-
<li><a href="../../RubyBreaker/Errors/UserError.html">RubyBreaker::Errors::UserError</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/RDocSupport.html">RubyBreaker::RDocSupport</a>
|
116
|
-
|
117
|
-
<li><a href="../../RubyBreaker/RubyTypeUtils.html">RubyBreaker::RubyTypeUtils</a>
|
118
|
-
|
119
|
-
<li><a href="../../RubyBreaker/Runtime.html">RubyBreaker::Runtime</a>
|
120
|
-
|
121
|
-
<li><a href="../../RubyBreaker/Runtime/Inspector.html">RubyBreaker::Runtime::Inspector</a>
|
122
|
-
|
123
|
-
<li><a href="../../RubyBreaker/Runtime/MethodInfo.html">RubyBreaker::Runtime::MethodInfo</a>
|
124
|
-
|
125
|
-
<li><a href="../../RubyBreaker/Runtime/Monitor.html">RubyBreaker::Runtime::Monitor</a>
|
126
|
-
|
127
|
-
<li><a href="../../RubyBreaker/Runtime/MonitorInstaller.html">RubyBreaker::Runtime::MonitorInstaller</a>
|
128
|
-
|
129
|
-
<li><a href="../../RubyBreaker/Runtime/MonitorSwitch.html">RubyBreaker::Runtime::MonitorSwitch</a>
|
130
|
-
|
131
|
-
<li><a href="../../RubyBreaker/Runtime/MonitorUtils.html">RubyBreaker::Runtime::MonitorUtils</a>
|
132
|
-
|
133
|
-
<li><a href="../../RubyBreaker/Runtime/ObjectWrapper.html">RubyBreaker::Runtime::ObjectWrapper</a>
|
134
|
-
|
135
|
-
<li><a href="../../RubyBreaker/Runtime/Pluggable.html">RubyBreaker::Runtime::Pluggable</a>
|
136
|
-
|
137
|
-
<li><a href="../../RubyBreaker/Runtime/TypeSigParser.html">RubyBreaker::Runtime::TypeSigParser</a>
|
138
|
-
|
139
|
-
<li><a href="../../RubyBreaker/Runtime/TypeSigUnparser.html">RubyBreaker::Runtime::TypeSigUnparser</a>
|
140
|
-
|
141
|
-
<li><a href="../../RubyBreaker/Runtime/TypeSystem.html">RubyBreaker::Runtime::TypeSystem</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/Util.html">RubyBreaker::Util</a>
|
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
|
-
<li><a href="../../Rake.html">Rake</a>
|
186
|
-
|
187
|
-
<li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
|
188
|
-
|
189
|
-
<li><a href="../../Kernel.html">Kernel</a>
|
190
|
-
|
191
|
-
<li><a href="../../Object.html">Object</a>
|
192
|
-
|
193
|
-
</ul>
|
194
|
-
</nav>
|
195
|
-
|
196
|
-
</div>
|
197
|
-
</nav>
|
198
|
-
|
199
|
-
<div id="documentation">
|
200
|
-
<h1 class="class">class Test::Unit::TestCase</h1>
|
201
|
-
|
202
|
-
<div id="description" class="description">
|
203
|
-
|
204
|
-
<p>This class is patched to run <a
|
205
|
-
href="../../RubyBreaker.html">RubyBreaker</a> along with the test cases.</p>
|
206
|
-
|
207
|
-
</div><!-- description -->
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
<!-- Methods -->
|
222
|
-
|
223
|
-
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
224
|
-
<h3 class="section-header">Public Class Methods</h3>
|
225
|
-
|
226
|
-
|
227
|
-
<div id="method-c-new" class="method-detail ">
|
228
|
-
|
229
|
-
<div class="method-heading">
|
230
|
-
<span class="method-name">new</span><span
|
231
|
-
class="method-args">(*args, &blk)</span>
|
232
|
-
<span class="method-click-advice">click to toggle source</span>
|
233
|
-
</div>
|
234
|
-
|
235
|
-
|
236
|
-
<div class="method-description">
|
237
|
-
|
238
|
-
<p>This method overrides the original constructor to run <a
|
239
|
-
href="../../RubyBreaker.html">RubyBreaker</a> before calling the original
|
240
|
-
constructor.</p>
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
<div class="method-source-code" id="new-source">
|
245
|
-
<pre><span class="ruby-comment"># File lib/rubybreaker/test/testcase.rb, line 16</span>
|
246
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(*<span class="ruby-identifier">args</span>, &<span class="ruby-identifier">blk</span>)
|
247
|
-
<span class="ruby-constant">RubyBreaker</span>.<span class="ruby-identifier">run</span>()
|
248
|
-
<span class="ruby-keyword">return</span> <span class="ruby-identifier">send</span>(<span class="ruby-value">:__rubybreaker_initialize</span>, *<span class="ruby-identifier">args</span>, &<span class="ruby-identifier">blk</span>)
|
249
|
-
<span class="ruby-keyword">end</span></pre>
|
250
|
-
</div><!-- new-source -->
|
251
|
-
|
252
|
-
</div>
|
253
|
-
|
254
|
-
|
255
|
-
<div class="aliases">
|
256
|
-
Also aliased as: <a href="TestCase.html#method-i-__rubybreaker_initialize">__rubybreaker_initialize</a>
|
257
|
-
</div>
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
</div><!-- new-method -->
|
262
|
-
|
263
|
-
|
264
|
-
</section><!-- public-class-method-details -->
|
265
|
-
|
266
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
267
|
-
<h3 class="section-header">Public Instance Methods</h3>
|
268
|
-
|
269
|
-
|
270
|
-
<div id="method-i-__rubybreaker_initialize" class="method-detail method-alias">
|
271
|
-
|
272
|
-
<div class="method-heading">
|
273
|
-
<span class="method-name">__rubybreaker_initialize</span><span
|
274
|
-
class="method-args">(*args, &blk)</span>
|
275
|
-
<span class="method-click-advice">click to toggle source</span>
|
276
|
-
</div>
|
277
|
-
|
278
|
-
|
279
|
-
<div class="method-description">
|
280
|
-
|
281
|
-
<p>Save the original constructor method.</p>
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
</div>
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
<div class="aliases">
|
291
|
-
Alias for: <a href="TestCase.html#method-c-new">new</a>
|
292
|
-
</div>
|
293
|
-
|
294
|
-
</div><!-- __rubybreaker_initialize-method -->
|
295
|
-
|
296
|
-
|
297
|
-
</section><!-- public-instance-method-details -->
|
298
|
-
|
299
|
-
</section><!-- 5Buntitled-5D -->
|
300
|
-
|
301
|
-
</div><!-- documentation -->
|
302
|
-
|
303
|
-
|
304
|
-
<footer id="validator-badges">
|
305
|
-
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
306
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
307
|
-
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
308
|
-
</footer>
|
309
|
-
|