eymiha_util 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. data/gem_package.rb +1 -1
  2. data/html/classes/Envelope.html +47 -47
  3. data/html/classes/Envelope.src/M000016.html +5 -5
  4. data/html/classes/Envelope.src/M000017.html +5 -21
  5. data/html/classes/Envelope.src/M000018.html +21 -5
  6. data/html/classes/Envelope.src/M000019.html +4 -4
  7. data/html/classes/Envelope.src/M000020.html +5 -12
  8. data/html/classes/Envelope.src/M000021.html +26 -0
  9. data/html/classes/Envelope.src/{M000022.html → M000023.html} +0 -0
  10. data/html/classes/ForwardReference.html +22 -13
  11. data/html/classes/ForwardReference.src/M000024.html +7 -4
  12. data/html/classes/{ForwardReferencing.src → ForwardReference.src}/M000025.html +4 -6
  13. data/html/classes/ForwardReferencing.html +46 -43
  14. data/html/classes/ForwardReferencing.src/M000026.html +6 -6
  15. data/html/classes/ForwardReferencing.src/M000027.html +6 -6
  16. data/html/classes/ForwardReferencing.src/M000028.html +6 -14
  17. data/html/classes/ForwardReferencing.src/M000029.html +18 -4
  18. data/html/classes/ForwardReferencing.src/M000030.html +4 -11
  19. data/html/classes/ForwardReferencing.src/M000031.html +11 -4
  20. data/html/classes/ForwardReferencing.src/M000032.html +4 -4
  21. data/html/classes/ForwardReferencing.src/M000033.html +18 -0
  22. data/html/classes/Histogram.html +60 -60
  23. data/html/classes/Histogram.src/M000007.html +5 -7
  24. data/html/classes/Histogram.src/M000008.html +7 -23
  25. data/html/classes/Histogram.src/M000009.html +23 -4
  26. data/html/classes/Histogram.src/M000010.html +4 -6
  27. data/html/classes/Histogram.src/M000011.html +4 -4
  28. data/html/classes/Histogram.src/M000012.html +4 -4
  29. data/html/classes/Histogram.src/M000013.html +4 -4
  30. data/html/classes/Histogram.src/M000014.html +6 -10
  31. data/html/classes/Histogram.src/M000015.html +24 -0
  32. data/html/classes/MethodicHash.html +24 -2
  33. data/html/classes/MethodicHash.src/M000005.html +8 -8
  34. data/html/classes/MethodicHash.src/M000006.html +23 -0
  35. data/html/created.rid +1 -1
  36. data/html/files/lib/forward_referencing_rb.html +1 -1
  37. data/html/files/lib/methodic_hash_rb.html +1 -1
  38. data/html/fr_method_index.html +29 -28
  39. data/lib/forward_referencing.rb +21 -8
  40. data/lib/methodic_hash.rb +13 -0
  41. data/test/tc_methodic_hash.rb +47 -1
  42. metadata +8 -7
  43. data/html/classes/Envelope.src/M000015.html +0 -19
  44. data/html/classes/ForwardReference.src/M000023.html +0 -20
  45. data/html/classes/Histogram.src/M000006.html +0 -19
data/gem_package.rb CHANGED
@@ -4,7 +4,7 @@ class GemPackage
4
4
 
5
5
  def initialize
6
6
  @name = 'eymiha_util'
