erbook 7.0.0 → 7.1.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.
- data/CREDITS +3 -0
- data/bin/erbook +2 -2
- data/doc/HelloWorld.input +1 -1
- data/doc/api/classes/ERBook/Document.html +153 -150
- data/doc/api/classes/ERBook/Document/Node.html +7 -7
- data/doc/api/classes/ERBook/Template.html +24 -24
- data/doc/api/classes/ERBook/Template/Sandbox.html +6 -6
- data/doc/api/classes/RDoc/AnyMethod.html +32 -28
- data/doc/api/classes/RDoc/TopLevel.html +47 -47
- data/doc/api/classes/String.html +14 -14
- data/doc/api/created.rid +1 -1
- data/doc/api/files/CREDITS.html +68 -0
- data/doc/api/files/lib/erbook/document_rb.html +1 -3
- data/doc/api/files/lib/erbook/rdoc_rb.html +1 -1
- data/doc/api/files/lib/erbook/template_rb.html +1 -1
- data/doc/api/files/lib/erbook/to_xhtml_rb.html +3 -3
- data/doc/api/files/lib/erbook_rb.html +3 -1
- data/doc/api/panel/search_index.js +1 -1
- data/doc/api/panel/tree.js +1 -1
- data/doc/formats.erb +129 -8
- data/doc/history.erb +136 -2
- data/doc/index.erb +2 -2
- data/doc/index.xhtml +1867 -610
- data/doc/intro.erb +29 -13
- data/doc/setup.erb +9 -2
- data/doc/theory.erb +24 -3
- data/doc/usage.erb +11 -2
- data/fmt/xhtml.yaml +913 -707
- data/fmt/{xhtml.icons → xhtml/icons}/index.yaml +2 -2
- data/fmt/{xhtml.icons → xhtml/icons}/mediawiki-1.13.2/COPYING +0 -0
- data/fmt/{xhtml.icons → xhtml/icons}/mediawiki-1.13.2/README +0 -0
- data/fmt/{xhtml.icons → xhtml/icons}/mediawiki-1.13.2/skins/simple/external.png +0 -0
- data/fmt/{xhtml.icons → xhtml/icons}/rakefile +4 -6
- data/fmt/{xhtml.icons → 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-next.png +0 -0
- data/fmt/xhtml/icons/tango-icon-theme-0.8.90/32x32/actions/go-previous.png +0 -0
- data/fmt/{xhtml.icons → xhtml/icons}/tango-icon-theme-0.8.90/32x32/places/start-here.png +0 -0
- data/fmt/{xhtml.icons → xhtml/icons}/tango-icon-theme-0.8.90/32x32/status/software-update-available.png +0 -0
- data/fmt/{xhtml.icons → xhtml/icons}/tango-icon-theme-0.8.90/48x48/apps/accessories-text-editor.png +0 -0
- data/fmt/{xhtml.icons → xhtml/icons}/tango-icon-theme-0.8.90/48x48/apps/internet-group-chat.png +0 -0
- data/fmt/{xhtml.icons → xhtml/icons}/tango-icon-theme-0.8.90/48x48/emblems/emblem-important.png +0 -0
- data/fmt/{xhtml.icons → xhtml/icons}/tango-icon-theme-0.8.90/48x48/status/dialog-error.png +0 -0
- data/fmt/{xhtml.icons → xhtml/icons}/tango-icon-theme-0.8.90/48x48/status/dialog-information.png +0 -0
- data/fmt/{xhtml.icons → xhtml/icons}/tango-icon-theme-0.8.90/48x48/status/dialog-warning.png +0 -0
- data/fmt/{xhtml.icons → xhtml/icons}/tango-icon-theme-0.8.90/COPYING +0 -0
- data/fmt/{xhtml.icons → xhtml/icons}/tango-icon-theme-0.8.90/README +0 -0
- data/fmt/{xhtml.icons → xhtml/icons}/tango-icon-theme-0.8.90/scalable/actions/bookmark-new.svg +0 -0
- data/fmt/{xhtml.icons → xhtml/icons}/tango-icon-theme-0.8.90/scalable/actions/go-home.svg +0 -0
- data/fmt/xhtml/icons/tango-icon-theme-0.8.90/scalable/actions/go-next.svg +191 -0
- data/fmt/xhtml/icons/tango-icon-theme-0.8.90/scalable/actions/go-previous.svg +852 -0
- data/fmt/{xhtml.icons → xhtml/icons}/tango-icon-theme-0.8.90/scalable/actions/view-refresh.svg +0 -0
- data/fmt/{xhtml.icons → xhtml/icons}/tango-icon-theme-0.8.90/scalable/apps/accessories-text-editor.svg +0 -0
- data/fmt/{xhtml.icons → xhtml/icons}/tango-icon-theme-0.8.90/scalable/apps/internet-group-chat.svg +0 -0
- data/fmt/{xhtml.icons → xhtml/icons}/tango-icon-theme-0.8.90/scalable/emblems/emblem-favorite.svg +0 -0
- data/fmt/{xhtml.icons → xhtml/icons}/tango-icon-theme-0.8.90/scalable/emblems/emblem-important.svg +0 -0
- data/fmt/{xhtml.icons → xhtml/icons}/tango-icon-theme-0.8.90/scalable/mimetypes/application-certificate.svg +0 -0
- data/fmt/{xhtml.icons → xhtml/icons}/tango-icon-theme-0.8.90/scalable/places/start-here.svg +0 -0
- data/fmt/{xhtml.icons → xhtml/icons}/tango-icon-theme-0.8.90/scalable/status/dialog-error.svg +0 -0
- data/fmt/{xhtml.icons → xhtml/icons}/tango-icon-theme-0.8.90/scalable/status/dialog-information.svg +0 -0
- data/fmt/{xhtml.icons → xhtml/icons}/tango-icon-theme-0.8.90/scalable/status/dialog-warning.svg +0 -0
- data/fmt/{xhtml.icons → xhtml/icons}/tango-icon-theme-0.8.90/scalable/status/software-update-available.svg +0 -0
- data/fmt/xhtml/jquery/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/fmt/xhtml/jquery/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/fmt/xhtml/jquery/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/fmt/xhtml/jquery/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/fmt/xhtml/jquery/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/fmt/xhtml/jquery/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/fmt/xhtml/jquery/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/fmt/xhtml/jquery/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/fmt/xhtml/jquery/images/ui-icons_222222_256x240.png +0 -0
- data/fmt/xhtml/jquery/images/ui-icons_2e83ff_256x240.png +0 -0
- data/fmt/xhtml/jquery/images/ui-icons_454545_256x240.png +0 -0
- data/fmt/xhtml/jquery/images/ui-icons_888888_256x240.png +0 -0
- data/fmt/xhtml/jquery/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/fmt/{xhtml.scripts → xhtml/jquery}/jquery-1.3.2.min.js +0 -0
- data/fmt/xhtml/jquery/jquery-ui-1.7.2.custom.css +406 -0
- data/fmt/xhtml/jquery/jquery-ui-1.7.2.custom.min.js +43 -0
- data/lang/de.yaml +13 -2
- data/lang/el.yaml +13 -2
- data/lang/es.yaml +13 -2
- data/lang/fr.yaml +13 -2
- data/lang/it.yaml +13 -2
- data/lang/ja.yaml +13 -2
- data/lang/ko.yaml +13 -2
- data/lang/nl.yaml +13 -2
- data/lang/phrases.yaml +15 -4
- data/lang/pt.yaml +13 -2
- data/lang/ru.yaml +13 -2
- data/lang/zh.yaml +13 -2
- data/lang/zt.yaml +13 -2
- data/lib/erbook.rb +10 -8
- data/lib/erbook/document.rb +144 -139
- data/lib/erbook/rdoc.rb +29 -7
- data/lib/erbook/template.rb +2 -2
- data/lib/erbook/to_xhtml.rb +6 -2
- metadata +78 -45
- data/doc/api/files/ANN_eml.html +0 -276
- data/doc/api/files/ANN_html.html +0 -407
- data/doc/api/files/ANN_txt.html +0 -271
- 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/scalable/actions/go-down.svg +0 -200
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/actions/go-up.svg +0 -196
- data/fmt/xhtml.scripts/jquery.localscroll-1.2.7-min.js +0 -9
- data/fmt/xhtml.scripts/jquery.scrollTo-1.4.1-min.js +0 -11
|
@@ -56,7 +56,7 @@ Environment for template evaluation.
|
|
|
56
56
|
<dd>
|
|
57
57
|
<ul>
|
|
58
58
|
|
|
59
|
-
<li><a href="#
|
|
59
|
+
<li><a href="#M000045">__block_content__</a></li>
|
|
60
60
|
|
|
61
61
|
</ul>
|
|
62
62
|
</dd>
|
|
@@ -78,9 +78,9 @@ Environment for template evaluation.
|
|
|
78
78
|
<div class="sectiontitle">Instance Public methods</div>
|
|
79
79
|
|
|
80
80
|
<div class="method">
|
|
81
|
-
<div class="title" id="
|
|
81
|
+
<div class="title" id="M000045">
|
|
82
82
|
|
|
83
|
-
<a name="
|
|
83
|
+
<a name="M000045"></a><b>__block_content__</b>(*block_args)
|
|
84
84
|
|
|
85
85
|
</div>
|
|
86
86
|
|
|
@@ -98,12 +98,12 @@ returns the result of invoking the given block inside an array.
|
|
|
98
98
|
|
|
99
99
|
<div class="sourcecode">
|
|
100
100
|
<p class="source-link">
|
|
101
|
-
Source: <a href="javascript:toggleSource('
|
|
101
|
+
Source: <a href="javascript:toggleSource('M000045_source')" id="l_M000045_source">show</a>
|
|
102
102
|
|
|
103
|
-
| <a href="http://github.com/sunaku/erbook/blob/
|
|
103
|
+
| <a href="http://github.com/sunaku/erbook/blob/2b6f0dba66f674e479ef2cdeb7530389bf2af169/lib/erbook/template.rb#L100" target="_blank" class="github_url">on GitHub</a>
|
|
104
104
|
|
|
105
105
|
</p>
|
|
106
|
-
<div id="
|
|
106
|
+
<div id="M000045_source" class="dyn-source">
|
|
107
107
|
<pre><span class="ruby-comment cmt"># File lib/erbook/template.rb, line 100</span>
|
|
108
108
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">__block_content__</span> <span class="ruby-operator">*</span><span class="ruby-identifier">block_args</span>
|
|
109
109
|
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">'block must be given'</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">block_given?</span>
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
<dd>
|
|
50
50
|
<ul>
|
|
51
51
|
|
|
52
|
-
<li><a href="#
|
|
52
|
+
<li><a href="#M000059">comment_html</a></li>
|
|
53
53
|
|
|
54
54
|
</ul>
|
|
55
55
|
</dd>
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
<dd>
|
|
59
59
|
<ul>
|
|
60
60
|
|
|
61
|
-
<li><a href="#
|
|
61
|
+
<li><a href="#M000058">decl</a></li>
|
|
62
62
|
|
|
63
63
|
</ul>
|
|
64
64
|
</dd>
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
<dd>
|
|
68
68
|
<ul>
|
|
69
69
|
|
|
70
|
-
<li><a href="#
|
|
70
|
+
<li><a href="#M000057">full_name</a></li>
|
|
71
71
|
|
|
72
72
|
</ul>
|
|
73
73
|
</dd>
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
<dd>
|
|
77
77
|
<ul>
|
|
78
78
|
|
|
79
|
-
<li><a href="#
|
|
79
|
+
<li><a href="#M000060">top_level</a></li>
|
|
80
80
|
|
|
81
81
|
</ul>
|
|
82
82
|
</dd>
|
|
@@ -98,9 +98,9 @@
|
|
|
98
98
|
<div class="sectiontitle">Instance Public methods</div>
|
|
99
99
|
|
|
100
100
|
<div class="method">
|
|
101
|
-
<div class="title" id="
|
|
101
|
+
<div class="title" id="M000059">
|
|
102
102
|
|
|
103
|
-
<a name="
|
|
103
|
+
<a name="M000059"></a><b>comment_html</b>()
|
|
104
104
|
|
|
105
105
|
</div>
|
|
106
106
|
|
|
@@ -116,13 +116,13 @@ Returns a HTML version of this method’s comment.
|
|
|
116
116
|
|
|
117
117
|
<div class="sourcecode">
|
|
118
118
|
<p class="source-link">
|
|
119
|
-
Source: <a href="javascript:toggleSource('
|
|
119
|
+
Source: <a href="javascript:toggleSource('M000059_source')" id="l_M000059_source">show</a>
|
|
120
120
|
|
|
121
|
-
| <a href="http://github.com/sunaku/erbook/blob/
|
|
121
|
+
| <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/rdoc.rb#L116" target="_blank" class="github_url">on GitHub</a>
|
|
122
122
|
|
|
123
123
|
</p>
|
|
124
|
-
<div id="
|
|
125
|
-
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line
|
|
124
|
+
<div id="M000059_source" class="dyn-source">
|
|
125
|
+
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line 116</span>
|
|
126
126
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">comment_html</span>
|
|
127
127
|
<span class="ruby-constant">DummyMarkup</span>.<span class="ruby-identifier">new</span>.<span class="ruby-identifier">markup</span> <span class="ruby-identifier">comment</span>
|
|
128
128
|
<span class="ruby-keyword kw">end</span></pre>
|
|
@@ -132,9 +132,9 @@ Returns a HTML version of this method’s comment.
|
|
|
132
132
|
</div>
|
|
133
133
|
|
|
134
134
|
<div class="method">
|
|
135
|
-
<div class="title" id="
|
|
135
|
+
<div class="title" id="M000058">
|
|
136
136
|
|
|
137
|
-
<a name="
|
|
137
|
+
<a name="M000058"></a><b>decl</b>()
|
|
138
138
|
|
|
139
139
|
</div>
|
|
140
140
|
|
|
@@ -150,19 +150,21 @@ Returns a complete method declaration with block parameters and all.
|
|
|
150
150
|
|
|
151
151
|
<div class="sourcecode">
|
|
152
152
|
<p class="source-link">
|
|
153
|
-
Source: <a href="javascript:toggleSource('
|
|
153
|
+
Source: <a href="javascript:toggleSource('M000058_source')" id="l_M000058_source">show</a>
|
|
154
154
|
|
|
155
|
-
| <a href="http://github.com/sunaku/erbook/blob/
|
|
155
|
+
| <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/rdoc.rb#L102" target="_blank" class="github_url">on GitHub</a>
|
|
156
156
|
|
|
157
157
|
</p>
|
|
158
|
-
<div id="
|
|
159
|
-
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line
|
|
158
|
+
<div id="M000058_source" class="dyn-source">
|
|
159
|
+
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line 102</span>
|
|
160
160
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">decl</span>
|
|
161
161
|
<span class="ruby-identifier">a</span> = <span class="ruby-identifier">params</span>.<span class="ruby-identifier">dup</span>
|
|
162
|
+
|
|
162
163
|
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">b</span> = <span class="ruby-identifier">block_params</span>
|
|
163
164
|
<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>
|
|
164
165
|
<span class="ruby-identifier">a</span> <span class="ruby-operator"><<</span> <span class="ruby-node">" {|#{b}| ... }"</span>
|
|
165
166
|
<span class="ruby-keyword kw">end</span>
|
|
167
|
+
|
|
166
168
|
<span class="ruby-identifier">full_name</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">a</span>
|
|
167
169
|
<span class="ruby-keyword kw">end</span></pre>
|
|
168
170
|
</div>
|
|
@@ -171,9 +173,9 @@ Returns a complete method declaration with block parameters and all.
|
|
|
171
173
|
</div>
|
|
172
174
|
|
|
173
175
|
<div class="method">
|
|
174
|
-
<div class="title" id="
|
|
176
|
+
<div class="title" id="M000057">
|
|
175
177
|
|
|
176
|
-
<a name="
|
|
178
|
+
<a name="M000057"></a><b>full_name</b>()
|
|
177
179
|
|
|
178
180
|
</div>
|
|
179
181
|
|
|
@@ -189,13 +191,13 @@ Returns the fully qualified name of this method.
|
|
|
189
191
|
|
|
190
192
|
<div class="sourcecode">
|
|
191
193
|
<p class="source-link">
|
|
192
|
-
Source: <a href="javascript:toggleSource('
|
|
194
|
+
Source: <a href="javascript:toggleSource('M000057_source')" id="l_M000057_source">show</a>
|
|
193
195
|
|
|
194
|
-
| <a href="http://github.com/sunaku/erbook/blob/
|
|
196
|
+
| <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/rdoc.rb#L95" target="_blank" class="github_url">on GitHub</a>
|
|
195
197
|
|
|
196
198
|
</p>
|
|
197
|
-
<div id="
|
|
198
|
-
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line
|
|
199
|
+
<div id="M000057_source" class="dyn-source">
|
|
200
|
+
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line 95</span>
|
|
199
201
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">full_name</span>
|
|
200
202
|
[<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>)
|
|
201
203
|
<span class="ruby-keyword kw">end</span></pre>
|
|
@@ -205,9 +207,9 @@ Returns the fully qualified name of this method.
|
|
|
205
207
|
</div>
|
|
206
208
|
|
|
207
209
|
<div class="method">
|
|
208
|
-
<div class="title" id="
|
|
210
|
+
<div class="title" id="M000060">
|
|
209
211
|
|
|
210
|
-
<a name="
|
|
212
|
+
<a name="M000060"></a><b>top_level</b>()
|
|
211
213
|
|
|
212
214
|
</div>
|
|
213
215
|
|
|
@@ -224,18 +226,20 @@ contains this method.
|
|
|
224
226
|
|
|
225
227
|
<div class="sourcecode">
|
|
226
228
|
<p class="source-link">
|
|
227
|
-
Source: <a href="javascript:toggleSource('
|
|
229
|
+
Source: <a href="javascript:toggleSource('M000060_source')" id="l_M000060_source">show</a>
|
|
228
230
|
|
|
229
|
-
| <a href="http://github.com/sunaku/erbook/blob/
|
|
231
|
+
| <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/rdoc.rb#L123" target="_blank" class="github_url">on GitHub</a>
|
|
230
232
|
|
|
231
233
|
</p>
|
|
232
|
-
<div id="
|
|
233
|
-
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line
|
|
234
|
+
<div id="M000060_source" class="dyn-source">
|
|
235
|
+
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line 123</span>
|
|
234
236
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">top_level</span>
|
|
235
237
|
<span class="ruby-identifier">n</span> = <span class="ruby-identifier">parent</span>
|
|
238
|
+
|
|
236
239
|
<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>
|
|
237
240
|
<span class="ruby-identifier">n</span> = <span class="ruby-identifier">n</span>.<span class="ruby-identifier">parent</span>
|
|
238
241
|
<span class="ruby-keyword kw">end</span>
|
|
242
|
+
|
|
239
243
|
<span class="ruby-identifier">n</span>
|
|
240
244
|
<span class="ruby-keyword kw">end</span></pre>
|
|
241
245
|
</div>
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
<dd>
|
|
50
50
|
<ul>
|
|
51
51
|
|
|
52
|
-
<li><a href="#
|
|
52
|
+
<li><a href="#M000051">all_classes</a>,</li>
|
|
53
53
|
|
|
54
|
-
<li><a href="#
|
|
54
|
+
<li><a href="#M000053">all_methods</a>,</li>
|
|
55
55
|
|
|
56
|
-
<li><a href="#
|
|
56
|
+
<li><a href="#M000052">all_modules</a></li>
|
|
57
57
|
|
|
58
58
|
</ul>
|
|
59
59
|
</dd>
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
<dd>
|
|
63
63
|
<ul>
|
|
64
64
|
|
|
65
|
-
<li><a href="#
|
|
65
|
+
<li><a href="#M000055">parse</a>,</li>
|
|
66
66
|
|
|
67
|
-
<li><a href="#
|
|
67
|
+
<li><a href="#M000056">parse_file</a></li>
|
|
68
68
|
|
|
69
69
|
</ul>
|
|
70
70
|
</dd>
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
<dd>
|
|
74
74
|
<ul>
|
|
75
75
|
|
|
76
|
-
<li><a href="#
|
|
76
|
+
<li><a href="#M000054">refresh_all_classes_and_modules</a></li>
|
|
77
77
|
|
|
78
78
|
</ul>
|
|
79
79
|
</dd>
|
|
@@ -95,9 +95,9 @@
|
|
|
95
95
|
<div class="sectiontitle">Class Public methods</div>
|
|
96
96
|
|
|
97
97
|
<div class="method">
|
|
98
|
-
<div class="title" id="
|
|
98
|
+
<div class="title" id="M000051">
|
|
99
99
|
|
|
100
|
-
<a name="
|
|
100
|
+
<a name="M000051"></a><b>all_classes</b>()
|
|
101
101
|
|
|
102
102
|
</div>
|
|
103
103
|
|
|
@@ -113,13 +113,13 @@ Returns an array of all classes recorded thus far.
|
|
|
113
113
|
|
|
114
114
|
<div class="sourcecode">
|
|
115
115
|
<p class="source-link">
|
|
116
|
-
Source: <a href="javascript:toggleSource('
|
|
116
|
+
Source: <a href="javascript:toggleSource('M000051_source')" id="l_M000051_source">show</a>
|
|
117
117
|
|
|
118
|
-
| <a href="http://github.com/sunaku/erbook/blob/
|
|
118
|
+
| <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/rdoc.rb#L16" target="_blank" class="github_url">on GitHub</a>
|
|
119
119
|
|
|
120
120
|
</p>
|
|
121
|
-
<div id="
|
|
122
|
-
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line
|
|
121
|
+
<div id="M000051_source" class="dyn-source">
|
|
122
|
+
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line 16</span>
|
|
123
123
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">all_classes</span>
|
|
124
124
|
<span class="ruby-ivar">@all_classes</span>.<span class="ruby-identifier">values</span>
|
|
125
125
|
<span class="ruby-keyword kw">end</span></pre>
|
|
@@ -129,9 +129,9 @@ Returns an array of all classes recorded thus far.
|
|
|
129
129
|
</div>
|
|
130
130
|
|
|
131
131
|
<div class="method">
|
|
132
|
-
<div class="title" id="
|
|
132
|
+
<div class="title" id="M000053">
|
|
133
133
|
|
|
134
|
-
<a name="
|
|
134
|
+
<a name="M000053"></a><b>all_methods</b>()
|
|
135
135
|
|
|
136
136
|
</div>
|
|
137
137
|
|
|
@@ -148,13 +148,13 @@ representing all methods recorded thus far.
|
|
|
148
148
|
|
|
149
149
|
<div class="sourcecode">
|
|
150
150
|
<p class="source-link">
|
|
151
|
-
Source: <a href="javascript:toggleSource('
|
|
151
|
+
Source: <a href="javascript:toggleSource('M000053_source')" id="l_M000053_source">show</a>
|
|
152
152
|
|
|
153
|
-
| <a href="http://github.com/sunaku/erbook/blob/
|
|
153
|
+
| <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/rdoc.rb#L31" target="_blank" class="github_url">on GitHub</a>
|
|
154
154
|
|
|
155
155
|
</p>
|
|
156
|
-
<div id="
|
|
157
|
-
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line
|
|
156
|
+
<div id="M000053_source" class="dyn-source">
|
|
157
|
+
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line 31</span>
|
|
158
158
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">all_methods</span>
|
|
159
159
|
<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>
|
|
160
160
|
<span class="ruby-keyword kw">end</span></pre>
|
|
@@ -164,9 +164,9 @@ representing all methods recorded thus far.
|
|
|
164
164
|
</div>
|
|
165
165
|
|
|
166
166
|
<div class="method">
|
|
167
|
-
<div class="title" id="
|
|
167
|
+
<div class="title" id="M000052">
|
|
168
168
|
|
|
169
|
-
<a name="
|
|
169
|
+
<a name="M000052"></a><b>all_modules</b>()
|
|
170
170
|
|
|
171
171
|
</div>
|
|
172
172
|
|
|
@@ -182,13 +182,13 @@ Returns an array of all modules recorded thus far.
|
|
|
182
182
|
|
|
183
183
|
<div class="sourcecode">
|
|
184
184
|
<p class="source-link">
|
|
185
|
-
Source: <a href="javascript:toggleSource('
|
|
185
|
+
Source: <a href="javascript:toggleSource('M000052_source')" id="l_M000052_source">show</a>
|
|
186
186
|
|
|
187
|
-
| <a href="http://github.com/sunaku/erbook/blob/
|
|
187
|
+
| <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/rdoc.rb#L23" target="_blank" class="github_url">on GitHub</a>
|
|
188
188
|
|
|
189
189
|
</p>
|
|
190
|
-
<div id="
|
|
191
|
-
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line
|
|
190
|
+
<div id="M000052_source" class="dyn-source">
|
|
191
|
+
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line 23</span>
|
|
192
192
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">all_modules</span>
|
|
193
193
|
<span class="ruby-ivar">@all_modules</span>.<span class="ruby-identifier">values</span>
|
|
194
194
|
<span class="ruby-keyword kw">end</span></pre>
|
|
@@ -198,9 +198,9 @@ Returns an array of all modules recorded thus far.
|
|
|
198
198
|
</div>
|
|
199
199
|
|
|
200
200
|
<div class="method">
|
|
201
|
-
<div class="title" id="
|
|
201
|
+
<div class="title" id="M000055">
|
|
202
202
|
|
|
203
|
-
<a name="
|
|
203
|
+
<a name="M000055"></a><b>parse</b>(code_string, file_name = __FILE__)
|
|
204
204
|
|
|
205
205
|
</div>
|
|
206
206
|
|
|
@@ -226,19 +226,19 @@ string! :-(
|
|
|
226
226
|
|
|
227
227
|
<div class="sourcecode">
|
|
228
228
|
<p class="source-link">
|
|
229
|
-
Source: <a href="javascript:toggleSource('
|
|
229
|
+
Source: <a href="javascript:toggleSource('M000055_source')" id="l_M000055_source">show</a>
|
|
230
230
|
|
|
231
|
-
| <a href="http://github.com/sunaku/erbook/blob/
|
|
231
|
+
| <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/rdoc.rb#L65" target="_blank" class="github_url">on GitHub</a>
|
|
232
232
|
|
|
233
233
|
</p>
|
|
234
|
-
<div id="
|
|
235
|
-
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line
|
|
236
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">parse</span> <span class="ruby-identifier">
|
|
237
|
-
<span class="ruby-identifier">tl</span> = <span class="ruby-constant">TopLevel</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">
|
|
234
|
+
<div id="M000055_source" class="dyn-source">
|
|
235
|
+
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line 65</span>
|
|
236
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">parse</span> <span class="ruby-identifier">code_string</span>, <span class="ruby-identifier">file_name</span> = <span class="ruby-keyword kw">__FILE__</span>
|
|
237
|
+
<span class="ruby-identifier">tl</span> = <span class="ruby-constant">TopLevel</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">file_name</span>)
|
|
238
238
|
<span class="ruby-identifier">op</span> = <span class="ruby-constant">DummyOptions</span>.<span class="ruby-identifier">new</span>
|
|
239
239
|
<span class="ruby-identifier">st</span> = <span class="ruby-constant">Stats</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">0</span>)
|
|
240
240
|
|
|
241
|
-
<span class="ruby-identifier">result</span> = <span class="ruby-constant">Parser</span>.<span class="ruby-identifier">for</span>(<span class="ruby-identifier">tl</span>, <span class="ruby-identifier">
|
|
241
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-constant">Parser</span>.<span class="ruby-identifier">for</span>(<span class="ruby-identifier">tl</span>, <span class="ruby-identifier">file_name</span>, <span class="ruby-identifier">code_string</span>, <span class="ruby-identifier">op</span>, <span class="ruby-identifier">st</span>).<span class="ruby-identifier">scan</span>
|
|
242
242
|
|
|
243
243
|
<span class="ruby-identifier">refresh_all_classes_and_modules</span>
|
|
244
244
|
|
|
@@ -250,9 +250,9 @@ string! :-(
|
|
|
250
250
|
</div>
|
|
251
251
|
|
|
252
252
|
<div class="method">
|
|
253
|
-
<div class="title" id="
|
|
253
|
+
<div class="title" id="M000056">
|
|
254
254
|
|
|
255
|
-
<a name="
|
|
255
|
+
<a name="M000056"></a><b>parse_file</b>(file_name)
|
|
256
256
|
|
|
257
257
|
</div>
|
|
258
258
|
|
|
@@ -277,15 +277,15 @@ extension. Otherwise, <a href="../RDoc.html">RDoc</a> will ignore the file!
|
|
|
277
277
|
|
|
278
278
|
<div class="sourcecode">
|
|
279
279
|
<p class="source-link">
|
|
280
|
-
Source: <a href="javascript:toggleSource('
|
|
280
|
+
Source: <a href="javascript:toggleSource('M000056_source')" id="l_M000056_source">show</a>
|
|
281
281
|
|
|
282
|
-
| <a href="http://github.com/sunaku/erbook/blob/
|
|
282
|
+
| <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/rdoc.rb#L86" target="_blank" class="github_url">on GitHub</a>
|
|
283
283
|
|
|
284
284
|
</p>
|
|
285
|
-
<div id="
|
|
286
|
-
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line
|
|
287
|
-
<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">
|
|
288
|
-
<span class="ruby-identifier">parse</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">
|
|
285
|
+
<div id="M000056_source" class="dyn-source">
|
|
286
|
+
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line 86</span>
|
|
287
|
+
<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">file_name</span>
|
|
288
|
+
<span class="ruby-identifier">parse</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">file_name</span>), <span class="ruby-identifier">file_name</span>
|
|
289
289
|
<span class="ruby-keyword kw">end</span></pre>
|
|
290
290
|
</div>
|
|
291
291
|
</div>
|
|
@@ -293,9 +293,9 @@ extension. Otherwise, <a href="../RDoc.html">RDoc</a> will ignore the file!
|
|
|
293
293
|
</div>
|
|
294
294
|
|
|
295
295
|
<div class="method">
|
|
296
|
-
<div class="title" id="
|
|
296
|
+
<div class="title" id="M000054">
|
|
297
297
|
|
|
298
|
-
<a name="
|
|
298
|
+
<a name="M000054"></a><b>refresh_all_classes_and_modules</b>()
|
|
299
299
|
|
|
300
300
|
</div>
|
|
301
301
|
|
|
@@ -312,13 +312,13 @@ Update the return value of the all_classes_and_modules() method to
|
|
|
312
312
|
|
|
313
313
|
<div class="sourcecode">
|
|
314
314
|
<p class="source-link">
|
|
315
|
-
Source: <a href="javascript:toggleSource('
|
|
315
|
+
Source: <a href="javascript:toggleSource('M000054_source')" id="l_M000054_source">show</a>
|
|
316
316
|
|
|
317
|
-
| <a href="http://github.com/sunaku/erbook/blob/
|
|
317
|
+
| <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/rdoc.rb#L39" target="_blank" class="github_url">on GitHub</a>
|
|
318
318
|
|
|
319
319
|
</p>
|
|
320
|
-
<div id="
|
|
321
|
-
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line
|
|
320
|
+
<div id="M000054_source" class="dyn-source">
|
|
321
|
+
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line 39</span>
|
|
322
322
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">refresh_all_classes_and_modules</span>
|
|
323
323
|
<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>
|
|
324
324
|
<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>
|
data/doc/api/classes/String.html
CHANGED
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
<dd>
|
|
50
50
|
<ul>
|
|
51
51
|
|
|
52
|
-
<li><a href="#
|
|
52
|
+
<li><a href="#M000039">to_inline_xhtml</a>,</li>
|
|
53
53
|
|
|
54
|
-
<li><a href="#
|
|
54
|
+
<li><a href="#M000040">to_xhtml</a></li>
|
|
55
55
|
|
|
56
56
|
</ul>
|
|
57
57
|
</dd>
|
|
@@ -112,9 +112,9 @@ throughout the text-to-XHTML conversion process.
|
|
|
112
112
|
<div class="sectiontitle">Instance Public methods</div>
|
|
113
113
|
|
|
114
114
|
<div class="method">
|
|
115
|
-
<div class="title" id="
|
|
115
|
+
<div class="title" id="M000039">
|
|
116
116
|
|
|
117
|
-
<a name="
|
|
117
|
+
<a name="M000039"></a><b>to_inline_xhtml</b>()
|
|
118
118
|
|
|
119
119
|
</div>
|
|
120
120
|
|
|
@@ -131,13 +131,13 @@ not contain any block-level XHTML elements at the root).
|
|
|
131
131
|
|
|
132
132
|
<div class="sourcecode">
|
|
133
133
|
<p class="source-link">
|
|
134
|
-
Source: <a href="javascript:toggleSource('
|
|
134
|
+
Source: <a href="javascript:toggleSource('M000039_source')" id="l_M000039_source">show</a>
|
|
135
135
|
|
|
136
|
-
| <a href="http://github.com/sunaku/erbook/blob/
|
|
136
|
+
| <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/to_xhtml.rb#L50" target="_blank" class="github_url">on GitHub</a>
|
|
137
137
|
|
|
138
138
|
</p>
|
|
139
|
-
<div id="
|
|
140
|
-
<pre><span class="ruby-comment cmt"># File lib/erbook/to_xhtml.rb, line
|
|
139
|
+
<div id="M000039_source" class="dyn-source">
|
|
140
|
+
<pre><span class="ruby-comment cmt"># File lib/erbook/to_xhtml.rb, line 50</span>
|
|
141
141
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_inline_xhtml</span>
|
|
142
142
|
<span class="ruby-identifier">to_xhtml</span> <span class="ruby-keyword kw">true</span>
|
|
143
143
|
<span class="ruby-keyword kw">end</span></pre>
|
|
@@ -147,9 +147,9 @@ not contain any block-level XHTML elements at the root).
|
|
|
147
147
|
</div>
|
|
148
148
|
|
|
149
149
|
<div class="method">
|
|
150
|
-
<div class="title" id="
|
|
150
|
+
<div class="title" id="M000040">
|
|
151
151
|
|
|
152
|
-
<a name="
|
|
152
|
+
<a name="M000040"></a><b>to_xhtml</b>(inline = false)
|
|
153
153
|
|
|
154
154
|
</div>
|
|
155
155
|
|
|
@@ -172,13 +172,13 @@ at the root.
|
|
|
172
172
|
|
|
173
173
|
<div class="sourcecode">
|
|
174
174
|
<p class="source-link">
|
|
175
|
-
Source: <a href="javascript:toggleSource('
|
|
175
|
+
Source: <a href="javascript:toggleSource('M000040_source')" id="l_M000040_source">show</a>
|
|
176
176
|
|
|
177
|
-
| <a href="http://github.com/sunaku/erbook/blob/
|
|
177
|
+
| <a href="http://github.com/sunaku/erbook/blob/9c3f6ad5c94f67d3f20e896873dbc7b127036c44/lib/erbook/to_xhtml.rb#L62" target="_blank" class="github_url">on GitHub</a>
|
|
178
178
|
|
|
179
179
|
</p>
|
|
180
|
-
<div id="
|
|
181
|
-
<pre><span class="ruby-comment cmt"># File lib/erbook/to_xhtml.rb, line
|
|
180
|
+
<div id="M000040_source" class="dyn-source">
|
|
181
|
+
<pre><span class="ruby-comment cmt"># File lib/erbook/to_xhtml.rb, line 62</span>
|
|
182
182
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_xhtml</span> <span class="ruby-identifier">inline</span> = <span class="ruby-keyword kw">false</span>
|
|
183
183
|
<span class="ruby-identifier">with_protected_tags</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-constant">VERBATIM_TAGS</span>, <span class="ruby-keyword kw">true</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">text</span><span class="ruby-operator">|</span>
|
|
184
184
|
<span class="ruby-identifier">html</span> = <span class="ruby-identifier">with_protected_tags</span>(<span class="ruby-identifier">text</span>, <span class="ruby-constant">PROTECTED_TAGS</span>, <span class="ruby-keyword kw">false</span>) <span class="ruby-keyword kw">do</span>
|