rubybreaker 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. data/NEWS +48 -0
  2. data/README.md +56 -20
  3. data/Rakefile +9 -34
  4. data/TODO +10 -10
  5. data/VERSION +1 -0
  6. data/bin/gen_stub_rubylib +35 -36
  7. data/bin/rubybreaker +1 -4
  8. data/lib/rubybreaker/debug.rb +8 -4
  9. data/lib/rubybreaker/rubylib/core.rb +738 -571
  10. data/lib/rubybreaker/runtime/inspector.rb +16 -7
  11. data/lib/rubybreaker/runtime/monitor.rb +14 -18
  12. data/lib/rubybreaker/runtime/object_wrapper.rb +9 -3
  13. data/lib/rubybreaker/runtime/overrides.rb +51 -8
  14. data/lib/rubybreaker/runtime/pluggable.rb +1 -3
  15. data/lib/rubybreaker/runtime/type_placeholder.rb +2 -6
  16. data/lib/rubybreaker/runtime/type_system.rb +53 -17
  17. data/lib/rubybreaker/runtime/typesig_parser.rb +1 -0
  18. data/lib/rubybreaker/runtime/util.rb +18 -0
  19. data/lib/rubybreaker/runtime.rb +42 -15
  20. data/lib/rubybreaker/type/type_comparer.rb +10 -10
  21. data/lib/rubybreaker/type/type_grammar.treetop +30 -21
  22. data/lib/rubybreaker/type/type_unparser.rb +2 -2
  23. data/lib/rubybreaker/typing/subtyping.rb +21 -21
  24. data/lib/rubybreaker/util.rb +11 -1
  25. data/lib/rubybreaker.rb +75 -54
  26. data/test/integrated/tc_class_methods.rb +35 -0
  27. data/test/integrated/tc_inherit_broken.rb +29 -0
  28. data/test/integrated/tc_method_missing.rb +1 -1
  29. data/test/runtime/tc_obj_wrapper.rb +104 -4
  30. data/test/ts_integrated.rb +2 -0
  31. data/test/type/tc_comparer.rb +96 -96
  32. data/test/type/tc_parser.rb +18 -0
  33. data/test/type/tc_unparser.rb +16 -0
  34. data/test/typing/tc_typing.rb +20 -20
  35. data/webpage/footer.html +1 -1
  36. data/webpage/header.html +7 -7
  37. data/webpage/index.html +65 -28
  38. data/webpage/rdoc/RubyBreaker/Breakable.html +280 -0
  39. data/webpage/rdoc/RubyBreaker/Broken/BrokenEigen.html +304 -0
  40. data/webpage/rdoc/RubyBreaker/Broken.html +308 -0
  41. data/webpage/rdoc/RubyBreaker/Context.html +421 -0
  42. data/webpage/rdoc/RubyBreaker/Debug.html +411 -0
  43. data/webpage/rdoc/RubyBreaker/Errors/InternalError.html +263 -0
  44. data/webpage/rdoc/RubyBreaker/Errors/InvalidSubtypeCheck.html +263 -0
  45. data/webpage/rdoc/RubyBreaker/Errors/InvalidTypeConstruction.html +214 -0
  46. data/webpage/rdoc/RubyBreaker/Errors/SubtypeFailure.html +212 -0
  47. data/webpage/rdoc/RubyBreaker/Errors/TypeError.html +212 -0
  48. data/webpage/rdoc/RubyBreaker/Errors/UserError.html +264 -0
  49. data/webpage/rdoc/RubyBreaker/Errors.html +209 -0
  50. data/webpage/rdoc/RubyBreaker/Kernel.html +259 -0
  51. data/webpage/rdoc/RubyBreaker/Main.html +560 -0
  52. data/webpage/rdoc/RubyBreaker/ObjectPosition.html +334 -0
  53. data/webpage/rdoc/RubyBreaker/Position.html +463 -0
  54. data/webpage/rdoc/RubyBreaker/RubyTypeUtils.html +308 -0
  55. data/webpage/rdoc/RubyBreaker/Runtime/Inspector.html +380 -0
  56. data/webpage/rdoc/RubyBreaker/Runtime/MethodInfo.html +324 -0
  57. data/webpage/rdoc/RubyBreaker/Runtime/Monitor.html +354 -0
  58. data/webpage/rdoc/RubyBreaker/Runtime/MonitorInstaller.html +379 -0
  59. data/webpage/rdoc/RubyBreaker/Runtime/MonitorSwitch.html +382 -0
  60. data/webpage/rdoc/RubyBreaker/Runtime/MonitorUtils.html +400 -0
  61. data/webpage/rdoc/RubyBreaker/Runtime/ObjectWrapper.html +411 -0
  62. data/webpage/rdoc/RubyBreaker/Runtime/Pluggable.html +305 -0
  63. data/webpage/rdoc/RubyBreaker/Runtime/TypePlaceholder.html +280 -0
  64. data/webpage/rdoc/RubyBreaker/Runtime/TypeSigParser.html +283 -0
  65. data/webpage/rdoc/RubyBreaker/Runtime/TypeSystem.html +630 -0
  66. data/webpage/rdoc/RubyBreaker/Runtime.html +255 -0
  67. data/webpage/rdoc/RubyBreaker/TestCase.html +332 -0
  68. data/webpage/rdoc/RubyBreaker/TypeComparer.html +304 -0
  69. data/webpage/rdoc/RubyBreaker/TypeDefs/AnyType.html +260 -0
  70. data/webpage/rdoc/RubyBreaker/TypeDefs/BlockType.html +310 -0
  71. data/webpage/rdoc/RubyBreaker/TypeDefs/DuckType.html +320 -0
  72. data/webpage/rdoc/RubyBreaker/TypeDefs/FusionType.html +323 -0
  73. data/webpage/rdoc/RubyBreaker/TypeDefs/MethodListType.html +281 -0
  74. data/webpage/rdoc/RubyBreaker/TypeDefs/MethodType.html +282 -0
  75. data/webpage/rdoc/RubyBreaker/TypeDefs/NilType.html +260 -0
  76. data/webpage/rdoc/RubyBreaker/TypeDefs/NominalType.html +282 -0
  77. data/webpage/rdoc/RubyBreaker/TypeDefs/OptionalType.html +281 -0
  78. data/webpage/rdoc/RubyBreaker/TypeDefs/OrType.html +281 -0
  79. data/webpage/rdoc/RubyBreaker/TypeDefs/SelfType.html +329 -0
  80. data/webpage/rdoc/RubyBreaker/TypeDefs/Type.html +409 -0
  81. data/webpage/rdoc/RubyBreaker/TypeDefs/VarLengthType.html +282 -0
  82. data/webpage/rdoc/RubyBreaker/TypeDefs.html +212 -0
  83. data/webpage/rdoc/RubyBreaker/TypeUnparser.html +273 -0
  84. data/webpage/rdoc/RubyBreaker/Typing.html +305 -0
  85. data/webpage/rdoc/RubyBreaker/Utilities.html +294 -0
  86. data/webpage/rdoc/RubyBreaker.html +337 -0
  87. data/webpage/rdoc/created.rid +26 -0
  88. data/webpage/rdoc/images/add.png +0 -0
  89. data/webpage/rdoc/images/brick.png +0 -0
  90. data/webpage/rdoc/images/brick_link.png +0 -0
  91. data/webpage/rdoc/images/bug.png +0 -0
  92. data/webpage/rdoc/images/bullet_black.png +0 -0
  93. data/webpage/rdoc/images/bullet_toggle_minus.png +0 -0
  94. data/webpage/rdoc/images/bullet_toggle_plus.png +0 -0
  95. data/webpage/rdoc/images/date.png +0 -0
  96. data/webpage/rdoc/images/delete.png +0 -0
  97. data/webpage/rdoc/images/find.png +0 -0
  98. data/webpage/rdoc/images/loadingAnimation.gif +0 -0
  99. data/webpage/rdoc/images/macFFBgHack.png +0 -0
  100. data/webpage/rdoc/images/package.png +0 -0
  101. data/webpage/rdoc/images/page_green.png +0 -0
  102. data/webpage/rdoc/images/page_white_text.png +0 -0
  103. data/webpage/rdoc/images/page_white_width.png +0 -0
  104. data/webpage/rdoc/images/plugin.png +0 -0
  105. data/webpage/rdoc/images/ruby.png +0 -0
  106. data/webpage/rdoc/images/tag_blue.png +0 -0
  107. data/webpage/rdoc/images/tag_green.png +0 -0
  108. data/webpage/rdoc/images/transparent.png +0 -0
  109. data/webpage/rdoc/images/wrench.png +0 -0
  110. data/webpage/rdoc/images/wrench_orange.png +0 -0
  111. data/webpage/rdoc/images/zoom.png +0 -0
  112. data/webpage/rdoc/index.html +165 -0
  113. data/webpage/rdoc/js/darkfish.js +153 -0
  114. data/webpage/rdoc/js/jquery.js +18 -0
  115. data/webpage/rdoc/js/navigation.js +142 -0
  116. data/webpage/rdoc/js/search.js +94 -0
  117. data/webpage/rdoc/js/search_index.js +1 -0
  118. data/webpage/rdoc/js/searcher.js +228 -0
  119. data/webpage/rdoc/rdoc.css +543 -0
  120. data/webpage/rdoc/table_of_contents.html +376 -0
  121. data/webpage/rubybreaker.css +31 -31
  122. metadata +93 -6
