eymiha_util 0.1.6 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/gem_package.rb +3 -3
- data/html/classes/Eymiha.html +144 -0
- data/html/classes/{BaseEnvelope.html → Eymiha/BaseEnvelope.html} +21 -21
- data/html/classes/Eymiha/BaseEnvelope.src/M000010.html +18 -0
- data/html/classes/Eymiha/BaseEnvelope.src/M000011.html +20 -0
- data/html/classes/Eymiha/BaseEnvelope.src/M000012.html +18 -0
- data/html/classes/{Enum.html → Eymiha/Enum.html} +5 -27
- data/html/classes/{Envelope.html → Eymiha/Envelope.html} +52 -52
- data/html/classes/Eymiha/Envelope.src/M000025.html +19 -0
- data/html/classes/Eymiha/Envelope.src/M000026.html +19 -0
- data/html/classes/Eymiha/Envelope.src/M000027.html +35 -0
- data/html/classes/Eymiha/Envelope.src/M000028.html +19 -0
- data/html/classes/Eymiha/Envelope.src/M000029.html +19 -0
- data/html/classes/Eymiha/Envelope.src/M000030.html +26 -0
- data/html/classes/Eymiha/Envelope.src/M000032.html +18 -0
- data/html/classes/{EnvelopeException.html → Eymiha/EnvelopeException.html} +5 -5
- data/html/classes/{ForwardReference.html → Eymiha/ForwardReference.html} +16 -16
- data/html/classes/Eymiha/ForwardReference.src/M000033.html +21 -0
- data/html/classes/Eymiha/ForwardReference.src/M000034.html +18 -0
- data/html/classes/{ForwardReferencer.html → Eymiha/ForwardReferencer.html} +12 -5
- data/html/classes/{ForwardReferencing.html → Eymiha/ForwardReferencing.html} +51 -51
- data/html/classes/Eymiha/ForwardReferencing.src/M000001.html +20 -0
- data/html/classes/Eymiha/ForwardReferencing.src/M000002.html +20 -0
- data/html/classes/Eymiha/ForwardReferencing.src/M000003.html +20 -0
- data/html/classes/Eymiha/ForwardReferencing.src/M000004.html +32 -0
- data/html/classes/Eymiha/ForwardReferencing.src/M000005.html +18 -0
- data/html/classes/Eymiha/ForwardReferencing.src/M000006.html +25 -0
- data/html/classes/Eymiha/ForwardReferencing.src/M000007.html +18 -0
- data/html/classes/Eymiha/ForwardReferencing.src/M000008.html +18 -0
- data/html/classes/Eymiha/ForwardReferencing.src/M000009.html +18 -0
- data/html/classes/{Histogram.html → Eymiha/Histogram.html} +65 -65
- data/html/classes/Eymiha/Histogram.src/M000016.html +19 -0
- data/html/classes/Eymiha/Histogram.src/M000017.html +21 -0
- data/html/classes/Eymiha/Histogram.src/M000018.html +37 -0
- data/html/classes/Eymiha/Histogram.src/M000019.html +18 -0
- data/html/classes/{Histogram.src/M000015.html → Eymiha/Histogram.src/M000020.html} +5 -9
- data/html/classes/Eymiha/Histogram.src/M000021.html +20 -0
- data/html/classes/Eymiha/Histogram.src/M000022.html +20 -0
- data/html/classes/Eymiha/Histogram.src/M000023.html +20 -0
- data/html/classes/Eymiha/Histogram.src/M000024.html +24 -0
- data/html/classes/{HistogramException.html → Eymiha/HistogramException.html} +5 -5
- data/html/classes/{MethodicHash.html → Eymiha/MethodicHash.html} +22 -22
- data/html/classes/Eymiha/MethodicHash.src/M000013.html +22 -0
- data/html/classes/Eymiha/MethodicHash.src/M000014.html +23 -0
- data/html/classes/Eymiha/MethodicHash.src/M000015.html +23 -0
- data/html/created.rid +1 -1
- data/html/files/lib/{enum_rb.html → eymiha/util/enum_rb.html} +3 -3
- data/html/files/lib/{envelope_rb.html → eymiha/util/envelope_rb.html} +3 -3
- data/html/files/lib/{forward_referencing_rb.html → eymiha/util/forward_referencing_rb.html} +6 -8
- data/html/files/lib/{histogram_rb.html → eymiha/util/histogram_rb.html} +3 -3
- data/html/files/lib/eymiha/util/methodic_hash_rb.html +101 -0
- data/html/files/lib/eymiha/util_rb.html +112 -0
- data/html/fr_class_index.html +11 -10
- data/html/fr_file_index.html +6 -5
- data/html/fr_method_index.html +34 -34
- data/html/index.html +1 -1
- data/lib/eymiha/util.rb +5 -0
- data/lib/eymiha/util/enum.rb +59 -0
- data/lib/eymiha/util/envelope.rb +130 -0
- data/lib/eymiha/util/forward_referencing.rb +161 -0
- data/lib/eymiha/util/histogram.rb +112 -0
- data/lib/eymiha/util/methodic_hash.rb +70 -0
- data/test/tc_enum.rb +1 -1
- data/test/tc_envelope.rb +4 -2
- data/test/tc_forward_referencing.rb +3 -1
- data/test/tc_histogram.rb +3 -1
- data/test/tc_methodic_hash.rb +4 -1
- metadata +70 -62
- data/html/classes/BaseEnvelope.src/M000001.html +0 -18
- data/html/classes/BaseEnvelope.src/M000002.html +0 -20
- data/html/classes/BaseEnvelope.src/M000003.html +0 -18
- data/html/classes/Envelope.src/M000016.html +0 -19
- data/html/classes/Envelope.src/M000017.html +0 -19
- data/html/classes/Envelope.src/M000018.html +0 -35
- data/html/classes/Envelope.src/M000019.html +0 -19
- data/html/classes/Envelope.src/M000020.html +0 -19
- data/html/classes/Envelope.src/M000021.html +0 -26
- data/html/classes/Envelope.src/M000023.html +0 -18
- data/html/classes/ForwardReference.src/M000024.html +0 -21
- data/html/classes/ForwardReference.src/M000025.html +0 -18
- data/html/classes/ForwardReferencing.src/M000026.html +0 -20
- data/html/classes/ForwardReferencing.src/M000027.html +0 -20
- data/html/classes/ForwardReferencing.src/M000028.html +0 -20
- data/html/classes/ForwardReferencing.src/M000029.html +0 -32
- data/html/classes/ForwardReferencing.src/M000030.html +0 -18
- data/html/classes/ForwardReferencing.src/M000031.html +0 -25
- data/html/classes/ForwardReferencing.src/M000032.html +0 -18
- data/html/classes/ForwardReferencing.src/M000033.html +0 -18
- data/html/classes/ForwardReferencing.src/M000034.html +0 -18
- data/html/classes/Histogram.src/M000007.html +0 -19
- data/html/classes/Histogram.src/M000008.html +0 -21
- data/html/classes/Histogram.src/M000009.html +0 -37
- data/html/classes/Histogram.src/M000010.html +0 -18
- data/html/classes/Histogram.src/M000011.html +0 -20
- data/html/classes/Histogram.src/M000012.html +0 -20
- data/html/classes/Histogram.src/M000013.html +0 -20
- data/html/classes/Histogram.src/M000014.html +0 -20
- data/html/classes/MethodicHash.src/M000004.html +0 -22
- data/html/classes/MethodicHash.src/M000005.html +0 -23
- data/html/classes/MethodicHash.src/M000006.html +0 -23
- data/html/files/lib/methodic_hash_rb.html +0 -140
- data/lib/enum.rb +0 -57
- data/lib/envelope.rb +0 -126
- data/lib/forward_referencing.rb +0 -157
- data/lib/histogram.rb +0 -109
- data/lib/methodic_hash.rb +0 -66
@@ -0,0 +1,19 @@
|
|
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>new (Eymiha::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/eymiha/util/envelope.rb, line 54</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
|
+
<span class="ruby-keyword kw">end</span></pre>
|
18
|
+
</body>
|
19
|
+
</html>
|
@@ -0,0 +1,19 @@
|
|
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>to_s (Eymiha::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/eymiha/util/envelope.rb, line 60</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">></span> <span class="ruby-value">0</span>)<span class="ruby-operator">?</span> <span class="ruby-node">"\n high #{high}\n low #{low}"</span> <span class="ruby-operator">:</span> <span class="ruby-value str">""</span>
|
16
|
+
<span class="ruby-node">"Envelope: count #{count}#{values}"</span>
|
17
|
+
<span class="ruby-keyword kw">end</span></pre>
|
18
|
+
</body>
|
19
|
+
</html>
|
@@ -0,0 +1,35 @@
|
|
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>add (Eymiha::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/eymiha/util/envelope.rb, line 70</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">></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">></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"><</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>
|
33
|
+
<span class="ruby-keyword kw">end</span></pre>
|
34
|
+
</body>
|
35
|
+
</html>
|
@@ -0,0 +1,19 @@
|
|
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>high (Eymiha::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/eymiha/util/envelope.rb, line 93</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>
|
17
|
+
<span class="ruby-keyword kw">end</span></pre>
|
18
|
+
</body>
|
19
|
+
</html>
|
@@ -0,0 +1,19 @@
|
|
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>low (Eymiha::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/eymiha/util/envelope.rb, line 100</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>
|
17
|
+
<span class="ruby-keyword kw">end</span></pre>
|
18
|
+
</body>
|
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? (Eymiha::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/eymiha/util/envelope.rb, line 109</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">&&</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">>=</span> <span class="ruby-identifier">low</span>) <span class="ruby-operator">&&</span> (<span class="ruby-identifier">value</span> <span class="ruby-operator"><=</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>
|
@@ -0,0 +1,18 @@
|
|
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>to_range (Eymiha::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/eymiha/util/envelope.rb, line 124</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_range</span>
|
15
|
+
<span class="ruby-identifier">low</span><span class="ruby-operator">..</span><span class="ruby-identifier">high</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -5,10 +5,10 @@
|
|
5
5
|
|
6
6
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
7
|
<head>
|
8
|
-
<title>Class: EnvelopeException</title>
|
8
|
+
<title>Class: Eymiha::EnvelopeException</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
12
|
<script type="text/javascript">
|
13
13
|
// <![CDATA[
|
14
14
|
|
@@ -50,13 +50,13 @@
|
|
50
50
|
<table class="header-table">
|
51
51
|
<tr class="top-aligned-row">
|
52
52
|
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">EnvelopeException</td>
|
53
|
+
<td class="class-name-in-header">Eymiha::EnvelopeException</td>
|
54
54
|
</tr>
|
55
55
|
<tr class="top-aligned-row">
|
56
56
|
<td><strong>In:</strong></td>
|
57
57
|
<td>
|
58
|
-
<a href="
|
59
|
-
lib/envelope.rb
|
58
|
+
<a href="../../files/lib/eymiha/util/envelope_rb.html">
|
59
|
+
lib/eymiha/util/envelope.rb
|
60
60
|
</a>
|
61
61
|
<br />
|
62
62
|
</td>
|
@@ -5,10 +5,10 @@
|
|
5
5
|
|
6
6
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
7
|
<head>
|
8
|
-
<title>Class: ForwardReference</title>
|
8
|
+
<title>Class: Eymiha::ForwardReference</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
12
|
<script type="text/javascript">
|
13
13
|
// <![CDATA[
|
14
14
|
|
@@ -50,13 +50,13 @@
|
|
50
50
|
<table class="header-table">
|
51
51
|
<tr class="top-aligned-row">
|
52
52
|
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">ForwardReference</td>
|
53
|
+
<td class="class-name-in-header">Eymiha::ForwardReference</td>
|
54
54
|
</tr>
|
55
55
|
<tr class="top-aligned-row">
|
56
56
|
<td><strong>In:</strong></td>
|
57
57
|
<td>
|
58
|
-
<a href="
|
59
|
-
lib/forward_referencing.rb
|
58
|
+
<a href="../../files/lib/eymiha/util/forward_referencing_rb.html">
|
59
|
+
lib/eymiha/util/forward_referencing.rb
|
60
60
|
</a>
|
61
61
|
<br />
|
62
62
|
</td>
|
@@ -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="#
|
97
|
-
<a href="#
|
96
|
+
<a href="#M000033">new</a>
|
97
|
+
<a href="#M000034">to_s</a>
|
98
98
|
</div>
|
99
99
|
</div>
|
100
100
|
|
@@ -151,19 +151,19 @@ occurred.
|
|
151
151
|
<div id="methods">
|
152
152
|
<h3 class="section-bar">Public Class methods</h3>
|
153
153
|
|
154
|
-
<div id="method-
|
155
|
-
<a name="
|
154
|
+
<div id="method-M000033" class="method-detail">
|
155
|
+
<a name="M000033"></a>
|
156
156
|
|
157
157
|
<div class="method-heading">
|
158
|
-
<a href="ForwardReference.src/
|
159
|
-
onclick="popupCode('ForwardReference.src/
|
158
|
+
<a href="ForwardReference.src/M000033.html" target="Code" class="method-signature"
|
159
|
+
onclick="popupCode('ForwardReference.src/M000033.html');return false;">
|
160
160
|
<span class="method-name">new</span><span class="method-args">(dependency=nil,context=nil)</span>
|
161
161
|
</a>
|
162
162
|
</div>
|
163
163
|
|
164
164
|
<div class="method-description">
|
165
165
|
<p>
|
166
|
-
Returns a <a href="ForwardReference.html#
|
166
|
+
Returns a <a href="ForwardReference.html#M000033">new</a> instance with a
|
167
167
|
valid continuation, the given dependency and contextual information.
|
168
168
|
</p>
|
169
169
|
</div>
|
@@ -171,12 +171,12 @@ valid continuation, the given dependency and contextual information.
|
|
171
171
|
|
172
172
|
<h3 class="section-bar">Public Instance methods</h3>
|
173
173
|
|
174
|
-
<div id="method-
|
175
|
-
<a name="
|
174
|
+
<div id="method-M000034" class="method-detail">
|
175
|
+
<a name="M000034"></a>
|
176
176
|
|
177
177
|
<div class="method-heading">
|
178
|
-
<a href="ForwardReference.src/
|
179
|
-
onclick="popupCode('ForwardReference.src/
|
178
|
+
<a href="ForwardReference.src/M000034.html" target="Code" class="method-signature"
|
179
|
+
onclick="popupCode('ForwardReference.src/M000034.html');return false;">
|
180
180
|
<span class="method-name">to_s</span><span class="method-args">()</span>
|
181
181
|
</a>
|
182
182
|
</div>
|
@@ -0,0 +1,21 @@
|
|
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>new (Eymiha::ForwardReference)</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/eymiha/util/forward_referencing.rb, line 147</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>
|
19
|
+
<span class="ruby-keyword kw">end</span></pre>
|
20
|
+
</body>
|
21
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
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>to_s (Eymiha::ForwardReference)</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/eymiha/util/forward_referencing.rb, line 155</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
15
|
+
<span class="ruby-node">"#{class_name} dependency #{dependency} #{continuation}"</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -5,10 +5,10 @@
|
|
5
5
|
|
6
6
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
7
|
<head>
|
8
|
-
<title>Class: ForwardReferencer</title>
|
8
|
+
<title>Class: Eymiha::ForwardReferencer</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
12
|
<script type="text/javascript">
|
13
13
|
// <![CDATA[
|
14
14
|
|
@@ -50,13 +50,13 @@
|
|
50
50
|
<table class="header-table">
|
51
51
|
<tr class="top-aligned-row">
|
52
52
|
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">ForwardReferencer</td>
|
53
|
+
<td class="class-name-in-header">Eymiha::ForwardReferencer</td>
|
54
54
|
</tr>
|
55
55
|
<tr class="top-aligned-row">
|
56
56
|
<td><strong>In:</strong></td>
|
57
57
|
<td>
|
58
|
-
<a href="
|
59
|
-
lib/forward_referencing.rb
|
58
|
+
<a href="../../files/lib/eymiha/util/forward_referencing_rb.html">
|
59
|
+
lib/eymiha/util/forward_referencing.rb
|
60
60
|
</a>
|
61
61
|
<br />
|
62
62
|
</td>
|
@@ -97,6 +97,13 @@ than from inclusion or extension.
|
|
97
97
|
|
98
98
|
|
99
99
|
<!-- if includes -->
|
100
|
+
<div id="includes">
|
101
|
+
<h3 class="section-bar">Included Modules</h3>
|
102
|
+
|
103
|
+
<div id="includes-list">
|
104
|
+
<span class="include-name"><a href="ForwardReferencing.html">ForwardReferencing</a></span>
|
105
|
+
</div>
|
106
|
+
</div>
|
100
107
|
|
101
108
|
<div id="section">
|
102
109
|
|
@@ -5,10 +5,10 @@
|
|
5
5
|
|
6
6
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
7
|
<head>
|
8
|
-
<title>Module: ForwardReferencing</title>
|
8
|
+
<title>Module: Eymiha::ForwardReferencing</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
12
|
<script type="text/javascript">
|
13
13
|
// <![CDATA[
|
14
14
|
|
@@ -50,13 +50,13 @@
|
|
50
50
|
<table class="header-table">
|
51
51
|
<tr class="top-aligned-row">
|
52
52
|
<td><strong>Module</strong></td>
|
53
|
-
<td class="class-name-in-header">ForwardReferencing</td>
|
53
|
+
<td class="class-name-in-header">Eymiha::ForwardReferencing</td>
|
54
54
|
</tr>
|
55
55
|
<tr class="top-aligned-row">
|
56
56
|
<td><strong>In:</strong></td>
|
57
57
|
<td>
|
58
|
-
<a href="
|
59
|
-
lib/forward_referencing.rb
|
58
|
+
<a href="../../files/lib/eymiha/util/forward_referencing_rb.html">
|
59
|
+
lib/eymiha/util/forward_referencing.rb
|
60
60
|
</a>
|
61
61
|
<br />
|
62
62
|
</td>
|
@@ -87,15 +87,15 @@ mixed into a class to allow it to capture and resolve ForwardReferences.
|
|
87
87
|
<h3 class="section-bar">Methods</h3>
|
88
88
|
|
89
89
|
<div class="name-list">
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
94
|
-
<a href="#
|
95
|
-
<a href="#
|
96
|
-
<a href="#
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
90
|
+
<a href="#M000005">continue_forward_reference_resolution</a>
|
91
|
+
<a href="#M000002">create_forward_reference</a>
|
92
|
+
<a href="#M000006">forward_reference_dependencies</a>
|
93
|
+
<a href="#M000009">forward_references_clear</a>
|
94
|
+
<a href="#M000008">forward_references_remaining</a>
|
95
|
+
<a href="#M000007">forward_references_to_s</a>
|
96
|
+
<a href="#M000003">remove_forward_reference</a>
|
97
|
+
<a href="#M000004">resolve_forward_references</a>
|
98
|
+
<a href="#M000001">start_forward_referencing</a>
|
99
99
|
</div>
|
100
100
|
</div>
|
101
101
|
|
@@ -133,12 +133,12 @@ An array containing the set of unresolved forward references.
|
|
133
133
|
<div id="methods">
|
134
134
|
<h3 class="section-bar">Public Instance methods</h3>
|
135
135
|
|
136
|
-
<div id="method-
|
137
|
-
<a name="
|
136
|
+
<div id="method-M000005" class="method-detail">
|
137
|
+
<a name="M000005"></a>
|
138
138
|
|
139
139
|
<div class="method-heading">
|
140
|
-
<a href="ForwardReferencing.src/
|
141
|
-
onclick="popupCode('ForwardReferencing.src/
|
140
|
+
<a href="ForwardReferencing.src/M000005.html" target="Code" class="method-signature"
|
141
|
+
onclick="popupCode('ForwardReferencing.src/M000005.html');return false;">
|
142
142
|
<span class="method-name">continue_forward_reference_resolution</span><span class="method-args">()</span>
|
143
143
|
</a>
|
144
144
|
</div>
|
@@ -147,18 +147,18 @@ An array containing the set of unresolved forward references.
|
|
147
147
|
<p>
|
148
148
|
To be called at the end of a section of code that could contain a forward
|
149
149
|
reference, it will continue during normal processing and jump back to the
|
150
|
-
<a href="ForwardReferencing.html#
|
150
|
+
<a href="ForwardReferencing.html#M000004">resolve_forward_references</a>
|
151
151
|
method during resolution.
|
152
152
|
</p>
|
153
153
|
</div>
|
154
154
|
</div>
|
155
155
|
|
156
|
-
<div id="method-
|
157
|
-
<a name="
|
156
|
+
<div id="method-M000002" class="method-detail">
|
157
|
+
<a name="M000002"></a>
|
158
158
|
|
159
159
|
<div class="method-heading">
|
160
|
-
<a href="ForwardReferencing.src/
|
161
|
-
onclick="popupCode('ForwardReferencing.src/
|
160
|
+
<a href="ForwardReferencing.src/M000002.html" target="Code" class="method-signature"
|
161
|
+
onclick="popupCode('ForwardReferencing.src/M000002.html');return false;">
|
162
162
|
<span class="method-name">create_forward_reference</span><span class="method-args">(dependency=nil,context=nil)</span>
|
163
163
|
</a>
|
164
164
|
</div>
|
@@ -173,12 +173,12 @@ that can be jumped to during resolution.
|
|
173
173
|
</div>
|
174
174
|
</div>
|
175
175
|
|
176
|
-
<div id="method-
|
177
|
-
<a name="
|
176
|
+
<div id="method-M000006" class="method-detail">
|
177
|
+
<a name="M000006"></a>
|
178
178
|
|
179
179
|
<div class="method-heading">
|
180
|
-
<a href="ForwardReferencing.src/
|
181
|
-
onclick="popupCode('ForwardReferencing.src/
|
180
|
+
<a href="ForwardReferencing.src/M000006.html" target="Code" class="method-signature"
|
181
|
+
onclick="popupCode('ForwardReferencing.src/M000006.html');return false;">
|
182
182
|
<span class="method-name">forward_reference_dependencies</span><span class="method-args">()</span>
|
183
183
|
</a>
|
184
184
|
</div>
|
@@ -191,12 +191,12 @@ them as dependencies.
|
|
191
191
|
</div>
|
192
192
|
</div>
|
193
193
|
|
194
|
-
<div id="method-
|
195
|
-
<a name="
|
194
|
+
<div id="method-M000009" class="method-detail">
|
195
|
+
<a name="M000009"></a>
|
196
196
|
|
197
197
|
<div class="method-heading">
|
198
|
-
<a href="ForwardReferencing.src/
|
199
|
-
onclick="popupCode('ForwardReferencing.src/
|
198
|
+
<a href="ForwardReferencing.src/M000009.html" target="Code" class="method-signature"
|
199
|
+
onclick="popupCode('ForwardReferencing.src/M000009.html');return false;">
|
200
200
|
<span class="method-name">forward_references_clear</span><span class="method-args">()</span>
|
201
201
|
</a>
|
202
202
|
</div>
|
@@ -208,12 +208,12 @@ Remove the remaining unresolved forward references.
|
|
208
208
|
</div>
|
209
209
|
</div>
|
210
210
|
|
211
|
-
<div id="method-
|
212
|
-
<a name="
|
211
|
+
<div id="method-M000008" class="method-detail">
|
212
|
+
<a name="M000008"></a>
|
213
213
|
|
214
214
|
<div class="method-heading">
|
215
|
-
<a href="ForwardReferencing.src/
|
216
|
-
onclick="popupCode('ForwardReferencing.src/
|
215
|
+
<a href="ForwardReferencing.src/M000008.html" target="Code" class="method-signature"
|
216
|
+
onclick="popupCode('ForwardReferencing.src/M000008.html');return false;">
|
217
217
|
<span class="method-name">forward_references_remaining</span><span class="method-args">()</span>
|
218
218
|
</a>
|
219
219
|
</div>
|
@@ -225,12 +225,12 @@ Returns the number of unresolved forward references.
|
|
225
225
|
</div>
|
226
226
|
</div>
|
227
227
|
|
228
|
-
<div id="method-
|
229
|
-
<a name="
|
228
|
+
<div id="method-M000007" class="method-detail">
|
229
|
+
<a name="M000007"></a>
|
230
230
|
|
231
231
|
<div class="method-heading">
|
232
|
-
<a href="ForwardReferencing.src/
|
233
|
-
onclick="popupCode('ForwardReferencing.src/
|
232
|
+
<a href="ForwardReferencing.src/M000007.html" target="Code" class="method-signature"
|
233
|
+
onclick="popupCode('ForwardReferencing.src/M000007.html');return false;">
|
234
234
|
<span class="method-name">forward_references_to_s</span><span class="method-args">()</span>
|
235
235
|
</a>
|
236
236
|
</div>
|
@@ -243,12 +243,12 @@ href="ForwardReferencing.html">ForwardReferencing</a>.
|
|
243
243
|
</div>
|
244
244
|
</div>
|
245
245
|
|
246
|
-
<div id="method-
|
247
|
-
<a name="
|
246
|
+
<div id="method-M000003" class="method-detail">
|
247
|
+
<a name="M000003"></a>
|
248
248
|
|
249
249
|
<div class="method-heading">
|
250
|
-
<a href="ForwardReferencing.src/
|
251
|
-
onclick="popupCode('ForwardReferencing.src/
|
250
|
+
<a href="ForwardReferencing.src/M000003.html" target="Code" class="method-signature"
|
251
|
+
onclick="popupCode('ForwardReferencing.src/M000003.html');return false;">
|
252
252
|
<span class="method-name">remove_forward_reference</span><span class="method-args">(forward_reference=nil)</span>
|
253
253
|
</a>
|
254
254
|
</div>
|
@@ -263,12 +263,12 @@ start of the section, and asserts that a resolution was made.
|
|
263
263
|
</div>
|
264
264
|
</div>
|
265
265
|
|
266
|
-
<div id="method-
|
267
|
-
<a name="
|
266
|
+
<div id="method-M000004" class="method-detail">
|
267
|
+
<a name="M000004"></a>
|
268
268
|
|
269
269
|
<div class="method-heading">
|
270
|
-
<a href="ForwardReferencing.src/
|
271
|
-
onclick="popupCode('ForwardReferencing.src/
|
270
|
+
<a href="ForwardReferencing.src/M000004.html" target="Code" class="method-signature"
|
271
|
+
onclick="popupCode('ForwardReferencing.src/M000004.html');return false;">
|
272
272
|
<span class="method-name">resolve_forward_references</span><span class="method-args">()</span>
|
273
273
|
</a>
|
274
274
|
</div>
|
@@ -287,12 +287,12 @@ receiver a chance to reset any transcient infromation.
|
|
287
287
|
</div>
|
288
288
|
</div>
|
289
289
|
|
290
|
-
<div id="method-
|
291
|
-
<a name="
|
290
|
+
<div id="method-M000001" class="method-detail">
|
291
|
+
<a name="M000001"></a>
|
292
292
|
|
293
293
|
<div class="method-heading">
|
294
|
-
<a href="ForwardReferencing.src/
|
295
|
-
onclick="popupCode('ForwardReferencing.src/
|
294
|
+
<a href="ForwardReferencing.src/M000001.html" target="Code" class="method-signature"
|
295
|
+
onclick="popupCode('ForwardReferencing.src/M000001.html');return false;">
|
296
296
|
<span class="method-name">start_forward_referencing</span><span class="method-args">()</span>
|
297
297
|
</a>
|
298
298
|
</div>
|