erbook 4.0.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. data/README +3 -3
  2. data/Rakefile +6 -3
  3. data/bin/erbook +285 -251
  4. data/doc/README +2 -2
  5. data/doc/api/classes/ERBook.html +2 -2
  6. data/doc/api/classes/RDoc/AnyMethod.html +20 -20
  7. data/doc/api/classes/RDoc/AnyMethod.src/M000003.html +18 -0
  8. data/doc/api/classes/RDoc/AnyMethod.src/M000004.html +23 -0
  9. data/doc/api/classes/RDoc/AnyMethod.src/M000005.html +4 -4
  10. data/doc/api/classes/RDoc/AnyMethod.src/M000006.html +7 -8
  11. data/doc/api/classes/RDoc/TopLevel.html +30 -30
  12. data/doc/api/classes/RDoc/{AnyMethod.src → TopLevel.src}/M000007.html +4 -4
  13. data/doc/api/classes/RDoc/TopLevel.src/{M000014.html → M000008.html} +4 -4
  14. data/doc/api/classes/RDoc/TopLevel.src/M000009.html +4 -4
  15. data/doc/api/classes/RDoc/TopLevel.src/M000010.html +15 -4
  16. data/doc/api/classes/RDoc/TopLevel.src/M000011.html +11 -4
  17. data/doc/api/classes/RDoc/TopLevel.src/M000012.html +4 -15
  18. data/doc/api/classes/String.html +17 -82
  19. data/doc/api/classes/String.src/M000001.html +4 -4
  20. data/doc/api/classes/String.src/M000002.html +3 -6
  21. data/doc/api/created.rid +1 -1
  22. data/doc/api/files/lib/erbook/rdoc_rb.html +1 -1
  23. data/doc/api/files/lib/erbook/{html_rb.html → to_xhtml_rb.html} +7 -7
  24. data/doc/api/files/lib/erbook_rb.html +1 -1
  25. data/doc/api/fr_file_index.html +1 -1
  26. data/doc/api/fr_method_index.html +12 -14
  27. data/doc/api/index.html +1 -1
  28. data/doc/index.xhtml +2277 -0
  29. data/doc/manual.erb +198 -155
  30. data/fmt/xhtml.icons/index.yaml +20 -0
  31. data/fmt/xhtml.icons/mediawiki-1.13.2/COPYING +340 -0
  32. data/fmt/xhtml.icons/mediawiki-1.13.2/README +103 -0
  33. data/fmt/xhtml.icons/mediawiki-1.13.2/skins/simple/external.png +0 -0
  34. data/fmt/xhtml.icons/tango-icon-theme-0.8.1/48x48/README +2 -0
  35. data/fmt/{html.icons/note.png → xhtml.icons/tango-icon-theme-0.8.1/48x48/apps/accessories-text-editor.png} +0 -0
  36. data/fmt/{html.icons/quote.png → xhtml.icons/tango-icon-theme-0.8.1/48x48/apps/internet-group-chat.png} +0 -0
  37. data/fmt/{html.icons/important.png → xhtml.icons/tango-icon-theme-0.8.1/48x48/emblems/emblem-important.png} +0 -0
  38. data/fmt/{html.icons/warning.png → xhtml.icons/tango-icon-theme-0.8.1/48x48/status/dialog-error.png} +0 -0
  39. data/fmt/{html.icons/tip.png → xhtml.icons/tango-icon-theme-0.8.1/48x48/status/dialog-information.png} +0 -0
  40. data/fmt/{html.icons/caution.png → xhtml.icons/tango-icon-theme-0.8.1/48x48/status/dialog-warning.png} +0 -0
  41. data/fmt/{html.icons/LICENSE → xhtml.icons/tango-icon-theme-0.8.1/COPYING} +0 -0
  42. data/fmt/xhtml.icons/tango-icon-theme-0.8.1/README +12 -0
  43. data/fmt/{html.yaml → xhtml.yaml} +305 -247
  44. data/lib/erbook.rb +2 -2
  45. data/lib/erbook/{html.rb → to_xhtml.rb} +18 -24
  46. metadata +42 -21
  47. data/doc/api/classes/RDoc/AnyMethod.src/M000008.html +0 -22
  48. data/doc/api/classes/RDoc/TopLevel.src/M000013.html +0 -25
  49. data/doc/api/classes/String.src/M000003.html +0 -20
  50. data/doc/api/classes/String.src/M000004.html +0 -26
  51. data/doc/index.html +0 -2663
  52. 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 [the "cartoon owl sitting on a book" graphic] [1] that was created
