erbook 6.1.0 → 7.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/erbook +29 -25
- data/doc/HelloWorld.spec +3 -1
- data/doc/api/classes/ERBook.html +86 -0
- data/doc/api/classes/ERBook/Document.html +399 -0
- data/doc/api/classes/ERBook/Document/Node.html +110 -0
- data/doc/api/classes/ERBook/Template.html +309 -0
- data/doc/api/classes/ERBook/Template/Sandbox.html +134 -0
- data/doc/api/classes/RDoc.html +69 -0
- data/doc/api/classes/RDoc/AnyMethod.html +249 -0
- data/doc/api/classes/RDoc/DummyMarkup.html +60 -0
- data/doc/api/classes/RDoc/DummyMixin.html +54 -0
- data/doc/api/classes/RDoc/DummyOptions.html +60 -0
- data/doc/api/classes/RDoc/TopLevel.html +344 -0
- data/doc/api/classes/String.html +212 -0
- data/doc/api/created.rid +1 -0
- data/doc/api/css/main.css +263 -0
- data/doc/api/css/panel.css +383 -0
- data/doc/api/css/reset.css +53 -0
- data/doc/api/files/ANN_eml.html +276 -0
- data/doc/api/files/ANN_html.html +407 -0
- data/doc/api/files/ANN_txt.html +271 -0
- data/doc/api/files/LICENSE.html +76 -0
- data/doc/api/files/lib/erbook/document_rb.html +74 -0
- data/doc/api/files/lib/erbook/rdoc_rb.html +77 -0
- data/doc/api/files/lib/erbook/template_rb.html +66 -0
- data/doc/api/files/lib/erbook/to_xhtml_rb.html +89 -0
- data/doc/api/files/lib/erbook_rb.html +70 -0
- data/doc/api/i/arrows.png +0 -0
- data/doc/api/i/results_bg.png +0 -0
- data/doc/api/i/tree_bg.png +0 -0
- data/doc/api/index.html +14 -18
- data/doc/api/js/jquery-1.3.2.min.js +19 -0
- data/doc/api/js/jquery-effect.js +593 -0
- data/doc/api/js/main.js +22 -0
- data/doc/api/js/searchdoc.js +605 -0
- data/doc/api/panel/index.html +63 -0
- data/doc/api/panel/search_index.js +1 -0
- data/doc/api/panel/tree.js +1 -0
- data/doc/formats.erb +63 -115
- data/doc/history.erb +125 -92
- data/doc/index.erb +12 -7
- data/doc/index.xhtml +1020 -1347
- data/doc/intro.erb +42 -40
- data/doc/setup.erb +18 -18
- data/doc/theory.erb +24 -31
- data/doc/usage.erb +14 -24
- data/fmt/xhtml.icons/index.yaml +16 -14
- data/fmt/xhtml.icons/rakefile +33 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/16x16/places/start-here.png +0 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/32x32/actions/go-down.png +0 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/32x32/actions/go-up.png +0 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/32x32/places/start-here.png +0 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/32x32/status/software-update-available.png +0 -0
- data/fmt/xhtml.icons/{tango-icon-theme-0.8.1 → tango-icon-theme-0.8.90}/48x48/apps/accessories-text-editor.png +0 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/48x48/apps/internet-group-chat.png +0 -0
- data/fmt/xhtml.icons/{tango-icon-theme-0.8.1 → tango-icon-theme-0.8.90}/48x48/emblems/emblem-important.png +0 -0
- data/fmt/xhtml.icons/{tango-icon-theme-0.8.1 → tango-icon-theme-0.8.90}/48x48/status/dialog-error.png +0 -0
- data/fmt/xhtml.icons/{tango-icon-theme-0.8.1 → tango-icon-theme-0.8.90}/48x48/status/dialog-information.png +0 -0
- data/fmt/xhtml.icons/{tango-icon-theme-0.8.1 → tango-icon-theme-0.8.90}/48x48/status/dialog-warning.png +0 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/COPYING +1 -0
- data/fmt/xhtml.icons/{tango-icon-theme-0.8.1 → tango-icon-theme-0.8.90}/README +0 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/actions/bookmark-new.svg +672 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/actions/go-down.svg +200 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/actions/go-home.svg +445 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/actions/go-up.svg +196 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/actions/view-refresh.svg +393 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/apps/accessories-text-editor.svg +554 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/apps/internet-group-chat.svg +312 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/emblems/emblem-favorite.svg +242 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/emblems/emblem-important.svg +164 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/mimetypes/application-certificate.svg +443 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/places/start-here.svg +492 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/status/dialog-error.svg +330 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/status/dialog-information.svg +1159 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/status/dialog-warning.svg +373 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/status/software-update-available.svg +209 -0
- data/fmt/xhtml.scripts/jquery-1.3.2.min.js +19 -0
- data/fmt/xhtml.scripts/jquery.localscroll-1.2.7-min.js +9 -0
- data/fmt/xhtml.scripts/jquery.scrollTo-1.4.1-min.js +11 -0
- data/fmt/xhtml.yaml +470 -454
- data/lang/de.yaml +5 -5
- data/lang/el.yaml +4 -4
- data/lang/es.yaml +5 -5
- data/lang/fr.yaml +5 -5
- data/lang/it.yaml +5 -5
- data/lang/ja.yaml +4 -4
- data/lang/ko.yaml +4 -4
- data/lang/nl.yaml +4 -4
- data/lang/phrases.yaml +4 -4
- data/lang/pt.yaml +5 -5
- data/lang/ru.yaml +5 -5
- data/lang/zh.yaml +5 -5
- data/lang/zt.yaml +5 -5
- data/lib/erbook.rb +12 -5
- data/lib/erbook/document.rb +127 -107
- data/lib/erbook/rdoc.rb +18 -11
- data/lib/erbook/template.rb +86 -176
- data/lib/erbook/to_xhtml.rb +98 -25
- data/{Rakefile → rakefile} +1 -0
- metadata +106 -53
- data/doc/api/ERBook.html +0 -35
- data/doc/api/ERBook/Document.html +0 -669
- data/doc/api/ERBook/Document/Node.html +0 -102
- data/doc/api/ERBook/Template.html +0 -670
- data/doc/api/RDoc.html +0 -23
- data/doc/api/RDoc/AnyMethod.html +0 -302
- data/doc/api/RDoc/DummyMarkup.html +0 -73
- data/doc/api/RDoc/DummyMixin.html +0 -23
- data/doc/api/RDoc/DummyOptions.html +0 -140
- data/doc/api/RDoc/TopLevel.html +0 -465
- data/doc/api/String.html +0 -372
- data/doc/api/all-methods.html +0 -253
- data/doc/api/all-namespaces.html +0 -42
- data/doc/api/app.js +0 -18
- data/doc/api/jquery.js +0 -11
- data/doc/api/readme.html +0 -38
- data/doc/api/style.css +0 -68
- data/doc/api/syntax_highlight.css +0 -21
- data/fmt/xhtml.icons/tango-icon-theme-0.8.1/48x48/README +0 -2
- data/fmt/xhtml.icons/tango-icon-theme-0.8.1/48x48/apps/internet-group-chat.png +0 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.1/COPYING +0 -67
data/doc/api/RDoc/TopLevel.html
DELETED
@@ -1,465 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
6
|
-
<link rel="stylesheet" href="../style.css" type="text/css" charset="utf-8" />
|
7
|
-
<link rel="stylesheet" href="../syntax_highlight.css" type="text/css" charset="utf-8" />
|
8
|
-
|
9
|
-
<script src="../jquery.js" type="text/javascript" charset="utf-8"></script>
|
10
|
-
<script src="../app.js" type="text/javascript" charset="utf-8"></script>
|
11
|
-
<title>Class: RDoc::TopLevel</title>
|
12
|
-
</head>
|
13
|
-
<body>
|
14
|
-
<div id="content">
|
15
|
-
<div class="section class RDoc_TopLevel">
|
16
|
-
<h1 class="title">Class: RDoc::TopLevel</h1>
|
17
|
-
<div class="section constants">
|
18
|
-
|
19
|
-
</div> <div class="section visibilitygroup public">
|
20
|
-
<h1>Public Visibility</h1>
|
21
|
-
<div class="section methodsummary class public">
|
22
|
-
<h1>Public Class Method Summary</h1>
|
23
|
-
<table class="summary">
|
24
|
-
|
25
|
-
<tr>
|
26
|
-
<th class="signature">
|
27
|
-
<span class='name'><a title="all_classes" href="#all_classes-class_method">all_classes</a></span><span class='args'></span>
|
28
|
-
<span class='block'></span>
|
29
|
-
|
30
|
-
</th>
|
31
|
-
<td class="docstring">
|
32
|
-
<p>
|
33
|
-
Returns an array of all classes recorded thus far.
|
34
|
-
</p>
|
35
|
-
|
36
|
-
|
37
|
-
</td>
|
38
|
-
</tr>
|
39
|
-
|
40
|
-
<tr>
|
41
|
-
<th class="signature">
|
42
|
-
<span class='name'><a title="all_methods" href="#all_methods-class_method">all_methods</a></span><span class='args'></span>
|
43
|
-
<span class='block'></span>
|
44
|
-
|
45
|
-
</th>
|
46
|
-
<td class="docstring">
|
47
|
-
<p>
|
48
|
-
Returns an array of RDoc::AnyMethod objects representing all methods
|
49
|
-
recorded thus far.
|
50
|
-
</p>
|
51
|
-
|
52
|
-
|
53
|
-
</td>
|
54
|
-
</tr>
|
55
|
-
|
56
|
-
<tr>
|
57
|
-
<th class="signature">
|
58
|
-
<span class='name'><a title="all_modules" href="#all_modules-class_method">all_modules</a></span><span class='args'></span>
|
59
|
-
<span class='block'></span>
|
60
|
-
|
61
|
-
</th>
|
62
|
-
<td class="docstring">
|
63
|
-
<p>
|
64
|
-
Returns an array of all modules recorded thus far.
|
65
|
-
</p>
|
66
|
-
|
67
|
-
|
68
|
-
</td>
|
69
|
-
</tr>
|
70
|
-
|
71
|
-
<tr>
|
72
|
-
<th class="signature">
|
73
|
-
<span class='name'><a title="parse" href="#parse-class_method">parse</a></span><span class='args'>(aCodeString, aFileName = )</span>
|
74
|
-
<span class='block'></span>
|
75
|
-
|
76
|
-
</th>
|
77
|
-
<td class="docstring">
|
78
|
-
<p>
|
79
|
-
Returns a RDoc::TopLevel object containing information parsed from the
|
80
|
-
given code string.
|
81
|
-
</p>
|
82
|
-
|
83
|
-
|
84
|
-
</td>
|
85
|
-
</tr>
|
86
|
-
|
87
|
-
<tr>
|
88
|
-
<th class="signature">
|
89
|
-
<span class='name'><a title="parse_file" href="#parse_file-class_method">parse_file</a></span><span class='args'>(aFileName)</span>
|
90
|
-
<span class='block'></span>
|
91
|
-
|
92
|
-
</th>
|
93
|
-
<td class="docstring">
|
94
|
-
<p>
|
95
|
-
Returns a RDoc::TopLevel object containing information parsed from the code
|
96
|
-
in the given file.
|
97
|
-
</p>
|
98
|
-
|
99
|
-
|
100
|
-
</td>
|
101
|
-
</tr>
|
102
|
-
|
103
|
-
<tr>
|
104
|
-
<th class="signature">
|
105
|
-
<span class='name'><a title="refresh_all_classes_and_modules" href="#refresh_all_classes_and_modules-class_method">refresh_all_classes_and_modules</a></span><span class='args'></span>
|
106
|
-
<span class='block'></span>
|
107
|
-
|
108
|
-
</th>
|
109
|
-
<td class="docstring">
|
110
|
-
<p>
|
111
|
-
Update the return value of the all_classes_and_modules() method to
|
112
|
-
<b>really</b> include every class and every module seen thus far.
|
113
|
-
</p>
|
114
|
-
|
115
|
-
|
116
|
-
</td>
|
117
|
-
</tr>
|
118
|
-
|
119
|
-
</table>
|
120
|
-
</div>
|
121
|
-
<div class="section methoddetails class public">
|
122
|
-
<h1>Public Class Method Details</h1>
|
123
|
-
|
124
|
-
<div class="method">
|
125
|
-
<div class="method_header">
|
126
|
-
<h3>all_classes</h3>
|
127
|
-
</div><div id="all_classes-class_method" class="section method">
|
128
|
-
<div class="details_title">
|
129
|
-
<div class='section methodsignature'>
|
130
|
-
<tt class='def'>
|
131
|
-
<span class='visibility'>public</span>
|
132
|
-
<span class='return_types'></span>
|
133
|
-
<span class='name'>all_classes</span><span class='args'></span>
|
134
|
-
<span class='block'></span>
|
135
|
-
</tt>
|
136
|
-
</div>
|
137
|
-
|
138
|
-
</div><div class="section docstring">
|
139
|
-
<p>
|
140
|
-
Returns an array of all classes recorded thus far.
|
141
|
-
</p>
|
142
|
-
|
143
|
-
</div><div class="section source">
|
144
|
-
<span>[<a class="source_link" href="#">View source</a>]</span>
|
145
|
-
<div class="source_code">
|
146
|
-
<table>
|
147
|
-
<tr>
|
148
|
-
<td>
|
149
|
-
<pre class="lines">
|
150
|
-
|
151
|
-
|
152
|
-
8
|
153
|
-
9
|
154
|
-
10</pre>
|
155
|
-
</td>
|
156
|
-
<td>
|
157
|
-
<pre class="code"><span class="info file"># File 'lib/erbook/rdoc.rb', line 8</span>
|
158
|
-
|
159
|
-
<span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='all_classes identifier id'>all_classes</span>
|
160
|
-
<span class='@@all_classes ivar id'>@@all_classes</span><span class='dot token'>.</span><span class='values identifier id'>values</span>
|
161
|
-
<span class='end end kw'>end</span>
|
162
|
-
</pre>
|
163
|
-
</td>
|
164
|
-
</tr>
|
165
|
-
</table>
|
166
|
-
</div>
|
167
|
-
</div>
|
168
|
-
</div>
|
169
|
-
</div>
|
170
|
-
|
171
|
-
<div class="method">
|
172
|
-
<div class="method_header">
|
173
|
-
<h3>all_methods</h3>
|
174
|
-
</div><div id="all_methods-class_method" class="section method">
|
175
|
-
<div class="details_title">
|
176
|
-
<div class='section methodsignature'>
|
177
|
-
<tt class='def'>
|
178
|
-
<span class='visibility'>public</span>
|
179
|
-
<span class='return_types'></span>
|
180
|
-
<span class='name'>all_methods</span><span class='args'></span>
|
181
|
-
<span class='block'></span>
|
182
|
-
</tt>
|
183
|
-
</div>
|
184
|
-
|
185
|
-
</div><div class="section docstring">
|
186
|
-
<p>
|
187
|
-
Returns an array of RDoc::AnyMethod objects representing all methods
|
188
|
-
recorded thus far.
|
189
|
-
</p>
|
190
|
-
|
191
|
-
</div><div class="section source">
|
192
|
-
<span>[<a class="source_link" href="#">View source</a>]</span>
|
193
|
-
<div class="source_code">
|
194
|
-
<table>
|
195
|
-
<tr>
|
196
|
-
<td>
|
197
|
-
<pre class="lines">
|
198
|
-
|
199
|
-
|
200
|
-
19
|
201
|
-
20
|
202
|
-
21</pre>
|
203
|
-
</td>
|
204
|
-
<td>
|
205
|
-
<pre class="code"><span class="info file"># File 'lib/erbook/rdoc.rb', line 19</span>
|
206
|
-
|
207
|
-
<span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='all_methods identifier id'>all_methods</span>
|
208
|
-
<span class='all_classes_and_modules identifier id'>all_classes_and_modules</span><span class='dot token'>.</span><span class='map identifier id'>map</span> <span class='lbrace token'>{</span><span class='bitor op'>|</span><span class='c identifier id'>c</span><span class='bitor op'>|</span> <span class='c identifier id'>c</span><span class='dot token'>.</span><span class='method_list identifier id'>method_list</span> <span class='rbrace token'>}</span><span class='dot token'>.</span><span class='flatten identifier id'>flatten</span>
|
209
|
-
<span class='end end kw'>end</span>
|
210
|
-
</pre>
|
211
|
-
</td>
|
212
|
-
</tr>
|
213
|
-
</table>
|
214
|
-
</div>
|
215
|
-
</div>
|
216
|
-
</div>
|
217
|
-
</div>
|
218
|
-
|
219
|
-
<div class="method">
|
220
|
-
<div class="method_header">
|
221
|
-
<h3>all_modules</h3>
|
222
|
-
</div><div id="all_modules-class_method" class="section method">
|
223
|
-
<div class="details_title">
|
224
|
-
<div class='section methodsignature'>
|
225
|
-
<tt class='def'>
|
226
|
-
<span class='visibility'>public</span>
|
227
|
-
<span class='return_types'></span>
|
228
|
-
<span class='name'>all_modules</span><span class='args'></span>
|
229
|
-
<span class='block'></span>
|
230
|
-
</tt>
|
231
|
-
</div>
|
232
|
-
|
233
|
-
</div><div class="section docstring">
|
234
|
-
<p>
|
235
|
-
Returns an array of all modules recorded thus far.
|
236
|
-
</p>
|
237
|
-
|
238
|
-
</div><div class="section source">
|
239
|
-
<span>[<a class="source_link" href="#">View source</a>]</span>
|
240
|
-
<div class="source_code">
|
241
|
-
<table>
|
242
|
-
<tr>
|
243
|
-
<td>
|
244
|
-
<pre class="lines">
|
245
|
-
|
246
|
-
|
247
|
-
13
|
248
|
-
14
|
249
|
-
15</pre>
|
250
|
-
</td>
|
251
|
-
<td>
|
252
|
-
<pre class="code"><span class="info file"># File 'lib/erbook/rdoc.rb', line 13</span>
|
253
|
-
|
254
|
-
<span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='all_modules identifier id'>all_modules</span>
|
255
|
-
<span class='@@all_modules ivar id'>@@all_modules</span><span class='dot token'>.</span><span class='values identifier id'>values</span>
|
256
|
-
<span class='end end kw'>end</span>
|
257
|
-
</pre>
|
258
|
-
</td>
|
259
|
-
</tr>
|
260
|
-
</table>
|
261
|
-
</div>
|
262
|
-
</div>
|
263
|
-
</div>
|
264
|
-
</div>
|
265
|
-
|
266
|
-
<div class="method">
|
267
|
-
<div class="method_header">
|
268
|
-
<h3>parse</h3>
|
269
|
-
</div><div id="parse-class_method" class="section method">
|
270
|
-
<div class="details_title">
|
271
|
-
<div class='section methodsignature'>
|
272
|
-
<tt class='def'>
|
273
|
-
<span class='visibility'>public</span>
|
274
|
-
<span class='return_types'></span>
|
275
|
-
<span class='name'>parse</span><span class='args'>(aCodeString, aFileName = )</span>
|
276
|
-
<span class='block'></span>
|
277
|
-
</tt>
|
278
|
-
</div>
|
279
|
-
|
280
|
-
</div><div class="section docstring">
|
281
|
-
<p>
|
282
|
-
Returns a RDoc::TopLevel object containing information parsed from the
|
283
|
-
given code string. This information is also added to the global TopLevel
|
284
|
-
class state, so you can access it via the class methods of the TopLevel
|
285
|
-
class.
|
286
|
-
</p>
|
287
|
-
<p>
|
288
|
-
If the file name (which signifies the origin of the given code) is given,
|
289
|
-
it MUST have a ".c" or ".rb" file extension. Otherwise,
|
290
|
-
RDoc will ignore the given code string! :-(
|
291
|
-
</p>
|
292
|
-
|
293
|
-
</div><div class="section source">
|
294
|
-
<span>[<a class="source_link" href="#">View source</a>]</span>
|
295
|
-
<div class="source_code">
|
296
|
-
<table>
|
297
|
-
<tr>
|
298
|
-
<td>
|
299
|
-
<pre class="lines">
|
300
|
-
|
301
|
-
|
302
|
-
50
|
303
|
-
51
|
304
|
-
52
|
305
|
-
53
|
306
|
-
54
|
307
|
-
55
|
308
|
-
56
|
309
|
-
57
|
310
|
-
58
|
311
|
-
59</pre>
|
312
|
-
</td>
|
313
|
-
<td>
|
314
|
-
<pre class="code"><span class="info file"># File 'lib/erbook/rdoc.rb', line 50</span>
|
315
|
-
|
316
|
-
<span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='parse identifier id'>parse</span> <span class='aCodeString identifier id'>aCodeString</span><span class='comma token'>,</span> <span class='aFileName identifier id'>aFileName</span> <span class='assign token'>=</span> <span class='__FILE__ __file__ kw'>__FILE__</span>
|
317
|
-
<span class='top identifier id'>top</span> <span class='assign token'>=</span> <span class='ParserFactory constant id'>ParserFactory</span><span class='dot token'>.</span><span class='parser_for identifier id'>parser_for</span><span class='lparen token'>(</span>
|
318
|
-
<span class='TopLevel constant id'>TopLevel</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='aFileName identifier id'>aFileName</span><span class='rparen token'>)</span><span class='comma token'>,</span> <span class='aFileName identifier id'>aFileName</span><span class='comma token'>,</span>
|
319
|
-
<span class='aCodeString identifier id'>aCodeString</span><span class='comma token'>,</span> <span class='DummyOptions constant id'>DummyOptions</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='comma token'>,</span> <span class='Stats constant id'>Stats</span><span class='dot token'>.</span><span class='new identifier id'>new</span>
|
320
|
-
<span class='rparen token'>)</span><span class='dot token'>.</span><span class='scan identifier id'>scan</span>
|
321
|
-
|
322
|
-
<span class='refresh_all_classes_and_modules identifier id'>refresh_all_classes_and_modules</span>
|
323
|
-
|
324
|
-
<span class='top identifier id'>top</span>
|
325
|
-
<span class='end end kw'>end</span>
|
326
|
-
</pre>
|
327
|
-
</td>
|
328
|
-
</tr>
|
329
|
-
</table>
|
330
|
-
</div>
|
331
|
-
</div>
|
332
|
-
</div>
|
333
|
-
</div>
|
334
|
-
|
335
|
-
<div class="method">
|
336
|
-
<div class="method_header">
|
337
|
-
<h3>parse_file</h3>
|
338
|
-
</div><div id="parse_file-class_method" class="section method">
|
339
|
-
<div class="details_title">
|
340
|
-
<div class='section methodsignature'>
|
341
|
-
<tt class='def'>
|
342
|
-
<span class='visibility'>public</span>
|
343
|
-
<span class='return_types'></span>
|
344
|
-
<span class='name'>parse_file</span><span class='args'>(aFileName)</span>
|
345
|
-
<span class='block'></span>
|
346
|
-
</tt>
|
347
|
-
</div>
|
348
|
-
|
349
|
-
</div><div class="section docstring">
|
350
|
-
<p>
|
351
|
-
Returns a RDoc::TopLevel object containing information parsed from the code
|
352
|
-
in the given file. This information is also added to the global TopLevel
|
353
|
-
class state, so you can access it via the class methods of the TopLevel
|
354
|
-
class.
|
355
|
-
</p>
|
356
|
-
<p>
|
357
|
-
The given file name MUST have a ".c" or ".rb" file
|
358
|
-
extension. Otherwise, RDoc will ignore the file! :-(
|
359
|
-
</p>
|
360
|
-
|
361
|
-
</div><div class="section source">
|
362
|
-
<span>[<a class="source_link" href="#">View source</a>]</span>
|
363
|
-
<div class="source_code">
|
364
|
-
<table>
|
365
|
-
<tr>
|
366
|
-
<td>
|
367
|
-
<pre class="lines">
|
368
|
-
|
369
|
-
|
370
|
-
69
|
371
|
-
70
|
372
|
-
71</pre>
|
373
|
-
</td>
|
374
|
-
<td>
|
375
|
-
<pre class="code"><span class="info file"># File 'lib/erbook/rdoc.rb', line 69</span>
|
376
|
-
|
377
|
-
<span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='parse_file identifier id'>parse_file</span> <span class='aFileName identifier id'>aFileName</span>
|
378
|
-
<span class='parse identifier id'>parse</span> <span class='File constant id'>File</span><span class='dot token'>.</span><span class='read identifier id'>read</span><span class='lparen token'>(</span><span class='aFileName identifier id'>aFileName</span><span class='rparen token'>)</span><span class='comma token'>,</span> <span class='aFileName identifier id'>aFileName</span>
|
379
|
-
<span class='end end kw'>end</span>
|
380
|
-
</pre>
|
381
|
-
</td>
|
382
|
-
</tr>
|
383
|
-
</table>
|
384
|
-
</div>
|
385
|
-
</div>
|
386
|
-
</div>
|
387
|
-
</div>
|
388
|
-
|
389
|
-
<div class="method">
|
390
|
-
<div class="method_header">
|
391
|
-
<h3>refresh_all_classes_and_modules</h3>
|
392
|
-
</div><div id="refresh_all_classes_and_modules-class_method" class="section method">
|
393
|
-
<div class="details_title">
|
394
|
-
<div class='section methodsignature'>
|
395
|
-
<tt class='def'>
|
396
|
-
<span class='visibility'>public</span>
|
397
|
-
<span class='return_types'></span>
|
398
|
-
<span class='name'>refresh_all_classes_and_modules</span><span class='args'></span>
|
399
|
-
<span class='block'></span>
|
400
|
-
</tt>
|
401
|
-
</div>
|
402
|
-
|
403
|
-
</div><div class="section docstring">
|
404
|
-
<p>
|
405
|
-
Update the return value of the all_classes_and_modules() method to
|
406
|
-
<b>really</b> include every class and every module seen thus far.
|
407
|
-
</p>
|
408
|
-
|
409
|
-
</div><div class="section source">
|
410
|
-
<span>[<a class="source_link" href="#">View source</a>]</span>
|
411
|
-
<div class="source_code">
|
412
|
-
<table>
|
413
|
-
<tr>
|
414
|
-
<td>
|
415
|
-
<pre class="lines">
|
416
|
-
|
417
|
-
|
418
|
-
25
|
419
|
-
26
|
420
|
-
27
|
421
|
-
28
|
422
|
-
29
|
423
|
-
30
|
424
|
-
31
|
425
|
-
32
|
426
|
-
33
|
427
|
-
34
|
428
|
-
35
|
429
|
-
36
|
430
|
-
37
|
431
|
-
38</pre>
|
432
|
-
</td>
|
433
|
-
<td>
|
434
|
-
<pre class="code"><span class="info file"># File 'lib/erbook/rdoc.rb', line 25</span>
|
435
|
-
|
436
|
-
<span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='refresh_all_classes_and_modules identifier id'>refresh_all_classes_and_modules</span>
|
437
|
-
<span class='visit identifier id'>visit</span> <span class='assign token'>=</span> <span class='lambda identifier id'>lambda</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='node identifier id'>node</span><span class='bitor op'>|</span>
|
438
|
-
<span class='if if kw'>if</span> <span class='node identifier id'>node</span><span class='dot token'>.</span><span class='is_a? fid id'>is_a?</span> <span class='NormalClass constant id'>NormalClass</span> <span class='or or kw'>or</span> <span class='node identifier id'>node</span><span class='dot token'>.</span><span class='is_a? fid id'>is_a?</span> <span class='SingleClass constant id'>SingleClass</span>
|
439
|
-
<span class='@@all_classes ivar id'>@@all_classes</span><span class='lbrack token'>[</span><span class='node identifier id'>node</span><span class='dot token'>.</span><span class='full_name identifier id'>full_name</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='node identifier id'>node</span>
|
440
|
-
|
441
|
-
<span class='elsif elsif kw'>elsif</span> <span class='node identifier id'>node</span><span class='dot token'>.</span><span class='is_a? fid id'>is_a?</span> <span class='NormalModule constant id'>NormalModule</span>
|
442
|
-
<span class='@@all_modules ivar id'>@@all_modules</span><span class='lbrack token'>[</span><span class='node identifier id'>node</span><span class='dot token'>.</span><span class='full_name identifier id'>full_name</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='node identifier id'>node</span>
|
443
|
-
<span class='end end kw'>end</span>
|
444
|
-
|
445
|
-
<span class='lparen token'>(</span><span class='node identifier id'>node</span><span class='dot token'>.</span><span class='classes identifier id'>classes</span> <span class='plus op'>+</span> <span class='node identifier id'>node</span><span class='dot token'>.</span><span class='modules identifier id'>modules</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='lbrace token'>{</span><span class='bitor op'>|</span><span class='n identifier id'>n</span><span class='bitor op'>|</span> <span class='visit identifier id'>visit</span><span class='lbrack token'>[</span><span class='n identifier id'>n</span><span class='rbrack token'>]</span> <span class='rbrace token'>}</span>
|
446
|
-
<span class='end end kw'>end</span>
|
447
|
-
|
448
|
-
<span class='all_classes_and_modules identifier id'>all_classes_and_modules</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='lbrace token'>{</span><span class='bitor op'>|</span><span class='n identifier id'>n</span><span class='bitor op'>|</span> <span class='visit identifier id'>visit</span><span class='lbrack token'>[</span><span class='n identifier id'>n</span><span class='rbrack token'>]</span> <span class='rbrace token'>}</span>
|
449
|
-
<span class='end end kw'>end</span>
|
450
|
-
</pre>
|
451
|
-
</td>
|
452
|
-
</tr>
|
453
|
-
</table>
|
454
|
-
</div>
|
455
|
-
</div>
|
456
|
-
</div>
|
457
|
-
</div>
|
458
|
-
|
459
|
-
</div>
|
460
|
-
</div>
|
461
|
-
|
462
|
-
</div>
|
463
|
-
</div>
|
464
|
-
</body>
|
465
|
-
</html>
|