7
- @version = '0.1.3'
7
+ @version = '0.1.4'
8
8
  @files = FileList[
9
9
  '*.rb',
10
10
  'lib/*',
@@ -85,8 +85,8 @@
85
85
  An <a href="Envelope.html">Envelope</a> is the minimum envelope that will
86
86
  completely contain a set of values. Values may be added to an instance, and
87
87
  it can return the number of values considered so far and its <a
88
- href="Envelope.html#M000018">high</a> and <a
89
- href="Envelope.html#M000019">low</a> boundaries.
88
+ href="Envelope.html#M000019">high</a> and <a
89
+ href="Envelope.html#M000020">low</a> boundaries.
90
90
  </p>
91
91
  <p>
92
92
  Envelopes can be used to generate ranges, however the result may be of
@@ -103,14 +103,14 @@ nicely with ranges.
103
103
  <h3 class="section-bar">Methods</h3>
104
104
 
105
105
  <div class="name-list">
106
- <a href="#M000021">===</a>&nbsp;&nbsp;
107
- <a href="#M000017">add</a>&nbsp;&nbsp;
108
- <a href="#M000020">contains?</a>&nbsp;&nbsp;
109
- <a href="#M000018">high</a>&nbsp;&nbsp;
110
- <a href="#M000019">low</a>&nbsp;&nbsp;
111
- <a href="#M000015">new</a>&nbsp;&nbsp;
112
- <a href="#M000022">to_range</a>&nbsp;&nbsp;
113
- <a href="#M000016">to_s</a>&nbsp;&nbsp;
106
+ <a href="#M000022">===</a>&nbsp;&nbsp;
107
+ <a href="#M000018">add</a>&nbsp;&nbsp;
108
+ <a href="#M000021">contains?</a>&nbsp;&nbsp;
109
+ <a href="#M000019">high</a>&nbsp;&nbsp;
110
+ <a href="#M000020">low</a>&nbsp;&nbsp;
111
+ <a href="#M000016">new</a>&nbsp;&nbsp;
112
+ <a href="#M000023">to_range</a>&nbsp;&nbsp;
113
+ <a href="#M000017">to_s</a>&nbsp;&nbsp;
114
114
  </div>
115
115
  </div>
116
116
 
@@ -132,12 +132,12 @@ nicely with ranges.
132
132
  <div id="methods">
133
133
  <h3 class="section-bar">Public Class methods</h3>
134
134
 
135
- <div id="method-M000015" class="method-detail">
136
- <a name="M000015"></a>
135
+ <div id="method-M000016" class="method-detail">
136
+ <a name="M000016"></a>
137
137
 
138
138
  <div class="method-heading">
139
- <a href="Envelope.src/M000015.html" target="Code" class="method-signature"
140
- onclick="popupCode('Envelope.src/M000015.html');return false;">
139
+ <a href="Envelope.src/M000016.html" target="Code" class="method-signature"
140
+ onclick="popupCode('Envelope.src/M000016.html');return false;">
141
141
  <span class="method-name">new</span><span class="method-args">(value=nil)</span>
142
142
  </a>
143
143
  </div>
@@ -145,7 +145,7 @@ nicely with ranges.
145
145
  <div class="method-description">
146
146
  <p>
147
147
  Creates and returns an instance. If an argument is given, it is passed to
148
- the set method to initialize the <a href="Envelope.html#M000015">new</a>
148
+ the set method to initialize the <a href="Envelope.html#M000016">new</a>
149
149
  instance.
150
150
  </p>
151
151
  </div>
@@ -153,8 +153,8 @@ instance.
153
153
 
154
154
  <h3 class="section-bar">Public Instance methods</h3>
155
155
 
156
- <div id="method-M000021" class="method-detail">
157
- <a name="M000021"></a>
156
+ <div id="method-M000022" class="method-detail">
157
+ <a name="M000022"></a>
158
158
 
159
159
  <div class="method-heading">
160
160
  <span class="method-name">===</span><span class="method-args">(value)</span>
@@ -167,12 +167,12 @@ Alias for contains?
167
167
  </div>
168
168
  </div>
169
169
 
170
- <div id="method-M000017" class="method-detail">
171
- <a name="M000017"></a>
170
+ <div id="method-M000018" class="method-detail">
171
+ <a name="M000018"></a>
172
172
 
173
173
  <div class="method-heading">
174
- <a href="Envelope.src/M000017.html" target="Code" class="method-signature"
175
- onclick="popupCode('Envelope.src/M000017.html');return false;">
174
+ <a href="Envelope.src/M000018.html" target="Code" class="method-signature"
175
+ onclick="popupCode('Envelope.src/M000018.html');return false;">
176
176
  <span class="method-name">add</span><span class="method-args">(value)</span>
177
177
  </a>
178
178
  </div>
@@ -200,12 +200,12 @@ The modified instance is returned.
200
200
  </div>
201
201
  </div>
202
202
 
203
- <div id="method-M000020" class="method-detail">
204
- <a name="M000020"></a>
203
+ <div id="method-M000021" class="method-detail">
204
+ <a name="M000021"></a>
205
205
 
206
206
  <div class="method-heading">
207
- <a href="Envelope.src/M000020.html" target="Code" class="method-signature"
208
- onclick="popupCode('Envelope.src/M000020.html');return false;">
207
+ <a href="Envelope.src/M000021.html" target="Code" class="method-signature"
208
+ onclick="popupCode('Envelope.src/M000021.html');return false;">
209
209
  <span class="method-name">contains?</span><span class="method-args">(value)</span>
210
210
  </a>
211
211
  </div>
@@ -216,8 +216,8 @@ Returns true if the instance completely contains the argument:
216
216
  </p>
217
217
  <ul>
218
218
  <li>value is an <a href="Envelope.html">Envelope</a>, its <a
219
- href="Envelope.html#M000018">high</a> and <a
220
- href="Envelope.html#M000019">low</a> are contained.
219
+ href="Envelope.html#M000019">high</a> and <a
220
+ href="Envelope.html#M000020">low</a> are contained.
221
221
 
222
222
  </li>
223
223
  <li>otherwise, the value is contained.
@@ -231,19 +231,19 @@ href="EnvelopeException.html">EnvelopeException</a> is raised.
231
231
  </div>
232
232
  </div>
233
233
 
234
- <div id="method-M000018" class="method-detail">
235
- <a name="M000018"></a>
234
+ <div id="method-M000019" class="method-detail">
235
+ <a name="M000019"></a>
236
236
 
237
237
  <div class="method-heading">
238
- <a href="Envelope.src/M000018.html" target="Code" class="method-signature"
239
- onclick="popupCode('Envelope.src/M000018.html');return false;">
238
+ <a href="Envelope.src/M000019.html" target="Code" class="method-signature"
239
+ onclick="popupCode('Envelope.src/M000019.html');return false;">
240
240
  <span class="method-name">high</span><span class="method-args">()</span>
241
241
  </a>
242
242
  </div>
243
243
 
244
244
  <div class="method-description">
245
245
  <p>
246
- Returns the <a href="Envelope.html#M000018">high</a> boundary of the
246
+ Returns the <a href="Envelope.html#M000019">high</a> boundary of the
247
247
  instance.
248
248
  </p>
249
249
  <ul>
@@ -255,19 +255,19 @@ href="EnvelopeException.html">EnvelopeException</a> is raised.
255
255
  </div>
256
256
  </div>
257
257
 
258
- <div id="method-M000019" class="method-detail">
259
- <a name="M000019"></a>
258
+ <div id="method-M000020" class="method-detail">
259
+ <a name="M000020"></a>
260
260
 
261
261
  <div class="method-heading">
262
- <a href="Envelope.src/M000019.html" target="Code" class="method-signature"
263
- onclick="popupCode('Envelope.src/M000019.html');return false;">
262
+ <a href="Envelope.src/M000020.html" target="Code" class="method-signature"
263
+ onclick="popupCode('Envelope.src/M000020.html');return false;">
264
264
  <span class="method-name">low</span><span class="method-args">()</span>
265
265
  </a>
266
266
  </div>
267
267
 
268
268
  <div class="method-description">
269
269
  <p>
270
- Returns the <a href="Envelope.html#M000019">low</a> boundary of the
270
+ Returns the <a href="Envelope.html#M000020">low</a> boundary of the
271
271
  instance.
272
272
  </p>
273
273
  <ul>
@@ -279,30 +279,30 @@ href="EnvelopeException.html">EnvelopeException</a> is raised.
279
279
  </div>
280
280
  </div>
281
281
 
282
- <div id="method-M000022" class="method-detail">
283
- <a name="M000022"></a>
282
+ <div id="method-M000023" class="method-detail">
283
+ <a name="M000023"></a>
284
284
 
285
285
  <div class="method-heading">
286
- <a href="Envelope.src/M000022.html" target="Code" class="method-signature"
287
- onclick="popupCode('Envelope.src/M000022.html');return false;">
286
+ <a href="Envelope.src/M000023.html" target="Code" class="method-signature"
287
+ onclick="popupCode('Envelope.src/M000023.html');return false;">
288
288
  <span class="method-name">to_range</span><span class="method-args">()</span>
289
289
  </a>
290
290
  </div>
291
291
 
292
292
  <div class="method-description">
293
293
  <p>
294
- Returns an inclusive range from the <a href="Envelope.html#M000019">low</a>
295
- to <a href="Envelope.html#M000018">high</a> boundaries
294
+ Returns an inclusive range from the <a href="Envelope.html#M000020">low</a>
295
+ to <a href="Envelope.html#M000019">high</a> boundaries
296
296
  </p>
297
297
  </div>
298
298
  </div>
299
299
 
300
- <div id="method-M000016" class="method-detail">
301
- <a name="M000016"></a>
300
+ <div id="method-M000017" class="method-detail">
301
+ <a name="M000017"></a>
302
302
 
303
303
  <div class="method-heading">
304
- <a href="Envelope.src/M000016.html" target="Code" class="method-signature"
305
- onclick="popupCode('Envelope.src/M000016.html');return false;">
304
+ <a href="Envelope.src/M000017.html" target="Code" class="method-signature"
305
+ onclick="popupCode('Envelope.src/M000017.html');return false;">
306
306
  <span class="method-name">to_s</span><span class="method-args">()</span>
307
307
  </a>
308
308
  </div>
@@ -5,15 +5,15 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>to_s (Envelope)</title>
8
+ <title>new (Envelope)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/envelope.rb, line 58</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
15
- <span class="ruby-identifier">values</span> = (<span class="ruby-identifier">count</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>)<span class="ruby-operator">?</span> <span class="ruby-node">&quot;\n high #{high}\n low #{low}&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-value str">&quot;&quot;</span>
16
- <span class="ruby-node">&quot;Envelope: count #{count}#{values}&quot;</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/envelope.rb, line 52</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">value</span>=<span class="ruby-keyword kw">nil</span>)
15
+ <span class="ruby-keyword kw">super</span>()
16
+ <span class="ruby-identifier">add</span>(<span class="ruby-identifier">value</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">value</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
17
17
  <span class="ruby-keyword kw">end</span></pre>
18
18
  </body>
19
19
  </html>
@@ -5,31 +5,15 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>add (Envelope)</title>
8
+ <title>to_s (Envelope)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/envelope.rb, line 68</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add</span>(<span class="ruby-identifier">value</span>)
15
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Envelope</span>
16
- <span class="ruby-identifier">count</span> = <span class="ruby-identifier">value</span>.<span class="ruby-identifier">count</span>
17
- <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">count</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>)
18
- <span class="ruby-identifier">add</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">high</span>
19
- <span class="ruby-identifier">add</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">low</span>
20
- <span class="ruby-ivar">@count</span> <span class="ruby-operator">+=</span> (<span class="ruby-identifier">count</span><span class="ruby-operator">-</span><span class="ruby-value">2</span>)
21
- <span class="ruby-keyword kw">end</span>
22
- <span class="ruby-keyword kw">self</span>
23
- <span class="ruby-keyword kw">else</span>
24
- <span class="ruby-keyword kw">begin</span>
25
- <span class="ruby-ivar">@high</span> = <span class="ruby-identifier">value</span> <span class="ruby-keyword kw">if</span> (<span class="ruby-ivar">@count</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">value</span> <span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@high</span>)
26
- <span class="ruby-ivar">@low</span> = <span class="ruby-identifier">value</span> <span class="ruby-keyword kw">if</span> (<span class="ruby-ivar">@count</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">value</span> <span class="ruby-operator">&lt;</span> <span class="ruby-ivar">@low</span>)
27
- <span class="ruby-ivar">@count</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
28
- <span class="ruby-keyword kw">self</span>
29
- <span class="ruby-keyword kw">rescue</span>
30
- <span class="ruby-identifier">raise_no_compare</span> <span class="ruby-identifier">value</span>
31
- <span class="ruby-keyword kw">end</span>
32
- <span class="ruby-keyword kw">end</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/envelope.rb, line 58</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
15
+ <span class="ruby-identifier">values</span> = (<span class="ruby-identifier">count</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>)<span class="ruby-operator">?</span> <span class="ruby-node">&quot;\n high #{high}\n low #{low}&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-value str">&quot;&quot;</span>
16
+ <span class="ruby-node">&quot;Envelope: count #{count}#{values}&quot;</span>
33
17
  <span class="ruby-keyword kw">end</span></pre>
34
18
  </body>
35
19
  </html>
@@ -5,15 +5,31 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>high (Envelope)</title>
8
+ <title>add (Envelope)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/envelope.rb, line 91</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">high</span>
15
- <span class="ruby-identifier">raise_no_envelope</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@count</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
16
- <span class="ruby-ivar">@high</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/envelope.rb, line 68</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add</span>(<span class="ruby-identifier">value</span>)
15
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Envelope</span>
16
+ <span class="ruby-identifier">count</span> = <span class="ruby-identifier">value</span>.<span class="ruby-identifier">count</span>
17
+ <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">count</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>)
18
+ <span class="ruby-identifier">add</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">high</span>
19
+ <span class="ruby-identifier">add</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">low</span>
20
+ <span class="ruby-ivar">@count</span> <span class="ruby-operator">+=</span> (<span class="ruby-identifier">count</span><span class="ruby-operator">-</span><span class="ruby-value">2</span>)
21
+ <span class="ruby-keyword kw">end</span>
22
+ <span class="ruby-keyword kw">self</span>
23
+ <span class="ruby-keyword kw">else</span>
24
+ <span class="ruby-keyword kw">begin</span>
25
+ <span class="ruby-ivar">@high</span> = <span class="ruby-identifier">value</span> <span class="ruby-keyword kw">if</span> (<span class="ruby-ivar">@count</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">value</span> <span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@high</span>)
26
+ <span class="ruby-ivar">@low</span> = <span class="ruby-identifier">value</span> <span class="ruby-keyword kw">if</span> (<span class="ruby-ivar">@count</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">value</span> <span class="ruby-operator">&lt;</span> <span class="ruby-ivar">@low</span>)
27
+ <span class="ruby-ivar">@count</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
28
+ <span class="ruby-keyword kw">self</span>
29
+ <span class="ruby-keyword kw">rescue</span>
30
+ <span class="ruby-identifier">raise_no_compare</span> <span class="ruby-identifier">value</span>
31
+ <span class="ruby-keyword kw">end</span>
32
+ <span class="ruby-keyword kw">end</span>
17
33
  <span class="ruby-keyword kw">end</span></pre>
18
34
  </body>
19
35
  </html>
@@ -5,15 +5,15 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>low (Envelope)</title>
8
+ <title>high (Envelope)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/envelope.rb, line 98</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">low</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/envelope.rb, line 91</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">high</span>
15
15
  <span class="ruby-identifier">raise_no_envelope</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@count</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
16
- <span class="ruby-ivar">@low</span>
16
+ <span class="ruby-ivar">@high</span>
17
17
  <span class="ruby-keyword kw">end</span></pre>
18
18
  </body>
19
19
  </html>
@@ -5,22 +5,15 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>contains? (Envelope)</title>
8
+ <title>low (Envelope)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/envelope.rb, line 107</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">contains?</span>(<span class="ruby-identifier">value</span>)
15
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Envelope</span>
16
- (<span class="ruby-identifier">contains?</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">high</span>) <span class="ruby-operator">&amp;&amp;</span> (<span class="ruby-identifier">contains?</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">low</span>)
17
- <span class="ruby-keyword kw">else</span>
18
- <span class="ruby-keyword kw">begin</span>
19
- (<span class="ruby-identifier">value</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-identifier">low</span>) <span class="ruby-operator">&amp;&amp;</span> (<span class="ruby-identifier">value</span> <span class="ruby-operator">&lt;=</span> <span class="ruby-identifier">high</span>)
20
- <span class="ruby-keyword kw">rescue</span>
21
- <span class="ruby-identifier">raise_no_compare</span> <span class="ruby-identifier">value</span>
22
- <span class="ruby-keyword kw">end</span>
23
- <span class="ruby-keyword kw">end</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/envelope.rb, line 98</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">low</span>
15
+ <span class="ruby-identifier">raise_no_envelope</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@count</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
16
+ <span class="ruby-ivar">@low</span>
24
17
  <span class="ruby-keyword kw">end</span></pre>
25
18
  </body>
26
19
  </html>
@@ -0,0 +1,26 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>contains? (Envelope)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/envelope.rb, line 107</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">contains?</span>(<span class="ruby-identifier">value</span>)
15
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Envelope</span>
16
+ (<span class="ruby-identifier">contains?</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">high</span>) <span class="ruby-operator">&amp;&amp;</span> (<span class="ruby-identifier">contains?</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">low</span>)
17
+ <span class="ruby-keyword kw">else</span>
18
+ <span class="ruby-keyword kw">begin</span>
19
+ (<span class="ruby-identifier">value</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-identifier">low</span>) <span class="ruby-operator">&amp;&amp;</span> (<span class="ruby-identifier">value</span> <span class="ruby-operator">&lt;=</span> <span class="ruby-identifier">high</span>)
20
+ <span class="ruby-keyword kw">rescue</span>
21
+ <span class="ruby-identifier">raise_no_compare</span> <span class="ruby-identifier">value</span>
22
+ <span class="ruby-keyword kw">end</span>
23
+ <span class="ruby-keyword kw">end</span>
24
+ <span class="ruby-keyword kw">end</span></pre>
25
+ </body>
26
+ </html>
@@ -93,8 +93,8 @@ and a dependency, the where and the why of forward referencing.
93
93
  <h3 class="section-bar">Methods</h3>
94
94
 
95
95
  <div class="name-list">
96
- <a href="#M000023">new</a>&nbsp;&nbsp;
97
- <a href="#M000024">to_s</a>&nbsp;&nbsp;
96
+ <a href="#M000024">new</a>&nbsp;&nbsp;
97
+ <a href="#M000025">to_s</a>&nbsp;&nbsp;
98
98
  </div>
99
99
  </div>
100
100
 
@@ -114,6 +114,15 @@ and a dependency, the where and the why of forward referencing.
114
114
 
115
115
  <div class="name-list">
116
116
  <table>
117
+ <tr class="top-aligned-row context-row">
118
+ <td class="context-item-name">context</td>
119
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
120
+ <td class="context-item-desc">
121
+ Holds an arbitrary object that holds context that can be re-established to
122
+ help resolve the forward reference.
123
+
124
+ </td>
125
+ </tr>
117
126
  <tr class="top-aligned-row context-row">
118
127
  <td class="context-item-name">continuation</td>
119
128
  <td class="context-item-value">&nbsp;[R]&nbsp;</td>
@@ -142,32 +151,32 @@ occurred.
142
151
  <div id="methods">
143
152
  <h3 class="section-bar">Public Class methods</h3>
144
153
 
145
- <div id="method-M000023" class="method-detail">
146
- <a name="M000023"></a>
154
+ <div id="method-M000024" class="method-detail">
155
+ <a name="M000024"></a>
147
156
 
148
157
  <div class="method-heading">
149
- <a href="ForwardReference.src/M000023.html" target="Code" class="method-signature"
150
- onclick="popupCode('ForwardReference.src/M000023.html');return false;">
151
- <span class="method-name">new</span><span class="method-args">(dependency)</span>
158
+ <a href="ForwardReference.src/M000024.html" target="Code" class="method-signature"
159
+ onclick="popupCode('ForwardReference.src/M000024.html');return false;">
160
+ <span class="method-name">new</span><span class="method-args">(dependency=nil,context=nil)</span>
152
161
  </a>
153
162
  </div>
154
163
 
155
164
  <div class="method-description">
156
165
  <p>
157
- Returns a <a href="ForwardReference.html#M000023">new</a> instance with a
158
- valid continuation and the given dependency.
166
+ Returns a <a href="ForwardReference.html#M000024">new</a> instance with a
167
+ valid continuation, the given dependency and contextual information.
159
168
  </p>
160
169
  </div>
161
170
  </div>
162
171
 
163
172
  <h3 class="section-bar">Public Instance methods</h3>
164
173
 
165
- <div id="method-M000024" class="method-detail">
166
- <a name="M000024"></a>
174
+ <div id="method-M000025" class="method-detail">
175
+ <a name="M000025"></a>
167
176
 
168
177
  <div class="method-heading">
169
- <a href="ForwardReference.src/M000024.html" target="Code" class="method-signature"
170
- onclick="popupCode('ForwardReference.src/M000024.html');return false;">
178
+ <a href="ForwardReference.src/M000025.html" target="Code" class="method-signature"
179
+ onclick="popupCode('ForwardReference.src/M000025.html');return false;">
171
180
  <span class="method-name">to_s</span><span class="method-args">()</span>
172
181
  </a>
173
182
  </div>
@@ -5,14 +5,17 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>to_s (ForwardReference)</title>
8
+ <title>new (ForwardReference)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/forward_referencing.rb, line 134</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
15
- <span class="ruby-node">&quot;#{self_name} dependency #{dependency} #{continuation}&quot;</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/forward_referencing.rb, line 139</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">dependency</span>=<span class="ruby-keyword kw">nil</span>,<span class="ruby-identifier">context</span>=<span class="ruby-keyword kw">nil</span>)
15
+ <span class="ruby-ivar">@continuation</span> = <span class="ruby-keyword kw">nil</span>
16
+ <span class="ruby-ivar">@continuation</span> = <span class="ruby-identifier">callcc</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">cont</span><span class="ruby-operator">|</span> <span class="ruby-identifier">cont</span>} <span class="ruby-keyword kw">while</span> (<span class="ruby-ivar">@continuation</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>)
17
+ <span class="ruby-ivar">@dependency</span> = <span class="ruby-identifier">dependency</span>
18
+ <span class="ruby-ivar">@context</span> = <span class="ruby-identifier">context</span>
16
19
  <span class="ruby-keyword kw">end</span></pre>
17
20
  </body>
18
21
  </html>
@@ -5,16 +5,14 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>start_forward_referencing (ForwardReferencing)</title>
8
+ <title>to_s (ForwardReference)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/forward_referencing.rb, line 18</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">start_forward_referencing</span>
15
- <span class="ruby-ivar">@forward_references</span> = []
16
- <span class="ruby-ivar">@had_forward_reference_resolution</span> = <span class="ruby-keyword kw">false</span>
17
- <span class="ruby-ivar">@forward_reference_resolver</span> = <span class="ruby-keyword kw">nil</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/forward_referencing.rb, line 147</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
15
+ <span class="ruby-node">&quot;#{self_name} dependency #{dependency} #{continuation}&quot;</span>
18
16
  <span class="ruby-keyword kw">end</span></pre>
19
17
  </body>
20
18
  </html>