rubybreaker 0.0.4 → 0.0.5
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 +5 -0
- data/NOTES +9 -0
- data/README.md +100 -183
- data/Rakefile +21 -6
- data/VERSION +1 -1
- data/bin/rubybreaker +34 -50
- data/lib/rubybreaker/debug/debug.rb +6 -0
- data/lib/rubybreaker/doc/rdoc.rb +37 -0
- data/lib/rubybreaker/doc.rb +3 -0
- data/lib/rubybreaker/runtime/inspector.rb +6 -28
- data/lib/rubybreaker/runtime/monitor.rb +21 -17
- data/lib/rubybreaker/runtime/object_wrapper.rb +7 -2
- data/lib/rubybreaker/runtime/type_system.rb +3 -5
- data/lib/rubybreaker/runtime/typesig_unparser.rb +1 -4
- data/lib/rubybreaker/runtime.rb +64 -105
- data/lib/rubybreaker/task.rb +97 -0
- data/lib/rubybreaker/test/rspec.rb +1 -1
- data/lib/rubybreaker/test/testcase.rb +13 -28
- data/lib/rubybreaker/type/type.rb +1 -1
- data/lib/rubybreaker/typing/subtyping.rb +10 -5
- data/lib/rubybreaker/util.rb +0 -1
- data/lib/rubybreaker.rb +163 -115
- data/test/integrated/tc_both_broken_breakable.rb +5 -4
- data/test/integrated/tc_class_methods.rb +4 -3
- data/test/integrated/tc_inherit_broken.rb +4 -3
- data/test/integrated/tc_method_missing.rb +4 -4
- data/test/integrated/tc_namespace.rb +4 -2
- data/test/integrated/tc_simple1.rb +4 -3
- data/test/runtime/tc_obj_wrapper.rb +25 -6
- data/test/runtime/tc_typesig_parser.rb +0 -1
- data/test/testtask/sample.rb +10 -0
- data/test/testtask/tc_testtask.rb +25 -0
- data/test/ts_rspec.rb +21 -15
- data/test/typing/tc_typing.rb +2 -3
- data/webpage/index.html +105 -193
- data/webpage/rdoc/Kernel.html +286 -0
- data/webpage/rdoc/Object.html +17 -11
- data/webpage/rdoc/Rake/RubyBreakerTestTask.html +374 -0
- data/webpage/rdoc/Rake.html +212 -0
- data/webpage/rdoc/RubyBreaker/Breakable.html +24 -40
- data/webpage/rdoc/RubyBreaker/Broken.html +21 -69
- data/webpage/rdoc/RubyBreaker/Context.html +16 -10
- data/webpage/rdoc/RubyBreaker/Errors/InternalError.html +16 -10
- data/webpage/rdoc/RubyBreaker/Errors/InvalidSubtypeCheck.html +16 -10
- data/webpage/rdoc/RubyBreaker/Errors/InvalidTypeConstruction.html +16 -10
- data/webpage/rdoc/RubyBreaker/Errors/SubtypeFailure.html +16 -10
- data/webpage/rdoc/RubyBreaker/Errors/TypeError.html +16 -10
- data/webpage/rdoc/RubyBreaker/Errors/UserError.html +16 -10
- data/webpage/rdoc/RubyBreaker/Errors.html +16 -10
- data/webpage/rdoc/RubyBreaker/ObjectPosition.html +16 -10
- data/webpage/rdoc/RubyBreaker/Position.html +16 -10
- data/webpage/rdoc/RubyBreaker/{TestCase.html → RDocSupport.html} +81 -82
- data/webpage/rdoc/RubyBreaker/RubyTypeUtils.html +16 -10
- data/webpage/rdoc/RubyBreaker/Runtime/Inspector.html +25 -44
- data/webpage/rdoc/RubyBreaker/Runtime/MethodInfo.html +16 -10
- data/webpage/rdoc/RubyBreaker/Runtime/Monitor.html +19 -13
- data/webpage/rdoc/RubyBreaker/Runtime/MonitorInstaller.html +37 -25
- data/webpage/rdoc/RubyBreaker/Runtime/MonitorSwitch.html +20 -14
- data/webpage/rdoc/RubyBreaker/Runtime/MonitorUtils.html +21 -15
- data/webpage/rdoc/RubyBreaker/Runtime/ObjectWrapper.html +23 -12
- data/webpage/rdoc/RubyBreaker/Runtime/Pluggable.html +16 -10
- data/webpage/rdoc/RubyBreaker/Runtime/TypeSigParser.html +16 -10
- data/webpage/rdoc/RubyBreaker/Runtime/{TypesigUnparser.html → TypeSigUnparser.html} +19 -16
- data/webpage/rdoc/RubyBreaker/Runtime/TypeSystem.html +18 -14
- data/webpage/rdoc/RubyBreaker/Runtime.html +145 -11
- data/webpage/rdoc/RubyBreaker/TypeComparer.html +16 -10
- data/webpage/rdoc/RubyBreaker/TypeDefs/AnyType.html +16 -10
- data/webpage/rdoc/RubyBreaker/TypeDefs/BlockType.html +16 -10
- data/webpage/rdoc/RubyBreaker/TypeDefs/DuckType.html +16 -10
- data/webpage/rdoc/RubyBreaker/TypeDefs/FusionType.html +16 -10
- data/webpage/rdoc/RubyBreaker/TypeDefs/MethodListType.html +16 -10
- data/webpage/rdoc/RubyBreaker/TypeDefs/MethodType.html +16 -10
- data/webpage/rdoc/RubyBreaker/TypeDefs/NilType.html +16 -10
- data/webpage/rdoc/RubyBreaker/TypeDefs/NominalType.html +16 -10
- data/webpage/rdoc/RubyBreaker/TypeDefs/OptionalType.html +16 -10
- data/webpage/rdoc/RubyBreaker/TypeDefs/OrType.html +16 -10
- data/webpage/rdoc/RubyBreaker/TypeDefs/SelfType.html +17 -11
- data/webpage/rdoc/RubyBreaker/TypeDefs/Type.html +17 -11
- data/webpage/rdoc/RubyBreaker/TypeDefs/VarLengthType.html +16 -10
- data/webpage/rdoc/RubyBreaker/TypeDefs.html +16 -10
- data/webpage/rdoc/RubyBreaker/TypeUnparser.html +16 -10
- data/webpage/rdoc/RubyBreaker/Typing.html +17 -11
- data/webpage/rdoc/RubyBreaker/Util.html +16 -10
- data/webpage/rdoc/RubyBreaker.html +167 -34
- data/webpage/rdoc/{RubyBreaker/Runtime/TypePlaceholder.html → Test/Unit/TestCase.html} +68 -39
- data/webpage/rdoc/Test/Unit.html +211 -0
- data/webpage/rdoc/Test.html +211 -0
- data/webpage/rdoc/created.rid +18 -17
- data/webpage/rdoc/index.html +16 -10
- data/webpage/rdoc/js/search_index.js +1 -1
- data/webpage/rdoc/table_of_contents.html +61 -48
- metadata +21 -12
- data/lib/rubybreaker/rubylib/core.rb +0 -2483
- data/lib/rubybreaker/rubylib.rb +0 -3
- data/lib/rubybreaker/runtime/type_placeholder.rb +0 -23
- data/webpage/rdoc/RubyBreaker/Broken/BrokenEigen.html +0 -305
- data/webpage/rdoc/RubyBreaker/Main.html +0 -458
|
@@ -90,8 +90,6 @@
|
|
|
90
90
|
|
|
91
91
|
<li><a href="../../RubyBreaker/Broken.html">RubyBreaker::Broken</a>
|
|
92
92
|
|
|
93
|
-
<li><a href="../../RubyBreaker/Broken/BrokenEigen.html">RubyBreaker::Broken::BrokenEigen</a>
|
|
94
|
-
|
|
95
93
|
<li><a href="../../RubyBreaker/Context.html">RubyBreaker::Context</a>
|
|
96
94
|
|
|
97
95
|
<li><a href="../../RubyBreaker/Errors.html">RubyBreaker::Errors</a>
|
|
@@ -108,12 +106,12 @@
|
|
|
108
106
|
|
|
109
107
|
<li><a href="../../RubyBreaker/Errors/UserError.html">RubyBreaker::Errors::UserError</a>
|
|
110
108
|
|
|
111
|
-
<li><a href="../../RubyBreaker/Main.html">RubyBreaker::Main</a>
|
|
112
|
-
|
|
113
109
|
<li><a href="../../RubyBreaker/ObjectPosition.html">RubyBreaker::ObjectPosition</a>
|
|
114
110
|
|
|
115
111
|
<li><a href="../../RubyBreaker/Position.html">RubyBreaker::Position</a>
|
|
116
112
|
|
|
113
|
+
<li><a href="../../RubyBreaker/RDocSupport.html">RubyBreaker::RDocSupport</a>
|
|
114
|
+
|
|
117
115
|
<li><a href="../../RubyBreaker/RubyTypeUtils.html">RubyBreaker::RubyTypeUtils</a>
|
|
118
116
|
|
|
119
117
|
<li><a href="../../RubyBreaker/Runtime.html">RubyBreaker::Runtime</a>
|
|
@@ -134,15 +132,11 @@
|
|
|
134
132
|
|
|
135
133
|
<li><a href="../../RubyBreaker/Runtime/Pluggable.html">RubyBreaker::Runtime::Pluggable</a>
|
|
136
134
|
|
|
137
|
-
<li><a href="../../RubyBreaker/Runtime/TypePlaceholder.html">RubyBreaker::Runtime::TypePlaceholder</a>
|
|
138
|
-
|
|
139
135
|
<li><a href="../../RubyBreaker/Runtime/TypeSigParser.html">RubyBreaker::Runtime::TypeSigParser</a>
|
|
140
136
|
|
|
141
|
-
<li><a href="../../RubyBreaker/Runtime/
|
|
142
|
-
|
|
143
|
-
<li><a href="../../RubyBreaker/Runtime/TypesigUnparser.html">RubyBreaker::Runtime::TypesigUnparser</a>
|
|
137
|
+
<li><a href="../../RubyBreaker/Runtime/TypeSigUnparser.html">RubyBreaker::Runtime::TypeSigUnparser</a>
|
|
144
138
|
|
|
145
|
-
<li><a href="../../RubyBreaker/
|
|
139
|
+
<li><a href="../../RubyBreaker/Runtime/TypeSystem.html">RubyBreaker::Runtime::TypeSystem</a>
|
|
146
140
|
|
|
147
141
|
<li><a href="../../RubyBreaker/TypeComparer.html">RubyBreaker::TypeComparer</a>
|
|
148
142
|
|
|
@@ -180,6 +174,18 @@
|
|
|
180
174
|
|
|
181
175
|
<li><a href="../../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
|
182
176
|
|
|
177
|
+
<li><a href="../../Test.html">Test</a>
|
|
178
|
+
|
|
179
|
+
<li><a href="../../Test/Unit.html">Test::Unit</a>
|
|
180
|
+
|
|
181
|
+
<li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
|
|
182
|
+
|
|
183
|
+
<li><a href="../../Rake.html">Rake</a>
|
|
184
|
+
|
|
185
|
+
<li><a href="../../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
|
|
186
|
+
|
|
187
|
+
<li><a href="../../Kernel.html">Kernel</a>
|
|
188
|
+
|
|
183
189
|
<li><a href="../../Object.html">Object</a>
|
|
184
190
|
|
|
185
191
|
</ul>
|
|
@@ -74,8 +74,6 @@
|
|
|
74
74
|
|
|
75
75
|
<li><a href="../RubyBreaker/Broken.html">RubyBreaker::Broken</a>
|
|
76
76
|
|
|
77
|
-
<li><a href="../RubyBreaker/Broken/BrokenEigen.html">RubyBreaker::Broken::BrokenEigen</a>
|
|
78
|
-
|
|
79
77
|
<li><a href="../RubyBreaker/Context.html">RubyBreaker::Context</a>
|
|
80
78
|
|
|
81
79
|
<li><a href="../RubyBreaker/Errors.html">RubyBreaker::Errors</a>
|
|
@@ -92,12 +90,12 @@
|
|
|
92
90
|
|
|
93
91
|
<li><a href="../RubyBreaker/Errors/UserError.html">RubyBreaker::Errors::UserError</a>
|
|
94
92
|
|
|
95
|
-
<li><a href="../RubyBreaker/Main.html">RubyBreaker::Main</a>
|
|
96
|
-
|
|
97
93
|
<li><a href="../RubyBreaker/ObjectPosition.html">RubyBreaker::ObjectPosition</a>
|
|
98
94
|
|
|
99
95
|
<li><a href="../RubyBreaker/Position.html">RubyBreaker::Position</a>
|
|
100
96
|
|
|
97
|
+
<li><a href="../RubyBreaker/RDocSupport.html">RubyBreaker::RDocSupport</a>
|
|
98
|
+
|
|
101
99
|
<li><a href="../RubyBreaker/RubyTypeUtils.html">RubyBreaker::RubyTypeUtils</a>
|
|
102
100
|
|
|
103
101
|
<li><a href="../RubyBreaker/Runtime.html">RubyBreaker::Runtime</a>
|
|
@@ -118,15 +116,11 @@
|
|
|
118
116
|
|
|
119
117
|
<li><a href="../RubyBreaker/Runtime/Pluggable.html">RubyBreaker::Runtime::Pluggable</a>
|
|
120
118
|
|
|
121
|
-
<li><a href="../RubyBreaker/Runtime/TypePlaceholder.html">RubyBreaker::Runtime::TypePlaceholder</a>
|
|
122
|
-
|
|
123
119
|
<li><a href="../RubyBreaker/Runtime/TypeSigParser.html">RubyBreaker::Runtime::TypeSigParser</a>
|
|
124
120
|
|
|
125
|
-
<li><a href="../RubyBreaker/Runtime/
|
|
126
|
-
|
|
127
|
-
<li><a href="../RubyBreaker/Runtime/TypesigUnparser.html">RubyBreaker::Runtime::TypesigUnparser</a>
|
|
121
|
+
<li><a href="../RubyBreaker/Runtime/TypeSigUnparser.html">RubyBreaker::Runtime::TypeSigUnparser</a>
|
|
128
122
|
|
|
129
|
-
<li><a href="../RubyBreaker/
|
|
123
|
+
<li><a href="../RubyBreaker/Runtime/TypeSystem.html">RubyBreaker::Runtime::TypeSystem</a>
|
|
130
124
|
|
|
131
125
|
<li><a href="../RubyBreaker/TypeComparer.html">RubyBreaker::TypeComparer</a>
|
|
132
126
|
|
|
@@ -164,6 +158,18 @@
|
|
|
164
158
|
|
|
165
159
|
<li><a href="../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
|
166
160
|
|
|
161
|
+
<li><a href="../Test.html">Test</a>
|
|
162
|
+
|
|
163
|
+
<li><a href="../Test/Unit.html">Test::Unit</a>
|
|
164
|
+
|
|
165
|
+
<li><a href="../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
|
|
166
|
+
|
|
167
|
+
<li><a href="../Rake.html">Rake</a>
|
|
168
|
+
|
|
169
|
+
<li><a href="../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
|
|
170
|
+
|
|
171
|
+
<li><a href="../Kernel.html">Kernel</a>
|
|
172
|
+
|
|
167
173
|
<li><a href="../Object.html">Object</a>
|
|
168
174
|
|
|
169
175
|
</ul>
|
|
@@ -92,8 +92,6 @@
|
|
|
92
92
|
|
|
93
93
|
<li><a href="../RubyBreaker/Broken.html">RubyBreaker::Broken</a>
|
|
94
94
|
|
|
95
|
-
<li><a href="../RubyBreaker/Broken/BrokenEigen.html">RubyBreaker::Broken::BrokenEigen</a>
|
|
96
|
-
|
|
97
95
|
<li><a href="../RubyBreaker/Context.html">RubyBreaker::Context</a>
|
|
98
96
|
|
|
99
97
|
<li><a href="../RubyBreaker/Errors.html">RubyBreaker::Errors</a>
|
|
@@ -110,12 +108,12 @@
|
|
|
110
108
|
|
|
111
109
|
<li><a href="../RubyBreaker/Errors/UserError.html">RubyBreaker::Errors::UserError</a>
|
|
112
110
|
|
|
113
|
-
<li><a href="../RubyBreaker/Main.html">RubyBreaker::Main</a>
|
|
114
|
-
|
|
115
111
|
<li><a href="../RubyBreaker/ObjectPosition.html">RubyBreaker::ObjectPosition</a>
|
|
116
112
|
|
|
117
113
|
<li><a href="../RubyBreaker/Position.html">RubyBreaker::Position</a>
|
|
118
114
|
|
|
115
|
+
<li><a href="../RubyBreaker/RDocSupport.html">RubyBreaker::RDocSupport</a>
|
|
116
|
+
|
|
119
117
|
<li><a href="../RubyBreaker/RubyTypeUtils.html">RubyBreaker::RubyTypeUtils</a>
|
|
120
118
|
|
|
121
119
|
<li><a href="../RubyBreaker/Runtime.html">RubyBreaker::Runtime</a>
|
|
@@ -136,15 +134,11 @@
|
|
|
136
134
|
|
|
137
135
|
<li><a href="../RubyBreaker/Runtime/Pluggable.html">RubyBreaker::Runtime::Pluggable</a>
|
|
138
136
|
|
|
139
|
-
<li><a href="../RubyBreaker/Runtime/TypePlaceholder.html">RubyBreaker::Runtime::TypePlaceholder</a>
|
|
140
|
-
|
|
141
137
|
<li><a href="../RubyBreaker/Runtime/TypeSigParser.html">RubyBreaker::Runtime::TypeSigParser</a>
|
|
142
138
|
|
|
143
|
-
<li><a href="../RubyBreaker/Runtime/
|
|
144
|
-
|
|
145
|
-
<li><a href="../RubyBreaker/Runtime/TypesigUnparser.html">RubyBreaker::Runtime::TypesigUnparser</a>
|
|
139
|
+
<li><a href="../RubyBreaker/Runtime/TypeSigUnparser.html">RubyBreaker::Runtime::TypeSigUnparser</a>
|
|
146
140
|
|
|
147
|
-
<li><a href="../RubyBreaker/
|
|
141
|
+
<li><a href="../RubyBreaker/Runtime/TypeSystem.html">RubyBreaker::Runtime::TypeSystem</a>
|
|
148
142
|
|
|
149
143
|
<li><a href="../RubyBreaker/TypeComparer.html">RubyBreaker::TypeComparer</a>
|
|
150
144
|
|
|
@@ -182,6 +176,18 @@
|
|
|
182
176
|
|
|
183
177
|
<li><a href="../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
|
184
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
|
+
|
|
185
191
|
<li><a href="../Object.html">Object</a>
|
|
186
192
|
|
|
187
193
|
</ul>
|
|
@@ -98,8 +98,6 @@
|
|
|
98
98
|
|
|
99
99
|
<li><a href="../RubyBreaker/Broken.html">RubyBreaker::Broken</a>
|
|
100
100
|
|
|
101
|
-
<li><a href="../RubyBreaker/Broken/BrokenEigen.html">RubyBreaker::Broken::BrokenEigen</a>
|
|
102
|
-
|
|
103
101
|
<li><a href="../RubyBreaker/Context.html">RubyBreaker::Context</a>
|
|
104
102
|
|
|
105
103
|
<li><a href="../RubyBreaker/Errors.html">RubyBreaker::Errors</a>
|
|
@@ -116,12 +114,12 @@
|
|
|
116
114
|
|
|
117
115
|
<li><a href="../RubyBreaker/Errors/UserError.html">RubyBreaker::Errors::UserError</a>
|
|
118
116
|
|
|
119
|
-
<li><a href="../RubyBreaker/Main.html">RubyBreaker::Main</a>
|
|
120
|
-
|
|
121
117
|
<li><a href="../RubyBreaker/ObjectPosition.html">RubyBreaker::ObjectPosition</a>
|
|
122
118
|
|
|
123
119
|
<li><a href="../RubyBreaker/Position.html">RubyBreaker::Position</a>
|
|
124
120
|
|
|
121
|
+
<li><a href="../RubyBreaker/RDocSupport.html">RubyBreaker::RDocSupport</a>
|
|
122
|
+
|
|
125
123
|
<li><a href="../RubyBreaker/RubyTypeUtils.html">RubyBreaker::RubyTypeUtils</a>
|
|
126
124
|
|
|
127
125
|
<li><a href="../RubyBreaker/Runtime.html">RubyBreaker::Runtime</a>
|
|
@@ -142,15 +140,11 @@
|
|
|
142
140
|
|
|
143
141
|
<li><a href="../RubyBreaker/Runtime/Pluggable.html">RubyBreaker::Runtime::Pluggable</a>
|
|
144
142
|
|
|
145
|
-
<li><a href="../RubyBreaker/Runtime/TypePlaceholder.html">RubyBreaker::Runtime::TypePlaceholder</a>
|
|
146
|
-
|
|
147
143
|
<li><a href="../RubyBreaker/Runtime/TypeSigParser.html">RubyBreaker::Runtime::TypeSigParser</a>
|
|
148
144
|
|
|
149
|
-
<li><a href="../RubyBreaker/Runtime/
|
|
150
|
-
|
|
151
|
-
<li><a href="../RubyBreaker/Runtime/TypesigUnparser.html">RubyBreaker::Runtime::TypesigUnparser</a>
|
|
145
|
+
<li><a href="../RubyBreaker/Runtime/TypeSigUnparser.html">RubyBreaker::Runtime::TypeSigUnparser</a>
|
|
152
146
|
|
|
153
|
-
<li><a href="../RubyBreaker/
|
|
147
|
+
<li><a href="../RubyBreaker/Runtime/TypeSystem.html">RubyBreaker::Runtime::TypeSystem</a>
|
|
154
148
|
|
|
155
149
|
<li><a href="../RubyBreaker/TypeComparer.html">RubyBreaker::TypeComparer</a>
|
|
156
150
|
|
|
@@ -188,6 +182,18 @@
|
|
|
188
182
|
|
|
189
183
|
<li><a href="../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
|
190
184
|
|
|
185
|
+
<li><a href="../Test.html">Test</a>
|
|
186
|
+
|
|
187
|
+
<li><a href="../Test/Unit.html">Test::Unit</a>
|
|
188
|
+
|
|
189
|
+
<li><a href="../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
|
|
190
|
+
|
|
191
|
+
<li><a href="../Rake.html">Rake</a>
|
|
192
|
+
|
|
193
|
+
<li><a href="../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
|
|
194
|
+
|
|
195
|
+
<li><a href="../Kernel.html">Kernel</a>
|
|
196
|
+
|
|
191
197
|
<li><a href="../Object.html">Object</a>
|
|
192
198
|
|
|
193
199
|
</ul>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
|
6
6
|
|
|
7
|
-
<title>module RubyBreaker::
|
|
7
|
+
<title>module RubyBreaker::RDocSupport - RDoc Documentation</title>
|
|
8
8
|
|
|
9
9
|
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
|
|
10
10
|
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
<nav id="file-list-section" class="section">
|
|
48
48
|
<h3 class="section-header">Defined In</h3>
|
|
49
49
|
<ul>
|
|
50
|
-
<li>lib/rubybreaker/
|
|
50
|
+
<li>lib/rubybreaker/doc/rdoc.rb
|
|
51
51
|
</ul>
|
|
52
52
|
</nav>
|
|
53
53
|
|
|
@@ -57,18 +57,28 @@
|
|
|
57
57
|
<div id="class-metadata">
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
<!-- Included Modules -->
|
|
61
|
+
<nav id="includes-section" class="section">
|
|
62
|
+
<h3 class="section-header">Included Modules</h3>
|
|
63
|
+
|
|
64
|
+
<ul class="link-list">
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
<li><a class="include" href="TypeDefs.html">RubyBreaker::TypeDefs</a>
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
</ul>
|
|
71
|
+
</nav>
|
|
72
|
+
|
|
61
73
|
<!-- Method Quickref -->
|
|
62
74
|
<nav id="method-list-section" class="section">
|
|
63
75
|
<h3 class="section-header">Methods</h3>
|
|
64
76
|
|
|
65
77
|
<ul class="link-list">
|
|
66
78
|
|
|
67
|
-
<li><a href="#method-c-
|
|
68
|
-
|
|
69
|
-
<li><a href="#method-c-__rubybreaker_teardown">::__rubybreaker_teardown</a>
|
|
79
|
+
<li><a href="#method-c-export_to_yaml">::export_to_yaml</a>
|
|
70
80
|
|
|
71
|
-
<li><a href="#method-c-
|
|
81
|
+
<li><a href="#method-c-import_from_yaml">::import_from_yaml</a>
|
|
72
82
|
|
|
73
83
|
</ul>
|
|
74
84
|
</nav>
|
|
@@ -88,8 +98,6 @@
|
|
|
88
98
|
|
|
89
99
|
<li><a href="../RubyBreaker/Broken.html">RubyBreaker::Broken</a>
|
|
90
100
|
|
|
91
|
-
<li><a href="../RubyBreaker/Broken/BrokenEigen.html">RubyBreaker::Broken::BrokenEigen</a>
|
|
92
|
-
|
|
93
101
|
<li><a href="../RubyBreaker/Context.html">RubyBreaker::Context</a>
|
|
94
102
|
|
|
95
103
|
<li><a href="../RubyBreaker/Errors.html">RubyBreaker::Errors</a>
|
|
@@ -106,12 +114,12 @@
|
|
|
106
114
|
|
|
107
115
|
<li><a href="../RubyBreaker/Errors/UserError.html">RubyBreaker::Errors::UserError</a>
|
|
108
116
|
|
|
109
|
-
<li><a href="../RubyBreaker/Main.html">RubyBreaker::Main</a>
|
|
110
|
-
|
|
111
117
|
<li><a href="../RubyBreaker/ObjectPosition.html">RubyBreaker::ObjectPosition</a>
|
|
112
118
|
|
|
113
119
|
<li><a href="../RubyBreaker/Position.html">RubyBreaker::Position</a>
|
|
114
120
|
|
|
121
|
+
<li><a href="../RubyBreaker/RDocSupport.html">RubyBreaker::RDocSupport</a>
|
|
122
|
+
|
|
115
123
|
<li><a href="../RubyBreaker/RubyTypeUtils.html">RubyBreaker::RubyTypeUtils</a>
|
|
116
124
|
|
|
117
125
|
<li><a href="../RubyBreaker/Runtime.html">RubyBreaker::Runtime</a>
|
|
@@ -132,15 +140,11 @@
|
|
|
132
140
|
|
|
133
141
|
<li><a href="../RubyBreaker/Runtime/Pluggable.html">RubyBreaker::Runtime::Pluggable</a>
|
|
134
142
|
|
|
135
|
-
<li><a href="../RubyBreaker/Runtime/TypePlaceholder.html">RubyBreaker::Runtime::TypePlaceholder</a>
|
|
136
|
-
|
|
137
143
|
<li><a href="../RubyBreaker/Runtime/TypeSigParser.html">RubyBreaker::Runtime::TypeSigParser</a>
|
|
138
144
|
|
|
139
|
-
<li><a href="../RubyBreaker/Runtime/
|
|
140
|
-
|
|
141
|
-
<li><a href="../RubyBreaker/Runtime/TypesigUnparser.html">RubyBreaker::Runtime::TypesigUnparser</a>
|
|
145
|
+
<li><a href="../RubyBreaker/Runtime/TypeSigUnparser.html">RubyBreaker::Runtime::TypeSigUnparser</a>
|
|
142
146
|
|
|
143
|
-
<li><a href="../RubyBreaker/
|
|
147
|
+
<li><a href="../RubyBreaker/Runtime/TypeSystem.html">RubyBreaker::Runtime::TypeSystem</a>
|
|
144
148
|
|
|
145
149
|
<li><a href="../RubyBreaker/TypeComparer.html">RubyBreaker::TypeComparer</a>
|
|
146
150
|
|
|
@@ -178,6 +182,18 @@
|
|
|
178
182
|
|
|
179
183
|
<li><a href="../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
|
180
184
|
|
|
185
|
+
<li><a href="../Test.html">Test</a>
|
|
186
|
+
|
|
187
|
+
<li><a href="../Test/Unit.html">Test::Unit</a>
|
|
188
|
+
|
|
189
|
+
<li><a href="../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
|
|
190
|
+
|
|
191
|
+
<li><a href="../Rake.html">Rake</a>
|
|
192
|
+
|
|
193
|
+
<li><a href="../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
|
|
194
|
+
|
|
195
|
+
<li><a href="../Kernel.html">Kernel</a>
|
|
196
|
+
|
|
181
197
|
<li><a href="../Object.html">Object</a>
|
|
182
198
|
|
|
183
199
|
</ul>
|
|
@@ -187,12 +203,12 @@
|
|
|
187
203
|
</nav>
|
|
188
204
|
|
|
189
205
|
<div id="documentation">
|
|
190
|
-
<h1 class="module">module RubyBreaker::
|
|
206
|
+
<h1 class="module">module RubyBreaker::RDocSupport</h1>
|
|
191
207
|
|
|
192
208
|
<div id="description" class="description">
|
|
193
209
|
|
|
194
|
-
<p>This module
|
|
195
|
-
|
|
210
|
+
<p>This module has functionalities that are necessary for supporting RDoc
|
|
211
|
+
output</p>
|
|
196
212
|
|
|
197
213
|
</div><!-- description -->
|
|
198
214
|
|
|
@@ -205,6 +221,20 @@ href="TestCase.html">TestCase</a> class.</p>
|
|
|
205
221
|
|
|
206
222
|
|
|
207
223
|
|
|
224
|
+
<!-- Constants -->
|
|
225
|
+
<section id="constants-list" class="section">
|
|
226
|
+
<h3 class="section-header">Constants</h3>
|
|
227
|
+
<dl>
|
|
228
|
+
|
|
229
|
+
<dt id="DOCUMENTED">DOCUMENTED
|
|
230
|
+
|
|
231
|
+
<dd class="description"><p>This array keeps track of modules/classes whose type information is
|
|
232
|
+
documented.</p>
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
</dl>
|
|
236
|
+
</section>
|
|
237
|
+
|
|
208
238
|
|
|
209
239
|
|
|
210
240
|
|
|
@@ -214,106 +244,75 @@ href="TestCase.html">TestCase</a> class.</p>
|
|
|
214
244
|
<h3 class="section-header">Public Class Methods</h3>
|
|
215
245
|
|
|
216
246
|
|
|
217
|
-
<div id="method-c-
|
|
247
|
+
<div id="method-c-export_to_yaml" class="method-detail ">
|
|
218
248
|
|
|
219
249
|
<div class="method-heading">
|
|
220
|
-
<span class="method-name">
|
|
221
|
-
class="method-args">()</span>
|
|
250
|
+
<span class="method-name">export_to_yaml</span><span
|
|
251
|
+
class="method-args">(yaml_file, breakable_modules, broken_modules)</span>
|
|
222
252
|
<span class="method-click-advice">click to toggle source</span>
|
|
223
253
|
</div>
|
|
224
254
|
|
|
225
255
|
|
|
226
256
|
<div class="method-description">
|
|
227
257
|
|
|
228
|
-
|
|
258
|
+
<p>This method exports the <a href="../RubyBreaker.html">RubyBreaker</a>
|
|
259
|
+
output into a yaml file.</p>
|
|
229
260
|
|
|
230
261
|
|
|
231
262
|
|
|
232
|
-
<div class="method-source-code" id="
|
|
233
|
-
<pre><span class="ruby-comment"># File lib/rubybreaker/
|
|
234
|
-
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">
|
|
235
|
-
<span class="ruby-
|
|
263
|
+
<div class="method-source-code" id="export_to_yaml-source">
|
|
264
|
+
<pre><span class="ruby-comment"># File lib/rubybreaker/doc/rdoc.rb, line 17</span>
|
|
265
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">export_to_yaml</span>(<span class="ruby-identifier">yaml_file</span>, <span class="ruby-identifier">breakable_modules</span>, <span class="ruby-identifier">broken_modules</span>)
|
|
266
|
+
<span class="ruby-identifier">hash</span> = {
|
|
267
|
+
<span class="ruby-identifier">breakable</span><span class="ruby-operator">:</span> <span class="ruby-identifier">breakable_modules</span>,
|
|
268
|
+
<span class="ruby-identifier">broken</span><span class="ruby-operator">:</span> <span class="ruby-identifier">broken_modules</span>
|
|
269
|
+
}
|
|
270
|
+
<span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">yaml_file</span>, <span class="ruby-string">"w"</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
|
|
271
|
+
<span class="ruby-identifier">f</span>.<span class="ruby-identifier">puts</span> <span class="ruby-constant">YAML</span>.<span class="ruby-identifier">dump</span>(<span class="ruby-identifier">hash</span>)
|
|
272
|
+
<span class="ruby-keyword">end</span>
|
|
236
273
|
<span class="ruby-keyword">end</span></pre>
|
|
237
|
-
</div><!--
|
|
274
|
+
</div><!-- export_to_yaml-source -->
|
|
238
275
|
|
|
239
276
|
</div>
|
|
240
277
|
|
|
241
278
|
|
|
242
279
|
|
|
243
280
|
|
|
244
|
-
</div><!--
|
|
281
|
+
</div><!-- export_to_yaml-method -->
|
|
245
282
|
|
|
246
283
|
|
|
247
|
-
<div id="method-c-
|
|
284
|
+
<div id="method-c-import_from_yaml" class="method-detail ">
|
|
248
285
|
|
|
249
286
|
<div class="method-heading">
|
|
250
|
-
<span class="method-name">
|
|
251
|
-
class="method-args">()</span>
|
|
287
|
+
<span class="method-name">import_from_yaml</span><span
|
|
288
|
+
class="method-args">(yaml_file)</span>
|
|
252
289
|
<span class="method-click-advice">click to toggle source</span>
|
|
253
290
|
</div>
|
|
254
291
|
|
|
255
292
|
|
|
256
293
|
<div class="method-description">
|
|
257
294
|
|
|
258
|
-
|
|
295
|
+
<p>This method imports the <a href="../RubyBreaker.html">RubyBreaker</a>
|
|
296
|
+
output from a yaml file.</p>
|
|
259
297
|
|
|
260
298
|
|
|
261
299
|
|
|
262
|
-
<div class="method-source-code" id="
|
|
263
|
-
<pre><span class="ruby-comment"># File lib/rubybreaker/
|
|
264
|
-
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">
|
|
265
|
-
<span class="ruby-
|
|
300
|
+
<div class="method-source-code" id="import_from_yaml-source">
|
|
301
|
+
<pre><span class="ruby-comment"># File lib/rubybreaker/doc/rdoc.rb, line 28</span>
|
|
302
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">import_from_yaml</span>(<span class="ruby-identifier">yaml_file</span>)
|
|
303
|
+
<span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">yaml_file</span>, <span class="ruby-string">"r"</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
|
|
304
|
+
<span class="ruby-identifier">raw</span> = <span class="ruby-identifier">f</span>.<span class="ruby-identifier">read</span>
|
|
305
|
+
<span class="ruby-identifier">hash</span> = <span class="ruby-constant">YAML</span>.<span class="ruby-identifier">to_hash</span>(<span class="ruby-identifier">raw</span>)
|
|
306
|
+
<span class="ruby-keyword">end</span>
|
|
266
307
|
<span class="ruby-keyword">end</span></pre>
|
|
267
|
-
</div><!--
|
|
268
|
-
|
|
269
|
-
</div>
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
</div><!-- __rubybreaker_teardown-method -->
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
<div id="method-c-included" class="method-detail ">
|
|
278
|
-
|
|
279
|
-
<div class="method-heading">
|
|
280
|
-
<span class="method-name">included</span><span
|
|
281
|
-
class="method-args">(mod)</span>
|
|
282
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
283
|
-
</div>
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
<div class="method-description">
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
<div class="method-source-code" id="included-source">
|
|
293
|
-
<pre><span class="ruby-comment"># File lib/rubybreaker/test/testcase.rb, line 20</span>
|
|
294
|
-
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">included</span>(<span class="ruby-identifier">mod</span>)
|
|
295
|
-
|
|
296
|
-
<span class="ruby-comment"># hack to insert RubyBreaker's own setup and teardown methods</span>
|
|
297
|
-
<span class="ruby-identifier">mod</span>.<span class="ruby-identifier">module_eval</span> <span class="ruby-string">"
|
|
298
|
-
alias :__run :run
|
|
299
|
-
|
|
300
|
-
def run(*args,&blk)
|
|
301
|
-
RubyBreaker::TestCase.__rubybreaker_setup()
|
|
302
|
-
__run(*args,&blk)
|
|
303
|
-
RubyBreaker::TestCase.__rubybreaker_teardown()
|
|
304
|
-
end
|
|
305
|
-
|
|
306
|
-
"</span>
|
|
307
|
-
|
|
308
|
-
<span class="ruby-keyword">end</span></pre>
|
|
309
|
-
</div><!-- included-source -->
|
|
308
|
+
</div><!-- import_from_yaml-source -->
|
|
310
309
|
|
|
311
310
|
</div>
|
|
312
311
|
|
|
313
312
|
|
|
314
313
|
|
|
315
314
|
|
|
316
|
-
</div><!--
|
|
315
|
+
</div><!-- import_from_yaml-method -->
|
|
317
316
|
|
|
318
317
|
|
|
319
318
|
</section><!-- public-class-method-details -->
|
|
@@ -86,8 +86,6 @@
|
|
|
86
86
|
|
|
87
87
|
<li><a href="../RubyBreaker/Broken.html">RubyBreaker::Broken</a>
|
|
88
88
|
|
|
89
|
-
<li><a href="../RubyBreaker/Broken/BrokenEigen.html">RubyBreaker::Broken::BrokenEigen</a>
|
|
90
|
-
|
|
91
89
|
<li><a href="../RubyBreaker/Context.html">RubyBreaker::Context</a>
|
|
92
90
|
|
|
93
91
|
<li><a href="../RubyBreaker/Errors.html">RubyBreaker::Errors</a>
|
|
@@ -104,12 +102,12 @@
|
|
|
104
102
|
|
|
105
103
|
<li><a href="../RubyBreaker/Errors/UserError.html">RubyBreaker::Errors::UserError</a>
|
|
106
104
|
|
|
107
|
-
<li><a href="../RubyBreaker/Main.html">RubyBreaker::Main</a>
|
|
108
|
-
|
|
109
105
|
<li><a href="../RubyBreaker/ObjectPosition.html">RubyBreaker::ObjectPosition</a>
|
|
110
106
|
|
|
111
107
|
<li><a href="../RubyBreaker/Position.html">RubyBreaker::Position</a>
|
|
112
108
|
|
|
109
|
+
<li><a href="../RubyBreaker/RDocSupport.html">RubyBreaker::RDocSupport</a>
|
|
110
|
+
|
|
113
111
|
<li><a href="../RubyBreaker/RubyTypeUtils.html">RubyBreaker::RubyTypeUtils</a>
|
|
114
112
|
|
|
115
113
|
<li><a href="../RubyBreaker/Runtime.html">RubyBreaker::Runtime</a>
|
|
@@ -130,15 +128,11 @@
|
|
|
130
128
|
|
|
131
129
|
<li><a href="../RubyBreaker/Runtime/Pluggable.html">RubyBreaker::Runtime::Pluggable</a>
|
|
132
130
|
|
|
133
|
-
<li><a href="../RubyBreaker/Runtime/TypePlaceholder.html">RubyBreaker::Runtime::TypePlaceholder</a>
|
|
134
|
-
|
|
135
131
|
<li><a href="../RubyBreaker/Runtime/TypeSigParser.html">RubyBreaker::Runtime::TypeSigParser</a>
|
|
136
132
|
|
|
137
|
-
<li><a href="../RubyBreaker/Runtime/
|
|
138
|
-
|
|
139
|
-
<li><a href="../RubyBreaker/Runtime/TypesigUnparser.html">RubyBreaker::Runtime::TypesigUnparser</a>
|
|
133
|
+
<li><a href="../RubyBreaker/Runtime/TypeSigUnparser.html">RubyBreaker::Runtime::TypeSigUnparser</a>
|
|
140
134
|
|
|
141
|
-
<li><a href="../RubyBreaker/
|
|
135
|
+
<li><a href="../RubyBreaker/Runtime/TypeSystem.html">RubyBreaker::Runtime::TypeSystem</a>
|
|
142
136
|
|
|
143
137
|
<li><a href="../RubyBreaker/TypeComparer.html">RubyBreaker::TypeComparer</a>
|
|
144
138
|
|
|
@@ -176,6 +170,18 @@
|
|
|
176
170
|
|
|
177
171
|
<li><a href="../RubyBreaker/Util.html">RubyBreaker::Util</a>
|
|
178
172
|
|
|
173
|
+
<li><a href="../Test.html">Test</a>
|
|
174
|
+
|
|
175
|
+
<li><a href="../Test/Unit.html">Test::Unit</a>
|
|
176
|
+
|
|
177
|
+
<li><a href="../Test/Unit/TestCase.html">Test::Unit::TestCase</a>
|
|
178
|
+
|
|
179
|
+
<li><a href="../Rake.html">Rake</a>
|
|
180
|
+
|
|
181
|
+
<li><a href="../Rake/RubyBreakerTestTask.html">Rake::RubyBreakerTestTask</a>
|
|
182
|
+
|
|
183
|
+
<li><a href="../Kernel.html">Kernel</a>
|
|
184
|
+
|
|
179
185
|
<li><a href="../Object.html">Object</a>
|
|
180
186
|
|
|
181
187
|
</ul>
|