@@ -0,0 +1,409 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>class RubyBreaker::TypeDefs::Type - 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/type/type.rb
51
+ <li>lib/rubybreaker/type/type_comparer.rb
52
+ <li>lib/rubybreaker/type/type_unparser.rb
53
+ <li>lib/rubybreaker/typing/subtyping.rb
54
+ </ul>
55
+ </nav>
56
+
57
+
58
+ </div>
59
+
60
+ <div id="class-metadata">
61
+
62
+ <nav id="parent-class-section" class="section">
63
+ <h3 class="section-header">Parent</h3>
64
+
65
+ <p class="link">Object
66
+
67
+ </nav>
68
+
69
+
70
+ <!-- Method Quickref -->
71
+ <nav id="method-list-section" class="section">
72
+ <h3 class="section-header">Methods</h3>
73
+
74
+ <ul class="link-list">
75
+
76
+ <li><a href="#method-c-new">::new</a>
77
+
78
+ <li><a href="#method-i-eql-3F">#eql?</a>
79
+
80
+ <li><a href="#method-i-subtype_of-3F">#subtype_of?</a>
81
+
82
+ <li><a href="#method-i-unparse">#unparse</a>
83
+
84
+ </ul>
85
+ </nav>
86
+
87
+ </div>
88
+
89
+ <div id="project-metadata">
90
+
91
+ <nav id="classindex-section" class="section project-section">
92
+ <h3 class="section-header">Class and Module Index</h3>
93
+
94
+ <ul class="link-list">
95
+
96
+ <li><a href="../../RubyBreaker.html">RubyBreaker</a>
97
+
98
+ <li><a href="../../RubyBreaker/Breakable.html">RubyBreaker::Breakable</a>
99
+
100
+ <li><a href="../../RubyBreaker/Broken.html">RubyBreaker::Broken</a>
101
+
102
+ <li><a href="../../RubyBreaker/Broken/BrokenEigen.html">RubyBreaker::Broken::BrokenEigen</a>
103
+
104
+ <li><a href="../../RubyBreaker/Context.html">RubyBreaker::Context</a>
105
+
106
+ <li><a href="../../RubyBreaker/Debug.html">RubyBreaker::Debug</a>
107
+
108
+ <li><a href="../../RubyBreaker/Errors.html">RubyBreaker::Errors</a>
109
+
110
+ <li><a href="../../RubyBreaker/Errors/InternalError.html">RubyBreaker::Errors::InternalError</a>
111
+
112
+ <li><a href="../../RubyBreaker/Errors/InvalidSubtypeCheck.html">RubyBreaker::Errors::InvalidSubtypeCheck</a>
113
+
114
+ <li><a href="../../RubyBreaker/Errors/InvalidTypeConstruction.html">RubyBreaker::Errors::InvalidTypeConstruction</a>
115
+
116
+ <li><a href="../../RubyBreaker/Errors/SubtypeFailure.html">RubyBreaker::Errors::SubtypeFailure</a>
117
+
118
+ <li><a href="../../RubyBreaker/Errors/TypeError.html">RubyBreaker::Errors::TypeError</a>
119
+
120
+ <li><a href="../../RubyBreaker/Errors/UserError.html">RubyBreaker::Errors::UserError</a>
121
+
122
+ <li><a href="../../RubyBreaker/Kernel.html">RubyBreaker::Kernel</a>
123
+
124
+ <li><a href="../../RubyBreaker/Main.html">RubyBreaker::Main</a>
125
+
126
+ <li><a href="../../RubyBreaker/ObjectPosition.html">RubyBreaker::ObjectPosition</a>
127
+
128
+ <li><a href="../../RubyBreaker/Position.html">RubyBreaker::Position</a>
129
+
130
+ <li><a href="../../RubyBreaker/RubyTypeUtils.html">RubyBreaker::RubyTypeUtils</a>
131
+
132
+ <li><a href="../../RubyBreaker/Runtime.html">RubyBreaker::Runtime</a>
133
+
134
+ <li><a href="../../RubyBreaker/Runtime/Inspector.html">RubyBreaker::Runtime::Inspector</a>
135
+
136
+ <li><a href="../../RubyBreaker/Runtime/MethodInfo.html">RubyBreaker::Runtime::MethodInfo</a>
137
+
138
+ <li><a href="../../RubyBreaker/Runtime/Monitor.html">RubyBreaker::Runtime::Monitor</a>
139
+
140
+ <li><a href="../../RubyBreaker/Runtime/MonitorInstaller.html">RubyBreaker::Runtime::MonitorInstaller</a>
141
+
142
+ <li><a href="../../RubyBreaker/Runtime/MonitorSwitch.html">RubyBreaker::Runtime::MonitorSwitch</a>
143
+
144
+ <li><a href="../../RubyBreaker/Runtime/MonitorUtils.html">RubyBreaker::Runtime::MonitorUtils</a>
145
+
146
+ <li><a href="../../RubyBreaker/Runtime/ObjectWrapper.html">RubyBreaker::Runtime::ObjectWrapper</a>
147
+
148
+ <li><a href="../../RubyBreaker/Runtime/Pluggable.html">RubyBreaker::Runtime::Pluggable</a>
149
+
150
+ <li><a href="../../RubyBreaker/Runtime/TypePlaceholder.html">RubyBreaker::Runtime::TypePlaceholder</a>
151
+
152
+ <li><a href="../../RubyBreaker/Runtime/TypeSigParser.html">RubyBreaker::Runtime::TypeSigParser</a>
153
+
154
+ <li><a href="../../RubyBreaker/Runtime/TypeSystem.html">RubyBreaker::Runtime::TypeSystem</a>
155
+
156
+ <li><a href="../../RubyBreaker/TestCase.html">RubyBreaker::TestCase</a>
157
+
158
+ <li><a href="../../RubyBreaker/TypeComparer.html">RubyBreaker::TypeComparer</a>
159
+
160
+ <li><a href="../../RubyBreaker/TypeDefs.html">RubyBreaker::TypeDefs</a>
161
+
162
+ <li><a href="../../RubyBreaker/TypeDefs/AnyType.html">RubyBreaker::TypeDefs::AnyType</a>
163
+
164
+ <li><a href="../../RubyBreaker/TypeDefs/BlockType.html">RubyBreaker::TypeDefs::BlockType</a>
165
+
166
+ <li><a href="../../RubyBreaker/TypeDefs/DuckType.html">RubyBreaker::TypeDefs::DuckType</a>
167
+
168
+ <li><a href="../../RubyBreaker/TypeDefs/FusionType.html">RubyBreaker::TypeDefs::FusionType</a>
169
+
170
+ <li><a href="../../RubyBreaker/TypeDefs/MethodListType.html">RubyBreaker::TypeDefs::MethodListType</a>
171
+
172
+ <li><a href="../../RubyBreaker/TypeDefs/MethodType.html">RubyBreaker::TypeDefs::MethodType</a>
173
+
174
+ <li><a href="../../RubyBreaker/TypeDefs/NilType.html">RubyBreaker::TypeDefs::NilType</a>
175
+
176
+ <li><a href="../../RubyBreaker/TypeDefs/NominalType.html">RubyBreaker::TypeDefs::NominalType</a>
177
+
178
+ <li><a href="../../RubyBreaker/TypeDefs/OptionalType.html">RubyBreaker::TypeDefs::OptionalType</a>
179
+
180
+ <li><a href="../../RubyBreaker/TypeDefs/OrType.html">RubyBreaker::TypeDefs::OrType</a>
181
+
182
+ <li><a href="../../RubyBreaker/TypeDefs/SelfType.html">RubyBreaker::TypeDefs::SelfType</a>
183
+
184
+ <li><a href="../../RubyBreaker/TypeDefs/Type.html">RubyBreaker::TypeDefs::Type</a>
185
+
186
+ <li><a href="../../RubyBreaker/TypeDefs/VarLengthType.html">RubyBreaker::TypeDefs::VarLengthType</a>
187
+
188
+ <li><a href="../../RubyBreaker/TypeUnparser.html">RubyBreaker::TypeUnparser</a>
189
+
190
+ <li><a href="../../RubyBreaker/Typing.html">RubyBreaker::Typing</a>
191
+
192
+ <li><a href="../../RubyBreaker/Utilities.html">RubyBreaker::Utilities</a>
193
+
194
+ </ul>
195
+ </nav>
196
+
197
+ </div>
198
+ </nav>
199
+
200
+ <div id="documentation">
201
+ <h1 class="class">class RubyBreaker::TypeDefs::Type</h1>
202
+
203
+ <div id="description" class="description">
204
+
205
+ <p>This class is a catch-all. The constructor of this class must be called
206
+ from children via super() in order to assign the position field variable.</p>
207
+
208
+ <p>The optional arguments are <a href="http://0">args</a> = file name <a
209
+ href="http://1">args</a> = line number</p>
210
+
211
+ <pre>args[2] = column position
212
+
213
+ or
214
+
215
+ args[0] = a Position, ObjectPosition, or Context object</pre>
216
+
217
+ </div><!-- description -->
218
+
219
+
220
+
221
+
222
+ <section id="5Buntitled-5D" class="documentation-section">
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+ <!-- Attributes -->
231
+ <section id="attribute-method-details" class="method-section section">
232
+ <h3 class="section-header">Attributes</h3>
233
+
234
+
235
+ <div id="attribute-i-ctx" class="method-detail">
236
+ <div class="method-heading attribute-method-heading">
237
+ <span class="method-name">ctx</span><span
238
+ class="attribute-access-type">[RW]</span>
239
+ </div>
240
+
241
+ <div class="method-description">
242
+
243
+ <p>Speficies the context of the type.</p>
244
+
245
+ </div>
246
+ </div>
247
+
248
+ </section><!-- attribute-method-details -->
249
+
250
+
251
+ <!-- Methods -->
252
+
253
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
254
+ <h3 class="section-header">Public Class Methods</h3>
255
+
256
+
257
+ <div id="method-c-new" class="method-detail ">
258
+
259
+ <div class="method-heading">
260
+ <span class="method-name">new</span><span
261
+ class="method-args">(*args)</span>
262
+ <span class="method-click-advice">click to toggle source</span>
263
+ </div>
264
+
265
+
266
+ <div class="method-description">
267
+
268
+
269
+
270
+
271
+
272
+ <div class="method-source-code" id="new-source">
273
+ <pre><span class="ruby-comment"># File lib/rubybreaker/type/type.rb, line 47</span>
274
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(*<span class="ruby-identifier">args</span>)
275
+ <span class="ruby-keyword">case</span> <span class="ruby-identifier">args</span>[<span class="ruby-value">0</span>]
276
+ <span class="ruby-keyword">when</span> <span class="ruby-constant">Context</span>
277
+ <span class="ruby-ivar">@ctx</span> = <span class="ruby-identifier">args</span>[<span class="ruby-value">0</span>]
278
+ <span class="ruby-keyword">when</span> <span class="ruby-constant">Position</span>
279
+ <span class="ruby-ivar">@ctx</span> = <span class="ruby-constant">Context</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">args</span>[<span class="ruby-value">0</span>])
280
+ <span class="ruby-keyword">when</span> <span class="ruby-constant">ObjectPosition</span>
281
+ <span class="ruby-ivar">@ctx</span> = <span class="ruby-constant">Context</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">args</span>[<span class="ruby-value">0</span>])
282
+ <span class="ruby-keyword">else</span>
283
+ <span class="ruby-identifier">file</span> = <span class="ruby-identifier">args</span>[<span class="ruby-value">0</span>]
284
+ <span class="ruby-identifier">line</span> = <span class="ruby-identifier">args</span>[<span class="ruby-value">1</span>]
285
+ <span class="ruby-identifier">col</span> = <span class="ruby-identifier">args</span>[<span class="ruby-value">2</span>]
286
+ <span class="ruby-identifier">pos</span> = <span class="ruby-constant">Position</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">file</span>,<span class="ruby-identifier">line</span>,<span class="ruby-identifier">col</span>)
287
+ <span class="ruby-ivar">@ctx</span> = <span class="ruby-constant">Context</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">pos</span>)
288
+ <span class="ruby-keyword">end</span>
289
+ <span class="ruby-keyword">end</span></pre>
290
+ </div><!-- new-source -->
291
+
292
+ </div>
293
+
294
+
295
+
296
+
297
+ </div><!-- new-method -->
298
+
299
+
300
+ </section><!-- public-class-method-details -->
301
+
302
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
303
+ <h3 class="section-header">Public Instance Methods</h3>
304
+
305
+
306
+ <div id="method-i-eql-3F" class="method-detail ">
307
+
308
+ <div class="method-heading">
309
+ <span class="method-name">eql?</span><span
310
+ class="method-args">(other)</span>
311
+ <span class="method-click-advice">click to toggle source</span>
312
+ </div>
313
+
314
+
315
+ <div class="method-description">
316
+
317
+ <p>This method compares this object to another object syntactically.</p>
318
+
319
+
320
+
321
+ <div class="method-source-code" id="eql-3F-source">
322
+ <pre><span class="ruby-comment"># File lib/rubybreaker/type/type_comparer.rb, line 139</span>
323
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">eql?</span>(<span class="ruby-identifier">other</span>)
324
+ <span class="ruby-constant">TypeComparer</span>.<span class="ruby-identifier">compare</span>(<span class="ruby-keyword">self</span>, <span class="ruby-identifier">other</span>)
325
+ <span class="ruby-keyword">end</span></pre>
326
+ </div><!-- eql-3F-source -->
327
+
328
+ </div>
329
+
330
+
331
+
332
+
333
+ </div><!-- eql-3F-method -->
334
+
335
+
336
+ <div id="method-i-subtype_of-3F" class="method-detail ">
337
+
338
+ <div class="method-heading">
339
+ <span class="method-name">subtype_of?</span><span
340
+ class="method-args">(rhs)</span>
341
+ <span class="method-click-advice">click to toggle source</span>
342
+ </div>
343
+
344
+
345
+ <div class="method-description">
346
+
347
+ <p>This is a shorthand for calling <a
348
+ href="../Typing.html#method-c-subtype_rel-3F">RubyBreaker::Typing.subtype_rel?</a></p>
349
+
350
+
351
+
352
+ <div class="method-source-code" id="subtype_of-3F-source">
353
+ <pre><span class="ruby-comment"># File lib/rubybreaker/typing/subtyping.rb, line 474</span>
354
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">subtype_of?</span>(<span class="ruby-identifier">rhs</span>)
355
+ <span class="ruby-keyword">return</span> <span class="ruby-constant">Typing</span>.<span class="ruby-identifier">subtype_rel?</span>(<span class="ruby-keyword">self</span>,<span class="ruby-identifier">rhs</span>)
356
+ <span class="ruby-keyword">end</span></pre>
357
+ </div><!-- subtype_of-3F-source -->
358
+
359
+ </div>
360
+
361
+
362
+
363
+
364
+ </div><!-- subtype_of-3F-method -->
365
+
366
+
367
+ <div id="method-i-unparse" class="method-detail ">
368
+
369
+ <div class="method-heading">
370
+ <span class="method-name">unparse</span><span
371
+ class="method-args">()</span>
372
+ <span class="method-click-advice">click to toggle source</span>
373
+ </div>
374
+
375
+
376
+ <div class="method-description">
377
+
378
+ <p>This method unparses the type using the pretty print method.</p>
379
+
380
+
381
+
382
+ <div class="method-source-code" id="unparse-source">
383
+ <pre><span class="ruby-comment"># File lib/rubybreaker/type/type_unparser.rb, line 136</span>
384
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">unparse</span>()
385
+ <span class="ruby-constant">TypeUnparser</span>.<span class="ruby-identifier">unparse</span>(<span class="ruby-keyword">self</span>)
386
+ <span class="ruby-keyword">end</span></pre>
387
+ </div><!-- unparse-source -->
388
+
389
+ </div>
390
+
391
+
392
+
393
+
394
+ </div><!-- unparse-method -->
395
+
396
+
397
+ </section><!-- public-instance-method-details -->
398
+
399
+ </section><!-- 5Buntitled-5D -->
400
+
401
+ </div><!-- documentation -->
402
+
403
+
404
+ <footer id="validator-badges">
405
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
406
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
407
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
408
+ </footer>
409
+