erbook 4.0.0 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README +3 -3
- data/Rakefile +6 -3
- data/bin/erbook +285 -251
- data/doc/README +2 -2
- data/doc/api/classes/ERBook.html +2 -2
- data/doc/api/classes/RDoc/AnyMethod.html +20 -20
- data/doc/api/classes/RDoc/AnyMethod.src/M000003.html +18 -0
- data/doc/api/classes/RDoc/AnyMethod.src/M000004.html +23 -0
- data/doc/api/classes/RDoc/AnyMethod.src/M000005.html +4 -4
- data/doc/api/classes/RDoc/AnyMethod.src/M000006.html +7 -8
- data/doc/api/classes/RDoc/TopLevel.html +30 -30
- data/doc/api/classes/RDoc/{AnyMethod.src → TopLevel.src}/M000007.html +4 -4
- data/doc/api/classes/RDoc/TopLevel.src/{M000014.html → M000008.html} +4 -4
- data/doc/api/classes/RDoc/TopLevel.src/M000009.html +4 -4
- data/doc/api/classes/RDoc/TopLevel.src/M000010.html +15 -4
- data/doc/api/classes/RDoc/TopLevel.src/M000011.html +11 -4
- data/doc/api/classes/RDoc/TopLevel.src/M000012.html +4 -15
- data/doc/api/classes/String.html +17 -82
- data/doc/api/classes/String.src/M000001.html +4 -4
- data/doc/api/classes/String.src/M000002.html +3 -6
- data/doc/api/created.rid +1 -1
- data/doc/api/files/lib/erbook/rdoc_rb.html +1 -1
- data/doc/api/files/lib/erbook/{html_rb.html → to_xhtml_rb.html} +7 -7
- data/doc/api/files/lib/erbook_rb.html +1 -1
- data/doc/api/fr_file_index.html +1 -1
- data/doc/api/fr_method_index.html +12 -14
- data/doc/api/index.html +1 -1
- data/doc/index.xhtml +2277 -0
- data/doc/manual.erb +198 -155
- data/fmt/xhtml.icons/index.yaml +20 -0
- data/fmt/xhtml.icons/mediawiki-1.13.2/COPYING +340 -0
- data/fmt/xhtml.icons/mediawiki-1.13.2/README +103 -0
- data/fmt/xhtml.icons/mediawiki-1.13.2/skins/simple/external.png +0 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.1/48x48/README +2 -0
- data/fmt/{html.icons/note.png → xhtml.icons/tango-icon-theme-0.8.1/48x48/apps/accessories-text-editor.png} +0 -0
- data/fmt/{html.icons/quote.png → xhtml.icons/tango-icon-theme-0.8.1/48x48/apps/internet-group-chat.png} +0 -0
- data/fmt/{html.icons/important.png → xhtml.icons/tango-icon-theme-0.8.1/48x48/emblems/emblem-important.png} +0 -0
- data/fmt/{html.icons/warning.png → xhtml.icons/tango-icon-theme-0.8.1/48x48/status/dialog-error.png} +0 -0
- data/fmt/{html.icons/tip.png → xhtml.icons/tango-icon-theme-0.8.1/48x48/status/dialog-information.png} +0 -0
- data/fmt/{html.icons/caution.png → xhtml.icons/tango-icon-theme-0.8.1/48x48/status/dialog-warning.png} +0 -0
- data/fmt/{html.icons/LICENSE → xhtml.icons/tango-icon-theme-0.8.1/COPYING} +0 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.1/README +12 -0
- data/fmt/{html.yaml → xhtml.yaml} +305 -247
- data/lib/erbook.rb +2 -2
- data/lib/erbook/{html.rb → to_xhtml.rb} +18 -24
- metadata +42 -21
- data/doc/api/classes/RDoc/AnyMethod.src/M000008.html +0 -22
- data/doc/api/classes/RDoc/TopLevel.src/M000013.html +0 -25
- data/doc/api/classes/String.src/M000003.html +0 -20
- data/doc/api/classes/String.src/M000004.html +0 -26
- data/doc/index.html +0 -2663
- data/fmt/html.icons/README +0 -31
data/doc/README
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The erbook logo, its image file "erbook.png", and its source file "erbook.svg"
|
2
|
-
make use of
|
3
|
-
and released into the public domain by [Jens Vierbuchen]
|
2
|
+
make use of the ["cartoon owl sitting on a book"][1] graphic, which was created
|
3
|
+
and released into the public domain by [Jens Vierbuchen][2] on July 7, 2008.
|
4
4
|
|
5
5
|
[1]: http://openclipart.org/media/files/lemmling/9065
|
6
6
|
[2]: http://openclipart.org/media/people/lemmling
|
data/doc/api/classes/ERBook.html
CHANGED
@@ -104,12 +104,12 @@ Project and release information.
|
|
104
104
|
<tr class="top-aligned-row context-row">
|
105
105
|
<td class="context-item-name">VERSION</td>
|
106
106
|
<td>=</td>
|
107
|
-
<td class="context-item-value">'
|
107
|
+
<td class="context-item-value">'5.0.0'</td>
|
108
108
|
</tr>
|
109
109
|
<tr class="top-aligned-row context-row">
|
110
110
|
<td class="context-item-name">RELEASE</td>
|
111
111
|
<td>=</td>
|
112
|
-
<td class="context-item-value">'2008-11-
|
112
|
+
<td class="context-item-value">'2008-11-22'</td>
|
113
113
|
</tr>
|
114
114
|
<tr class="top-aligned-row context-row">
|
115
115
|
<td class="context-item-name">WEBSITE</td>
|
@@ -86,10 +86,10 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
89
|
+
<a href="#M000005">comment_html</a>
|
90
|
+
<a href="#M000004">decl</a>
|
91
|
+
<a href="#M000003">full_name</a>
|
92
|
+
<a href="#M000006">top_level</a>
|
93
93
|
</div>
|
94
94
|
</div>
|
95
95
|
|
@@ -111,12 +111,12 @@
|
|
111
111
|
<div id="methods">
|
112
112
|
<h3 class="section-bar">Public Instance methods</h3>
|
113
113
|
|
114
|
-
<div id="method-
|
115
|
-
<a name="
|
114
|
+
<div id="method-M000005" class="method-detail">
|
115
|
+
<a name="M000005"></a>
|
116
116
|
|
117
117
|
<div class="method-heading">
|
118
|
-
<a href="AnyMethod.src/
|
119
|
-
onclick="popupCode('AnyMethod.src/
|
118
|
+
<a href="AnyMethod.src/M000005.html" target="Code" class="method-signature"
|
119
|
+
onclick="popupCode('AnyMethod.src/M000005.html');return false;">
|
120
120
|
<span class="method-name">comment_html</span><span class="method-args">()</span>
|
121
121
|
</a>
|
122
122
|
</div>
|
@@ -128,12 +128,12 @@ Returns a HTML version of this method‘s comment.
|
|
128
128
|
</div>
|
129
129
|
</div>
|
130
130
|
|
131
|
-
<div id="method-
|
132
|
-
<a name="
|
131
|
+
<div id="method-M000004" class="method-detail">
|
132
|
+
<a name="M000004"></a>
|
133
133
|
|
134
134
|
<div class="method-heading">
|
135
|
-
<a href="AnyMethod.src/
|
136
|
-
onclick="popupCode('AnyMethod.src/
|
135
|
+
<a href="AnyMethod.src/M000004.html" target="Code" class="method-signature"
|
136
|
+
onclick="popupCode('AnyMethod.src/M000004.html');return false;">
|
137
137
|
<span class="method-name">decl</span><span class="method-args">()</span>
|
138
138
|
</a>
|
139
139
|
</div>
|
@@ -145,12 +145,12 @@ Returns a complete method declaration with block parameters and all.
|
|
145
145
|
</div>
|
146
146
|
</div>
|
147
147
|
|
148
|
-
<div id="method-
|
149
|
-
<a name="
|
148
|
+
<div id="method-M000003" class="method-detail">
|
149
|
+
<a name="M000003"></a>
|
150
150
|
|
151
151
|
<div class="method-heading">
|
152
|
-
<a href="AnyMethod.src/
|
153
|
-
onclick="popupCode('AnyMethod.src/
|
152
|
+
<a href="AnyMethod.src/M000003.html" target="Code" class="method-signature"
|
153
|
+
onclick="popupCode('AnyMethod.src/M000003.html');return false;">
|
154
154
|
<span class="method-name">full_name</span><span class="method-args">()</span>
|
155
155
|
</a>
|
156
156
|
</div>
|
@@ -162,12 +162,12 @@ Returns the fully qualified name of this method.
|
|
162
162
|
</div>
|
163
163
|
</div>
|
164
164
|
|
165
|
-
<div id="method-
|
166
|
-
<a name="
|
165
|
+
<div id="method-M000006" class="method-detail">
|
166
|
+
<a name="M000006"></a>
|
167
167
|
|
168
168
|
<div class="method-heading">
|
169
|
-
<a href="AnyMethod.src/
|
170
|
-
onclick="popupCode('AnyMethod.src/
|
169
|
+
<a href="AnyMethod.src/M000006.html" target="Code" class="method-signature"
|
170
|
+
onclick="popupCode('AnyMethod.src/M000006.html');return false;">
|
171
171
|
<span class="method-name">top_level</span><span class="method-args">()</span>
|
172
172
|
</a>
|
173
173
|
</div>
|
@@ -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>
|
@@ -5,14 +5,14 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>comment_html (RDoc::AnyMethod)</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/erbook/rdoc.rb, line
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
15
|
-
|
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
16
|
<span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -5,19 +5,18 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>top_level (RDoc::AnyMethod)</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/erbook/rdoc.rb, line
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
15
|
-
<span class="ruby-identifier">
|
16
|
-
<span class="ruby-keyword kw">
|
17
|
-
<span class="ruby-identifier">
|
18
|
-
<span class="ruby-identifier">a</span> <span class="ruby-operator"><<</span> <span class="ruby-node">" {|#{b}| ... }"</span>
|
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>
|
19
18
|
<span class="ruby-keyword kw">end</span>
|
20
|
-
<span class="ruby-identifier">
|
19
|
+
<span class="ruby-identifier">n</span>
|
21
20
|
<span class="ruby-keyword kw">end</span></pre>
|
22
21
|
</body>
|
23
22
|
</html>
|
@@ -86,12 +86,12 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
94
|
-
<a href="#
|
89
|
+
<a href="#M000007">all_classes</a>
|
90
|
+
<a href="#M000009">all_methods</a>
|
91
|
+
<a href="#M000008">all_modules</a>
|
92
|
+
<a href="#M000011">parse</a>
|
93
|
+
<a href="#M000012">parse_file</a>
|
94
|
+
<a href="#M000010">refresh_all_classes_and_modules</a>
|
95
95
|
</div>
|
96
96
|
</div>
|
97
97
|
|
@@ -113,12 +113,12 @@
|
|
113
113
|
<div id="methods">
|
114
114
|
<h3 class="section-bar">Public Class methods</h3>
|
115
115
|
|
116
|
-
<div id="method-
|
117
|
-
<a name="
|
116
|
+
<div id="method-M000007" class="method-detail">
|
117
|
+
<a name="M000007"></a>
|
118
118
|
|
119
119
|
<div class="method-heading">
|
120
|
-
<a href="TopLevel.src/
|
121
|
-
onclick="popupCode('TopLevel.src/
|
120
|
+
<a href="TopLevel.src/M000007.html" target="Code" class="method-signature"
|
121
|
+
onclick="popupCode('TopLevel.src/M000007.html');return false;">
|
122
122
|
<span class="method-name">all_classes</span><span class="method-args">()</span>
|
123
123
|
</a>
|
124
124
|
</div>
|
@@ -130,12 +130,12 @@ Returns an array of all classes recorded thus far.
|
|
130
130
|
</div>
|
131
131
|
</div>
|
132
132
|
|
133
|
-
<div id="method-
|
134
|
-
<a name="
|
133
|
+
<div id="method-M000009" class="method-detail">
|
134
|
+
<a name="M000009"></a>
|
135
135
|
|
136
136
|
<div class="method-heading">
|
137
|
-
<a href="TopLevel.src/
|
138
|
-
onclick="popupCode('TopLevel.src/
|
137
|
+
<a href="TopLevel.src/M000009.html" target="Code" class="method-signature"
|
138
|
+
onclick="popupCode('TopLevel.src/M000009.html');return false;">
|
139
139
|
<span class="method-name">all_methods</span><span class="method-args">()</span>
|
140
140
|
</a>
|
141
141
|
</div>
|
@@ -148,12 +148,12 @@ representing all methods recorded thus far.
|
|
148
148
|
</div>
|
149
149
|
</div>
|
150
150
|
|
151
|
-
<div id="method-
|
152
|
-
<a name="
|
151
|
+
<div id="method-M000008" class="method-detail">
|
152
|
+
<a name="M000008"></a>
|
153
153
|
|
154
154
|
<div class="method-heading">
|
155
|
-
<a href="TopLevel.src/
|
156
|
-
onclick="popupCode('TopLevel.src/
|
155
|
+
<a href="TopLevel.src/M000008.html" target="Code" class="method-signature"
|
156
|
+
onclick="popupCode('TopLevel.src/M000008.html');return false;">
|
157
157
|
<span class="method-name">all_modules</span><span class="method-args">()</span>
|
158
158
|
</a>
|
159
159
|
</div>
|
@@ -165,12 +165,12 @@ Returns an array of all modules recorded thus far.
|
|
165
165
|
</div>
|
166
166
|
</div>
|
167
167
|
|
168
|
-
<div id="method-
|
169
|
-
<a name="
|
168
|
+
<div id="method-M000011" class="method-detail">
|
169
|
+
<a name="M000011"></a>
|
170
170
|
|
171
171
|
<div class="method-heading">
|
172
|
-
<a href="TopLevel.src/
|
173
|
-
onclick="popupCode('TopLevel.src/
|
172
|
+
<a href="TopLevel.src/M000011.html" target="Code" class="method-signature"
|
173
|
+
onclick="popupCode('TopLevel.src/M000011.html');return false;">
|
174
174
|
<span class="method-name">parse</span><span class="method-args">(aCodeString, aFileName = __FILE__)</span>
|
175
175
|
</a>
|
176
176
|
</div>
|
@@ -191,12 +191,12 @@ it MUST have a ".c" or ".rb" file extension. Otherwise,
|
|
191
191
|
</div>
|
192
192
|
</div>
|
193
193
|
|
194
|
-
<div id="method-
|
195
|
-
<a name="
|
194
|
+
<div id="method-M000012" class="method-detail">
|
195
|
+
<a name="M000012"></a>
|
196
196
|
|
197
197
|
<div class="method-heading">
|
198
|
-
<a href="TopLevel.src/
|
199
|
-
onclick="popupCode('TopLevel.src/
|
198
|
+
<a href="TopLevel.src/M000012.html" target="Code" class="method-signature"
|
199
|
+
onclick="popupCode('TopLevel.src/M000012.html');return false;">
|
200
200
|
<span class="method-name">parse_file</span><span class="method-args">(aFileName)</span>
|
201
201
|
</a>
|
202
202
|
</div>
|
@@ -217,12 +217,12 @@ extension. Otherwise, <a href="../RDoc.html">RDoc</a> will ignore the file!
|
|
217
217
|
</div>
|
218
218
|
</div>
|
219
219
|
|
220
|
-
<div id="method-
|
221
|
-
<a name="
|
220
|
+
<div id="method-M000010" class="method-detail">
|
221
|
+
<a name="M000010"></a>
|
222
222
|
|
223
223
|
<div class="method-heading">
|
224
|
-
<a href="TopLevel.src/
|
225
|
-
onclick="popupCode('TopLevel.src/
|
224
|
+
<a href="TopLevel.src/M000010.html" target="Code" class="method-signature"
|
225
|
+
onclick="popupCode('TopLevel.src/M000010.html');return false;">
|
226
226
|
<span class="method-name">refresh_all_classes_and_modules</span><span class="method-args">()</span>
|
227
227
|
</a>
|
228
228
|
</div>
|
@@ -5,14 +5,14 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>all_classes (RDoc::TopLevel)</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/erbook/rdoc.rb, line
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
15
|
-
<span class="ruby-
|
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
16
|
<span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -5,14 +5,14 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>all_modules (RDoc::TopLevel)</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/erbook/rdoc.rb, line
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">
|
15
|
-
<span class="ruby-
|
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
16
|
<span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -5,14 +5,14 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>all_methods (RDoc::TopLevel)</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/erbook/rdoc.rb, line
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">
|
15
|
-
<span class="ruby-
|
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
16
|
<span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -5,14 +5,25 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>refresh_all_classes_and_modules (RDoc::TopLevel)</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/erbook/rdoc.rb, line
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">
|
15
|
-
<span class="ruby-
|
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>] }
|
16
27
|
<span class="ruby-keyword kw">end</span></pre>
|
17
28
|
</body>
|
18
29
|
</html>
|
@@ -5,14 +5,21 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>parse (RDoc::TopLevel)</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/erbook/rdoc.rb, line
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">
|
15
|
-
<span class="ruby-identifier">
|
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>
|
16
23
|
<span class="ruby-keyword kw">end</span></pre>
|
17
24
|
</body>
|
18
25
|
</html>
|
@@ -5,25 +5,14 @@
|
|
5
5
|
|
6
6
|
<html>
|
7
7
|
<head>
|
8
|
-
<title>
|
8
|
+
<title>parse_file (RDoc::TopLevel)</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/erbook/rdoc.rb, line
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">
|
15
|
-
<span class="ruby-identifier">
|
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>] }
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line 69</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">parse_file</span> <span class="ruby-identifier">aFileName</span>
|
15
|
+
<span class="ruby-identifier">parse</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">aFileName</span>), <span class="ruby-identifier">aFileName</span>
|
27
16
|
<span class="ruby-keyword kw">end</span></pre>
|
28
17
|
</body>
|
29
18
|
</html>
|