3
- and released into the public domain by [Jens Vierbuchen] [2] on July 7, 2008.
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
@@ -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">'4.0.0'</td>
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-15'</td>
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="#M000007">comment_html</a>&nbsp;&nbsp;
90
- <a href="#M000006">decl</a>&nbsp;&nbsp;
91
- <a href="#M000005">full_name</a>&nbsp;&nbsp;
92
- <a href="#M000008">top_level</a>&nbsp;&nbsp;
89
+ <a href="#M000005">comment_html</a>&nbsp;&nbsp;
90
+ <a href="#M000004">decl</a>&nbsp;&nbsp;
91
+ <a href="#M000003">full_name</a>&nbsp;&nbsp;
92
+ <a href="#M000006">top_level</a>&nbsp;&nbsp;
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-M000007" class="method-detail">
115
- <a name="M000007"></a>
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/M000007.html" target="Code" class="method-signature"
119
- onclick="popupCode('AnyMethod.src/M000007.html');return false;">
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&#8216;s comment.
128
128
  </div>
129
129
  </div>
130
130
 
131
- <div id="method-M000006" class="method-detail">
132
- <a name="M000006"></a>
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/M000006.html" target="Code" class="method-signature"
136
- onclick="popupCode('AnyMethod.src/M000006.html');return false;">
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-M000005" class="method-detail">
149
- <a name="M000005"></a>
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/M000005.html" target="Code" class="method-signature"
153
- onclick="popupCode('AnyMethod.src/M000005.html');return false;">
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-M000008" class="method-detail">
166
- <a name="M000008"></a>
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/M000008.html" target="Code" class="method-signature"
170
- onclick="popupCode('AnyMethod.src/M000008.html');return false;">
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 &quot;# :yields: ...&quot; string</span>
18
+ <span class="ruby-identifier">a</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot; {|#{b}| ... }&quot;</span>
19
+ <span class="ruby-keyword kw">end</span>
20
+ <span class="ruby-identifier">full_name</span> <span class="ruby-operator">&lt;&lt;</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>full_name (RDoc::AnyMethod)</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 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>)
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>decl (RDoc::AnyMethod)</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 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 &quot;# :yields: ...&quot; string</span>
18
- <span class="ruby-identifier">a</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot; {|#{b}| ... }&quot;</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">&amp;&amp;</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">full_name</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">a</span>
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="#M000009">all_classes</a>&nbsp;&nbsp;
90
- <a href="#M000011">all_methods</a>&nbsp;&nbsp;
91
- <a href="#M000010">all_modules</a>&nbsp;&nbsp;
92
- <a href="#M000013">parse</a>&nbsp;&nbsp;
93
- <a href="#M000014">parse_file</a>&nbsp;&nbsp;
94
- <a href="#M000012">refresh_all_classes_and_modules</a>&nbsp;&nbsp;
89
+ <a href="#M000007">all_classes</a>&nbsp;&nbsp;
90
+ <a href="#M000009">all_methods</a>&nbsp;&nbsp;
91
+ <a href="#M000008">all_modules</a>&nbsp;&nbsp;
92
+ <a href="#M000011">parse</a>&nbsp;&nbsp;
93
+ <a href="#M000012">parse_file</a>&nbsp;&nbsp;
94
+ <a href="#M000010">refresh_all_classes_and_modules</a>&nbsp;&nbsp;
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-M000009" class="method-detail">
117
- <a name="M000009"></a>
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/M000009.html" target="Code" class="method-signature"
121
- onclick="popupCode('TopLevel.src/M000009.html');return false;">
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-M000011" class="method-detail">
134
- <a name="M000011"></a>
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/M000011.html" target="Code" class="method-signature"
138
- onclick="popupCode('TopLevel.src/M000011.html');return false;">
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-M000010" class="method-detail">
152
- <a name="M000010"></a>
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/M000010.html" target="Code" class="method-signature"
156
- onclick="popupCode('TopLevel.src/M000010.html');return false;">
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-M000013" class="method-detail">
169
- <a name="M000013"></a>
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/M000013.html" target="Code" class="method-signature"
173
- onclick="popupCode('TopLevel.src/M000013.html');return false;">
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 &quot;.c&quot; or &quot;.rb&quot; file extension. Otherwise,
191
191
  </div>
192
192
  </div>
193
193
 
194
- <div id="method-M000014" class="method-detail">
195
- <a name="M000014"></a>
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/M000014.html" target="Code" class="method-signature"
199
- onclick="popupCode('TopLevel.src/M000014.html');return false;">
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-M000012" class="method-detail">
221
- <a name="M000012"></a>
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/M000012.html" target="Code" class="method-signature"
225
- onclick="popupCode('TopLevel.src/M000012.html');return false;">
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>comment_html (RDoc::AnyMethod)</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 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>
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>parse_file (RDoc::TopLevel)</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 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>
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>all_classes (RDoc::TopLevel)</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 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>
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>all_modules (RDoc::TopLevel)</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 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>
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>all_methods (RDoc::TopLevel)</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 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>
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>refresh_all_classes_and_modules (RDoc::TopLevel)</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 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>] }
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>