erbook 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +13 -0
- data/README +14 -0
- data/Rakefile +77 -0
- data/bin/erbook +309 -0
- data/doc/HelloWorld.input +37 -0
- data/doc/HelloWorld.spec +62 -0
- data/doc/README +6 -0
- data/doc/api/classes/ERBook.html +164 -0
- data/doc/api/classes/RDoc.html +112 -0
- data/doc/api/classes/RDoc/AnyMethod.html +195 -0
- data/doc/api/classes/RDoc/AnyMethod.src/M000005.html +18 -0
- data/doc/api/classes/RDoc/AnyMethod.src/M000006.html +23 -0
- data/doc/api/classes/RDoc/AnyMethod.src/M000007.html +18 -0
- data/doc/api/classes/RDoc/AnyMethod.src/M000008.html +22 -0
- data/doc/api/classes/RDoc/TopLevel.html +250 -0
- data/doc/api/classes/RDoc/TopLevel.src/M000009.html +18 -0
- data/doc/api/classes/RDoc/TopLevel.src/M000010.html +18 -0
- data/doc/api/classes/RDoc/TopLevel.src/M000011.html +18 -0
- data/doc/api/classes/RDoc/TopLevel.src/M000012.html +29 -0
- data/doc/api/classes/RDoc/TopLevel.src/M000013.html +25 -0
- data/doc/api/classes/RDoc/TopLevel.src/M000014.html +18 -0
- data/doc/api/classes/String.html +261 -0
- data/doc/api/classes/String.src/M000001.html +18 -0
- data/doc/api/classes/String.src/M000002.html +34 -0
- data/doc/api/classes/String.src/M000003.html +20 -0
- data/doc/api/classes/String.src/M000004.html +26 -0
- data/doc/api/created.rid +1 -0
- data/doc/api/files/lib/erbook/html_rb.html +125 -0
- data/doc/api/files/lib/erbook/rdoc_rb.html +116 -0
- data/doc/api/files/lib/erbook_rb.html +107 -0
- data/doc/api/fr_class_index.html +31 -0
- data/doc/api/fr_file_index.html +29 -0
- data/doc/api/fr_method_index.html +40 -0
- data/doc/api/index.html +24 -0
- data/doc/api/rdoc-style.css +208 -0
- data/doc/erbook.png +0 -0
- data/doc/erbook.svg +349 -0
- data/doc/feed-icon-28x28.png +0 -0
- data/doc/index.html +2663 -0
- data/doc/manual.erb +769 -0
- data/fmt/html.icons/LICENSE +67 -0
- data/fmt/html.icons/README +31 -0
- data/fmt/html.icons/caution.png +0 -0
- data/fmt/html.icons/important.png +0 -0
- data/fmt/html.icons/note.png +0 -0
- data/fmt/html.icons/quote.png +0 -0
- data/fmt/html.icons/tip.png +0 -0
- data/fmt/html.icons/warning.png +0 -0
- data/fmt/html.yaml +1185 -0
- data/fmt/latex.yaml +2 -0
- data/fmt/man.yaml +2 -0
- data/fmt/text.yaml +2 -0
- data/lib/erbook.rb +13 -0
- data/lib/erbook/html.rb +145 -0
- data/lib/erbook/rdoc.rb +126 -0
- metadata +141 -0
@@ -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>full_name (RDoc::AnyMethod)</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/erbook/rdoc.rb, line 76</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">full_name</span>
|
15
|
+
[<span class="ruby-identifier">parent</span>.<span class="ruby-identifier">full_name</span>, <span class="ruby-identifier">name</span>].<span class="ruby-identifier">join</span>(<span class="ruby-identifier">singleton</span> <span class="ruby-value">? </span><span class="ruby-value str">'::'</span> <span class="ruby-operator">:</span> <span class="ruby-value str">'#'</span>)
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,23 @@
|
|
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>decl (RDoc::AnyMethod)</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/erbook/rdoc.rb, line 81</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">decl</span>
|
15
|
+
<span class="ruby-identifier">a</span> = <span class="ruby-identifier">params</span>.<span class="ruby-identifier">dup</span>
|
16
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">b</span> = <span class="ruby-identifier">block_params</span>
|
17
|
+
<span class="ruby-identifier">a</span>.<span class="ruby-identifier">sub!</span> <span class="ruby-regexp re">%r/\s*\#.*(?=.$)/</span>, <span class="ruby-value str">''</span> <span class="ruby-comment cmt"># remove "# :yields: ..." string</span>
|
18
|
+
<span class="ruby-identifier">a</span> <span class="ruby-operator"><<</span> <span class="ruby-node">" {|#{b}| ... }"</span>
|
19
|
+
<span class="ruby-keyword kw">end</span>
|
20
|
+
<span class="ruby-identifier">full_name</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">a</span>
|
21
|
+
<span class="ruby-keyword kw">end</span></pre>
|
22
|
+
</body>
|
23
|
+
</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>comment_html (RDoc::AnyMethod)</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/erbook/rdoc.rb, line 91</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">comment_html</span>
|
15
|
+
<span class="ruby-constant">DummyMarkup</span>.<span class="ruby-identifier">new</span>.<span class="ruby-identifier">markup</span> <span class="ruby-identifier">comment</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,22 @@
|
|
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>top_level (RDoc::AnyMethod)</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/erbook/rdoc.rb, line 96</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">top_level</span>
|
15
|
+
<span class="ruby-identifier">n</span> = <span class="ruby-identifier">parent</span>
|
16
|
+
<span class="ruby-keyword kw">while</span> <span class="ruby-identifier">n</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">n</span>.<span class="ruby-identifier">parent</span>
|
17
|
+
<span class="ruby-identifier">n</span> = <span class="ruby-identifier">n</span>.<span class="ruby-identifier">parent</span>
|
18
|
+
<span class="ruby-keyword kw">end</span>
|
19
|
+
<span class="ruby-identifier">n</span>
|
20
|
+
<span class="ruby-keyword kw">end</span></pre>
|
21
|
+
</body>
|
22
|
+
</html>
|
@@ -0,0 +1,250 @@
|
|
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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>Class: RDoc::TopLevel</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="classHeader">
|
50
|
+
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">RDoc::TopLevel</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../files/lib/erbook/rdoc_rb.html">
|
59
|
+
lib/erbook/rdoc.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
<tr class="top-aligned-row">
|
66
|
+
<td><strong>Parent:</strong></td>
|
67
|
+
<td>
|
68
|
+
Object
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
</table>
|
72
|
+
</div>
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<div id="contextContent">
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
<div id="method-list">
|
86
|
+
<h3 class="section-bar">Methods</h3>
|
87
|
+
|
88
|
+
<div class="name-list">
|
89
|
+
<a href="#M000009">all_classes</a>
|
90
|
+
<a href="#M000011">all_methods</a>
|
91
|
+
<a href="#M000010">all_modules</a>
|
92
|
+
<a href="#M000013">parse</a>
|
93
|
+
<a href="#M000014">parse_file</a>
|
94
|
+
<a href="#M000012">refresh_all_classes_and_modules</a>
|
95
|
+
</div>
|
96
|
+
</div>
|
97
|
+
|
98
|
+
</div>
|
99
|
+
|
100
|
+
|
101
|
+
<!-- if includes -->
|
102
|
+
|
103
|
+
<div id="section">
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
<!-- if method_list -->
|
113
|
+
<div id="methods">
|
114
|
+
<h3 class="section-bar">Public Class methods</h3>
|
115
|
+
|
116
|
+
<div id="method-M000009" class="method-detail">
|
117
|
+
<a name="M000009"></a>
|
118
|
+
|
119
|
+
<div class="method-heading">
|
120
|
+
<a href="TopLevel.src/M000009.html" target="Code" class="method-signature"
|
121
|
+
onclick="popupCode('TopLevel.src/M000009.html');return false;">
|
122
|
+
<span class="method-name">all_classes</span><span class="method-args">()</span>
|
123
|
+
</a>
|
124
|
+
</div>
|
125
|
+
|
126
|
+
<div class="method-description">
|
127
|
+
<p>
|
128
|
+
Returns an array of all classes recorded thus far.
|
129
|
+
</p>
|
130
|
+
</div>
|
131
|
+
</div>
|
132
|
+
|
133
|
+
<div id="method-M000011" class="method-detail">
|
134
|
+
<a name="M000011"></a>
|
135
|
+
|
136
|
+
<div class="method-heading">
|
137
|
+
<a href="TopLevel.src/M000011.html" target="Code" class="method-signature"
|
138
|
+
onclick="popupCode('TopLevel.src/M000011.html');return false;">
|
139
|
+
<span class="method-name">all_methods</span><span class="method-args">()</span>
|
140
|
+
</a>
|
141
|
+
</div>
|
142
|
+
|
143
|
+
<div class="method-description">
|
144
|
+
<p>
|
145
|
+
Returns an array of <a href="AnyMethod.html">RDoc::AnyMethod</a> objects
|
146
|
+
representing all methods recorded thus far.
|
147
|
+
</p>
|
148
|
+
</div>
|
149
|
+
</div>
|
150
|
+
|
151
|
+
<div id="method-M000010" class="method-detail">
|
152
|
+
<a name="M000010"></a>
|
153
|
+
|
154
|
+
<div class="method-heading">
|
155
|
+
<a href="TopLevel.src/M000010.html" target="Code" class="method-signature"
|
156
|
+
onclick="popupCode('TopLevel.src/M000010.html');return false;">
|
157
|
+
<span class="method-name">all_modules</span><span class="method-args">()</span>
|
158
|
+
</a>
|
159
|
+
</div>
|
160
|
+
|
161
|
+
<div class="method-description">
|
162
|
+
<p>
|
163
|
+
Returns an array of all modules recorded thus far.
|
164
|
+
</p>
|
165
|
+
</div>
|
166
|
+
</div>
|
167
|
+
|
168
|
+
<div id="method-M000013" class="method-detail">
|
169
|
+
<a name="M000013"></a>
|
170
|
+
|
171
|
+
<div class="method-heading">
|
172
|
+
<a href="TopLevel.src/M000013.html" target="Code" class="method-signature"
|
173
|
+
onclick="popupCode('TopLevel.src/M000013.html');return false;">
|
174
|
+
<span class="method-name">parse</span><span class="method-args">(aCodeString, aFileName = __FILE__)</span>
|
175
|
+
</a>
|
176
|
+
</div>
|
177
|
+
|
178
|
+
<div class="method-description">
|
179
|
+
<p>
|
180
|
+
Returns a <a href="TopLevel.html">RDoc::TopLevel</a> object containing
|
181
|
+
information parsed from the given code string. This information is also
|
182
|
+
added to the global <a href="TopLevel.html">TopLevel</a> class state, so
|
183
|
+
you can access it via the class methods of the <a
|
184
|
+
href="TopLevel.html">TopLevel</a> class.
|
185
|
+
</p>
|
186
|
+
<p>
|
187
|
+
If the file name (which signifies the origin of the given code) is given,
|
188
|
+
it MUST have a ".c" or ".rb" file extension. Otherwise,
|
189
|
+
<a href="../RDoc.html">RDoc</a> will ignore the given code string! :-(
|
190
|
+
</p>
|
191
|
+
</div>
|
192
|
+
</div>
|
193
|
+
|
194
|
+
<div id="method-M000014" class="method-detail">
|
195
|
+
<a name="M000014"></a>
|
196
|
+
|
197
|
+
<div class="method-heading">
|
198
|
+
<a href="TopLevel.src/M000014.html" target="Code" class="method-signature"
|
199
|
+
onclick="popupCode('TopLevel.src/M000014.html');return false;">
|
200
|
+
<span class="method-name">parse_file</span><span class="method-args">(aFileName)</span>
|
201
|
+
</a>
|
202
|
+
</div>
|
203
|
+
|
204
|
+
<div class="method-description">
|
205
|
+
<p>
|
206
|
+
Returns a <a href="TopLevel.html">RDoc::TopLevel</a> object containing
|
207
|
+
information parsed from the code in the given file. This information is
|
208
|
+
also added to the global <a href="TopLevel.html">TopLevel</a> class state,
|
209
|
+
so you can access it via the class methods of the <a
|
210
|
+
href="TopLevel.html">TopLevel</a> class.
|
211
|
+
</p>
|
212
|
+
<p>
|
213
|
+
The given file name MUST have a ".c" or ".rb" file
|
214
|
+
extension. Otherwise, <a href="../RDoc.html">RDoc</a> will ignore the file!
|
215
|
+
:-(
|
216
|
+
</p>
|
217
|
+
</div>
|
218
|
+
</div>
|
219
|
+
|
220
|
+
<div id="method-M000012" class="method-detail">
|
221
|
+
<a name="M000012"></a>
|
222
|
+
|
223
|
+
<div class="method-heading">
|
224
|
+
<a href="TopLevel.src/M000012.html" target="Code" class="method-signature"
|
225
|
+
onclick="popupCode('TopLevel.src/M000012.html');return false;">
|
226
|
+
<span class="method-name">refresh_all_classes_and_modules</span><span class="method-args">()</span>
|
227
|
+
</a>
|
228
|
+
</div>
|
229
|
+
|
230
|
+
<div class="method-description">
|
231
|
+
<p>
|
232
|
+
Update the return value of the all_classes_and_modules() method to
|
233
|
+
<b>really</b> include every class and every module seen thus far.
|
234
|
+
</p>
|
235
|
+
</div>
|
236
|
+
</div>
|
237
|
+
|
238
|
+
|
239
|
+
</div>
|
240
|
+
|
241
|
+
|
242
|
+
</div>
|
243
|
+
|
244
|
+
|
245
|
+
<div id="validator-badges">
|
246
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
247
|
+
</div>
|
248
|
+
|
249
|
+
</body>
|
250
|
+
</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>all_classes (RDoc::TopLevel)</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/erbook/rdoc.rb, line 8</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">all_classes</span>
|
15
|
+
<span class="ruby-ivar">@@all_classes</span>.<span class="ruby-identifier">values</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</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>all_modules (RDoc::TopLevel)</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/erbook/rdoc.rb, line 13</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">all_modules</span>
|
15
|
+
<span class="ruby-ivar">@@all_modules</span>.<span class="ruby-identifier">values</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</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>all_methods (RDoc::TopLevel)</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/erbook/rdoc.rb, line 19</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">all_methods</span>
|
15
|
+
<span class="ruby-identifier">all_classes_and_modules</span>.<span class="ruby-identifier">map</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">method_list</span> }.<span class="ruby-identifier">flatten</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,29 @@
|
|
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>refresh_all_classes_and_modules (RDoc::TopLevel)</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/erbook/rdoc.rb, line 25</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">refresh_all_classes_and_modules</span>
|
15
|
+
<span class="ruby-identifier">visit</span> = <span class="ruby-identifier">lambda</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">node</span><span class="ruby-operator">|</span>
|
16
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">node</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">NormalClass</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">node</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">SingleClass</span>
|
17
|
+
<span class="ruby-ivar">@@all_classes</span>[<span class="ruby-identifier">node</span>.<span class="ruby-identifier">full_name</span>] = <span class="ruby-identifier">node</span>
|
18
|
+
|
19
|
+
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">node</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">NormalModule</span>
|
20
|
+
<span class="ruby-ivar">@@all_modules</span>[<span class="ruby-identifier">node</span>.<span class="ruby-identifier">full_name</span>] = <span class="ruby-identifier">node</span>
|
21
|
+
<span class="ruby-keyword kw">end</span>
|
22
|
+
|
23
|
+
(<span class="ruby-identifier">node</span>.<span class="ruby-identifier">classes</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">node</span>.<span class="ruby-identifier">modules</span>).<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">n</span><span class="ruby-operator">|</span> <span class="ruby-identifier">visit</span>[<span class="ruby-identifier">n</span>] }
|
24
|
+
<span class="ruby-keyword kw">end</span>
|
25
|
+
|
26
|
+
<span class="ruby-identifier">all_classes_and_modules</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">n</span><span class="ruby-operator">|</span> <span class="ruby-identifier">visit</span>[<span class="ruby-identifier">n</span>] }
|
27
|
+
<span class="ruby-keyword kw">end</span></pre>
|
28
|
+
</body>
|
29
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
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>parse (RDoc::TopLevel)</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/erbook/rdoc.rb, line 50</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">parse</span> <span class="ruby-identifier">aCodeString</span>, <span class="ruby-identifier">aFileName</span> = <span class="ruby-keyword kw">__FILE__</span>
|
15
|
+
<span class="ruby-identifier">top</span> = <span class="ruby-constant">ParserFactory</span>.<span class="ruby-identifier">parser_for</span>(
|
16
|
+
<span class="ruby-constant">TopLevel</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">aFileName</span>), <span class="ruby-identifier">aFileName</span>,
|
17
|
+
<span class="ruby-identifier">aCodeString</span>, <span class="ruby-constant">DummyOptions</span>.<span class="ruby-identifier">new</span>, <span class="ruby-constant">Stats</span>.<span class="ruby-identifier">new</span>
|
18
|
+
).<span class="ruby-identifier">scan</span>
|
19
|
+
|
20
|
+
<span class="ruby-identifier">refresh_all_classes_and_modules</span>
|
21
|
+
|
22
|
+
<span class="ruby-identifier">top</span>
|
23
|
+
<span class="ruby-keyword kw">end</span></pre>
|
24
|
+
</body>
|
25
|
+
</html>
|