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,463 @@
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::Position - 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/context.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">Object
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-convert_caller_to_pos">::convert_caller_to_pos</a>
74
+
75
+ <li><a href="#method-c-get">::get</a>
76
+
77
+ <li><a href="#method-c-new">::new</a>
78
+
79
+ <li><a href="#method-c-set">::set</a>
80
+
81
+ <li><a href="#method-i-to_s">#to_s</a>
82
+
83
+ </ul>
84
+ </nav>
85
+
86
+ </div>
87
+
88
+ <div id="project-metadata">
89
+
90
+ <nav id="classindex-section" class="section project-section">
91
+ <h3 class="section-header">Class and Module Index</h3>
92
+
93
+ <ul class="link-list">
94
+
95
+ <li><a href="../RubyBreaker.html">RubyBreaker</a>
96
+
97
+ <li><a href="../RubyBreaker/Breakable.html">RubyBreaker::Breakable</a>
98
+
99
+ <li><a href="../RubyBreaker/Broken.html">RubyBreaker::Broken</a>
100
+
101
+ <li><a href="../RubyBreaker/Broken/BrokenEigen.html">RubyBreaker::Broken::BrokenEigen</a>
102
+
103
+ <li><a href="../RubyBreaker/Context.html">RubyBreaker::Context</a>
104
+
105
+ <li><a href="../RubyBreaker/Debug.html">RubyBreaker::Debug</a>
106
+
107
+ <li><a href="../RubyBreaker/Errors.html">RubyBreaker::Errors</a>
108
+
109
+ <li><a href="../RubyBreaker/Errors/InternalError.html">RubyBreaker::Errors::InternalError</a>
110
+
111
+ <li><a href="../RubyBreaker/Errors/InvalidSubtypeCheck.html">RubyBreaker::Errors::InvalidSubtypeCheck</a>
112
+
113
+ <li><a href="../RubyBreaker/Errors/InvalidTypeConstruction.html">RubyBreaker::Errors::InvalidTypeConstruction</a>
114
+
115
+ <li><a href="../RubyBreaker/Errors/SubtypeFailure.html">RubyBreaker::Errors::SubtypeFailure</a>
116
+
117
+ <li><a href="../RubyBreaker/Errors/TypeError.html">RubyBreaker::Errors::TypeError</a>
118
+
119
+ <li><a href="../RubyBreaker/Errors/UserError.html">RubyBreaker::Errors::UserError</a>
120
+
121
+ <li><a href="../RubyBreaker/Kernel.html">RubyBreaker::Kernel</a>
122
+
123
+ <li><a href="../RubyBreaker/Main.html">RubyBreaker::Main</a>
124
+
125
+ <li><a href="../RubyBreaker/ObjectPosition.html">RubyBreaker::ObjectPosition</a>
126
+
127
+ <li><a href="../RubyBreaker/Position.html">RubyBreaker::Position</a>
128
+
129
+ <li><a href="../RubyBreaker/RubyTypeUtils.html">RubyBreaker::RubyTypeUtils</a>
130
+
131
+ <li><a href="../RubyBreaker/Runtime.html">RubyBreaker::Runtime</a>
132
+
133
+ <li><a href="../RubyBreaker/Runtime/Inspector.html">RubyBreaker::Runtime::Inspector</a>
134
+
135
+ <li><a href="../RubyBreaker/Runtime/MethodInfo.html">RubyBreaker::Runtime::MethodInfo</a>
136
+
137
+ <li><a href="../RubyBreaker/Runtime/Monitor.html">RubyBreaker::Runtime::Monitor</a>
138
+
139
+ <li><a href="../RubyBreaker/Runtime/MonitorInstaller.html">RubyBreaker::Runtime::MonitorInstaller</a>
140
+
141
+ <li><a href="../RubyBreaker/Runtime/MonitorSwitch.html">RubyBreaker::Runtime::MonitorSwitch</a>
142
+
143
+ <li><a href="../RubyBreaker/Runtime/MonitorUtils.html">RubyBreaker::Runtime::MonitorUtils</a>
144
+
145
+ <li><a href="../RubyBreaker/Runtime/ObjectWrapper.html">RubyBreaker::Runtime::ObjectWrapper</a>
146
+
147
+ <li><a href="../RubyBreaker/Runtime/Pluggable.html">RubyBreaker::Runtime::Pluggable</a>
148
+
149
+ <li><a href="../RubyBreaker/Runtime/TypePlaceholder.html">RubyBreaker::Runtime::TypePlaceholder</a>
150
+
151
+ <li><a href="../RubyBreaker/Runtime/TypeSigParser.html">RubyBreaker::Runtime::TypeSigParser</a>
152
+
153
+ <li><a href="../RubyBreaker/Runtime/TypeSystem.html">RubyBreaker::Runtime::TypeSystem</a>
154
+
155
+ <li><a href="../RubyBreaker/TestCase.html">RubyBreaker::TestCase</a>
156
+
157
+ <li><a href="../RubyBreaker/TypeComparer.html">RubyBreaker::TypeComparer</a>
158
+
159
+ <li><a href="../RubyBreaker/TypeDefs.html">RubyBreaker::TypeDefs</a>
160
+
161
+ <li><a href="../RubyBreaker/TypeDefs/AnyType.html">RubyBreaker::TypeDefs::AnyType</a>
162
+
163
+ <li><a href="../RubyBreaker/TypeDefs/BlockType.html">RubyBreaker::TypeDefs::BlockType</a>
164
+
165
+ <li><a href="../RubyBreaker/TypeDefs/DuckType.html">RubyBreaker::TypeDefs::DuckType</a>
166
+
167
+ <li><a href="../RubyBreaker/TypeDefs/FusionType.html">RubyBreaker::TypeDefs::FusionType</a>
168
+
169
+ <li><a href="../RubyBreaker/TypeDefs/MethodListType.html">RubyBreaker::TypeDefs::MethodListType</a>
170
+
171
+ <li><a href="../RubyBreaker/TypeDefs/MethodType.html">RubyBreaker::TypeDefs::MethodType</a>
172
+
173
+ <li><a href="../RubyBreaker/TypeDefs/NilType.html">RubyBreaker::TypeDefs::NilType</a>
174
+
175
+ <li><a href="../RubyBreaker/TypeDefs/NominalType.html">RubyBreaker::TypeDefs::NominalType</a>
176
+
177
+ <li><a href="../RubyBreaker/TypeDefs/OptionalType.html">RubyBreaker::TypeDefs::OptionalType</a>
178
+
179
+ <li><a href="../RubyBreaker/TypeDefs/OrType.html">RubyBreaker::TypeDefs::OrType</a>
180
+
181
+ <li><a href="../RubyBreaker/TypeDefs/SelfType.html">RubyBreaker::TypeDefs::SelfType</a>
182
+
183
+ <li><a href="../RubyBreaker/TypeDefs/Type.html">RubyBreaker::TypeDefs::Type</a>
184
+
185
+ <li><a href="../RubyBreaker/TypeDefs/VarLengthType.html">RubyBreaker::TypeDefs::VarLengthType</a>
186
+
187
+ <li><a href="../RubyBreaker/TypeUnparser.html">RubyBreaker::TypeUnparser</a>
188
+
189
+ <li><a href="../RubyBreaker/Typing.html">RubyBreaker::Typing</a>
190
+
191
+ <li><a href="../RubyBreaker/Utilities.html">RubyBreaker::Utilities</a>
192
+
193
+ </ul>
194
+ </nav>
195
+
196
+ </div>
197
+ </nav>
198
+
199
+ <div id="documentation">
200
+ <h1 class="class">class RubyBreaker::Position</h1>
201
+
202
+ <div id="description" class="description">
203
+
204
+ <p>This class represents a position of the type acquired from either the type
205
+ signature or code during runtime. It can also be used for internal error
206
+ checking or debuging purpose.</p>
207
+
208
+ </div><!-- description -->
209
+
210
+
211
+
212
+
213
+ <section id="5Buntitled-5D" class="documentation-section">
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+ <!-- Attributes -->
222
+ <section id="attribute-method-details" class="method-section section">
223
+ <h3 class="section-header">Attributes</h3>
224
+
225
+
226
+ <div id="attribute-i-col" class="method-detail">
227
+ <div class="method-heading attribute-method-heading">
228
+ <span class="method-name">col</span><span
229
+ class="attribute-access-type">[RW]</span>
230
+ </div>
231
+
232
+ <div class="method-description">
233
+
234
+
235
+
236
+ </div>
237
+ </div>
238
+
239
+ <div id="attribute-i-file" class="method-detail">
240
+ <div class="method-heading attribute-method-heading">
241
+ <span class="method-name">file</span><span
242
+ class="attribute-access-type">[RW]</span>
243
+ </div>
244
+
245
+ <div class="method-description">
246
+
247
+
248
+
249
+ </div>
250
+ </div>
251
+
252
+ <div id="attribute-i-line" class="method-detail">
253
+ <div class="method-heading attribute-method-heading">
254
+ <span class="method-name">line</span><span
255
+ class="attribute-access-type">[RW]</span>
256
+ </div>
257
+
258
+ <div class="method-description">
259
+
260
+
261
+
262
+ </div>
263
+ </div>
264
+
265
+ <div id="attribute-i-method" class="method-detail">
266
+ <div class="method-heading attribute-method-heading">
267
+ <span class="method-name">method</span><span
268
+ class="attribute-access-type">[RW]</span>
269
+ </div>
270
+
271
+ <div class="method-description">
272
+
273
+
274
+
275
+ </div>
276
+ </div>
277
+
278
+ </section><!-- attribute-method-details -->
279
+
280
+
281
+ <!-- Methods -->
282
+
283
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
284
+ <h3 class="section-header">Public Class Methods</h3>
285
+
286
+
287
+ <div id="method-c-convert_caller_to_pos" class="method-detail ">
288
+
289
+ <div class="method-heading">
290
+ <span class="method-name">convert_caller_to_pos</span><span
291
+ class="method-args">(caller_ary, idx=0)</span>
292
+ <span class="method-click-advice">click to toggle source</span>
293
+ </div>
294
+
295
+
296
+ <div class="method-description">
297
+
298
+ <p>This class method is a utility function to convert a string in the caller()
299
+ array.</p>
300
+
301
+
302
+
303
+ <div class="method-source-code" id="convert_caller_to_pos-source">
304
+ <pre><span class="ruby-comment"># File lib/rubybreaker/context.rb, line 49</span>
305
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">convert_caller_to_pos</span>(<span class="ruby-identifier">caller_ary</span>, <span class="ruby-identifier">idx</span>=<span class="ruby-value">0</span>)
306
+ <span class="ruby-identifier">tokens</span> = <span class="ruby-identifier">caller_ary</span>[<span class="ruby-identifier">idx</span>].<span class="ruby-identifier">split</span>(<span class="ruby-string">&quot;:&quot;</span>)
307
+ <span class="ruby-keyword">return</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">tokens</span>[<span class="ruby-value">0</span>],<span class="ruby-identifier">tokens</span>[<span class="ruby-value">1</span>],<span class="ruby-value">-1</span>,<span class="ruby-identifier">tokens</span>[<span class="ruby-value">2</span>]) <span class="ruby-comment"># no col </span>
308
+ <span class="ruby-keyword">end</span></pre>
309
+ </div><!-- convert_caller_to_pos-source -->
310
+
311
+ </div>
312
+
313
+
314
+
315
+
316
+ </div><!-- convert_caller_to_pos-method -->
317
+
318
+
319
+ <div id="method-c-get" class="method-detail ">
320
+
321
+ <div class="method-heading">
322
+ <span class="method-name">get</span><span
323
+ class="method-args">()</span>
324
+ <span class="method-click-advice">click to toggle source</span>
325
+ </div>
326
+
327
+
328
+ <div class="method-description">
329
+
330
+ <p>This class method returns a new position object for the current parsing
331
+ position.</p>
332
+
333
+
334
+
335
+ <div class="method-source-code" id="get-source">
336
+ <pre><span class="ruby-comment"># File lib/rubybreaker/context.rb, line 43</span>
337
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">get</span>()
338
+ <span class="ruby-keyword">return</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>)
339
+ <span class="ruby-keyword">end</span></pre>
340
+ </div><!-- get-source -->
341
+
342
+ </div>
343
+
344
+
345
+
346
+
347
+ </div><!-- get-method -->
348
+
349
+
350
+ <div id="method-c-new" class="method-detail ">
351
+
352
+ <div class="method-heading">
353
+ <span class="method-name">new</span><span
354
+ class="method-args">(file="",line=-1,col=-1,meth="")</span>
355
+ <span class="method-click-advice">click to toggle source</span>
356
+ </div>
357
+
358
+
359
+ <div class="method-description">
360
+
361
+
362
+
363
+
364
+
365
+ <div class="method-source-code" id="new-source">
366
+ <pre><span class="ruby-comment"># File lib/rubybreaker/context.rb, line 23</span>
367
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">file</span>=<span class="ruby-string">&quot;&quot;</span>,<span class="ruby-identifier">line</span>=<span class="ruby-value">-1</span>,<span class="ruby-identifier">col</span>=<span class="ruby-value">-1</span>,<span class="ruby-identifier">meth</span>=<span class="ruby-string">&quot;&quot;</span>)
368
+ <span class="ruby-ivar">@file</span> = <span class="ruby-identifier">file</span>
369
+ <span class="ruby-ivar">@line</span> = <span class="ruby-identifier">line</span>
370
+ <span class="ruby-ivar">@col</span> = <span class="ruby-identifier">col</span>
371
+ <span class="ruby-ivar">@method</span> = <span class="ruby-identifier">meth</span>
372
+ <span class="ruby-keyword">end</span></pre>
373
+ </div><!-- new-source -->
374
+
375
+ </div>
376
+
377
+
378
+
379
+
380
+ </div><!-- new-method -->
381
+
382
+
383
+ <div id="method-c-set" class="method-detail ">
384
+
385
+ <div class="method-heading">
386
+ <span class="method-name">set</span><span
387
+ class="method-args">(file,line,col)</span>
388
+ <span class="method-click-advice">click to toggle source</span>
389
+ </div>
390
+
391
+
392
+ <div class="method-description">
393
+
394
+ <p>This class method is to set the current parsing position.</p>
395
+
396
+
397
+
398
+ <div class="method-source-code" id="set-source">
399
+ <pre><span class="ruby-comment"># File lib/rubybreaker/context.rb, line 35</span>
400
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">set</span>(<span class="ruby-identifier">file</span>,<span class="ruby-identifier">line</span>,<span class="ruby-identifier">col</span>)
401
+ <span class="ruby-identifier">@@file</span> = <span class="ruby-identifier">file</span>
402
+ <span class="ruby-identifier">@@line</span> = <span class="ruby-identifier">line</span>
403
+ <span class="ruby-identifier">@@col</span> = <span class="ruby-identifier">col</span>
404
+ <span class="ruby-keyword">end</span></pre>
405
+ </div><!-- set-source -->
406
+
407
+ </div>
408
+
409
+
410
+
411
+
412
+ </div><!-- set-method -->
413
+
414
+
415
+ </section><!-- public-class-method-details -->
416
+
417
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
418
+ <h3 class="section-header">Public Instance Methods</h3>
419
+
420
+
421
+ <div id="method-i-to_s" class="method-detail ">
422
+
423
+ <div class="method-heading">
424
+ <span class="method-name">to_s</span><span
425
+ class="method-args">()</span>
426
+ <span class="method-click-advice">click to toggle source</span>
427
+ </div>
428
+
429
+
430
+ <div class="method-description">
431
+
432
+
433
+
434
+
435
+
436
+ <div class="method-source-code" id="to_s-source">
437
+ <pre><span class="ruby-comment"># File lib/rubybreaker/context.rb, line 30</span>
438
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>()
439
+ <span class="ruby-keyword">return</span> <span class="ruby-node">&quot;#{@file}:(#{@line},#{@col}):in #{@method}&quot;</span>
440
+ <span class="ruby-keyword">end</span></pre>
441
+ </div><!-- to_s-source -->
442
+
443
+ </div>
444
+
445
+
446
+
447
+
448
+ </div><!-- to_s-method -->
449
+
450
+
451
+ </section><!-- public-instance-method-details -->
452
+
453
+ </section><!-- 5Buntitled-5D -->
454
+
455
+ </div><!-- documentation -->
456
+
457
+
458
+ <footer id="validator-badges">
459
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
460
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
461
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
462
+ </footer>
463
+