erbook 7.3.0 → 8.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/HelloWorld.spec +9 -10
- data/doc/api/classes/ERBook/Document.html +50 -38
- data/doc/api/classes/ERBook/Document/Node.html +185 -8
- data/doc/api/classes/ERBook/Template.html +20 -20
- data/doc/api/classes/ERBook/Template/Sandbox.html +5 -5
- data/doc/api/classes/RDoc/AnyMethod.html +20 -20
- data/doc/api/classes/RDoc/TopLevel.html +30 -30
- data/doc/api/classes/String.html +10 -10
- data/doc/api/created.rid +1 -1
- data/doc/api/files/lib/erbook/document_rb.html +1 -1
- data/doc/api/files/lib/erbook/to_xhtml_rb.html +2 -2
- data/doc/api/files/lib/erbook_rb.html +1 -1
- data/doc/api/panel/search_index.js +1 -1
- data/doc/formats.erb +196 -61
- data/doc/history.erb +45 -0
- data/doc/index.html +608 -537
- data/doc/intro.erb +1 -1
- data/doc/setup.erb +66 -38
- data/doc/theory.erb +292 -61
- data/doc/usage.erb +1 -1
- data/fmt/xhtml.yaml +139 -150
- data/lib/erbook.rb +2 -2
- data/lib/erbook/document.rb +62 -26
- metadata +5 -5
@@ -56,7 +56,7 @@ Environment for template evaluation.
|
|
56
56
|
<dd>
|
57
57
|
<ul>
|
58
58
|
|
59
|
-
<li><a href="#
|
59
|
+
<li><a href="#M000050">__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="M000050">
|
82
82
|
|
83
|
-
<a name="
|
83
|
+
<a name="M000050"></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('M000050_source')" id="l_M000050_source">show</a>
|
102
102
|
|
103
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="M000050_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="#M000062">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="#M000061">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="#M000060">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="#M000063">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="M000062">
|
102
102
|
|
103
|
-
<a name="
|
103
|
+
<a name="M000062"></a><b>comment_html</b>()
|
104
104
|
|
105
105
|
</div>
|
106
106
|
|
@@ -116,12 +116,12 @@ 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('M000062_source')" id="l_M000062_source">show</a>
|
120
120
|
|
121
121
|
| <a href="http://github.com/sunaku/erbook/blob/ef112a9767fa7e4c9b5f535ec992d1a1fd52a4ea/lib/erbook/rdoc.rb#L116" target="_blank" class="github_url">on GitHub</a>
|
122
122
|
|
123
123
|
</p>
|
124
|
-
<div id="
|
124
|
+
<div id="M000062_source" class="dyn-source">
|
125
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>
|
@@ -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="M000061">
|
136
136
|
|
137
|
-
<a name="
|
137
|
+
<a name="M000061"></a><b>decl</b>()
|
138
138
|
|
139
139
|
</div>
|
140
140
|
|
@@ -150,12 +150,12 @@ 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('M000061_source')" id="l_M000061_source">show</a>
|
154
154
|
|
155
155
|
| <a href="http://github.com/sunaku/erbook/blob/ef112a9767fa7e4c9b5f535ec992d1a1fd52a4ea/lib/erbook/rdoc.rb#L102" target="_blank" class="github_url">on GitHub</a>
|
156
156
|
|
157
157
|
</p>
|
158
|
-
<div id="
|
158
|
+
<div id="M000061_source" class="dyn-source">
|
159
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>
|
@@ -173,9 +173,9 @@ Returns a complete method declaration with block parameters and all.
|
|
173
173
|
</div>
|
174
174
|
|
175
175
|
<div class="method">
|
176
|
-
<div class="title" id="
|
176
|
+
<div class="title" id="M000060">
|
177
177
|
|
178
|
-
<a name="
|
178
|
+
<a name="M000060"></a><b>full_name</b>()
|
179
179
|
|
180
180
|
</div>
|
181
181
|
|
@@ -191,12 +191,12 @@ Returns the fully qualified name of this method.
|
|
191
191
|
|
192
192
|
<div class="sourcecode">
|
193
193
|
<p class="source-link">
|
194
|
-
Source: <a href="javascript:toggleSource('
|
194
|
+
Source: <a href="javascript:toggleSource('M000060_source')" id="l_M000060_source">show</a>
|
195
195
|
|
196
196
|
| <a href="http://github.com/sunaku/erbook/blob/ef112a9767fa7e4c9b5f535ec992d1a1fd52a4ea/lib/erbook/rdoc.rb#L95" target="_blank" class="github_url">on GitHub</a>
|
197
197
|
|
198
198
|
</p>
|
199
|
-
<div id="
|
199
|
+
<div id="M000060_source" class="dyn-source">
|
200
200
|
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line 95</span>
|
201
201
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">full_name</span>
|
202
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>)
|
@@ -207,9 +207,9 @@ Returns the fully qualified name of this method.
|
|
207
207
|
</div>
|
208
208
|
|
209
209
|
<div class="method">
|
210
|
-
<div class="title" id="
|
210
|
+
<div class="title" id="M000063">
|
211
211
|
|
212
|
-
<a name="
|
212
|
+
<a name="M000063"></a><b>top_level</b>()
|
213
213
|
|
214
214
|
</div>
|
215
215
|
|
@@ -226,12 +226,12 @@ contains this method.
|
|
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('M000063_source')" id="l_M000063_source">show</a>
|
230
230
|
|
231
231
|
| <a href="http://github.com/sunaku/erbook/blob/ef112a9767fa7e4c9b5f535ec992d1a1fd52a4ea/lib/erbook/rdoc.rb#L123" target="_blank" class="github_url">on GitHub</a>
|
232
232
|
|
233
233
|
</p>
|
234
|
-
<div id="
|
234
|
+
<div id="M000063_source" class="dyn-source">
|
235
235
|
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line 123</span>
|
236
236
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">top_level</span>
|
237
237
|
<span class="ruby-identifier">n</span> = <span class="ruby-identifier">parent</span>
|
@@ -49,11 +49,11 @@
|
|
49
49
|
<dd>
|
50
50
|
<ul>
|
51
51
|
|
52
|
-
<li><a href="#
|
52
|
+
<li><a href="#M000054">all_classes</a>,</li>
|
53
53
|
|
54
|
-
<li><a href="#
|
54
|
+
<li><a href="#M000056">all_methods</a>,</li>
|
55
55
|
|
56
|
-
<li><a href="#
|
56
|
+
<li><a href="#M000055">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="#M000058">parse</a>,</li>
|
66
66
|
|
67
|
-
<li><a href="#
|
67
|
+
<li><a href="#M000059">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="#M000057">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="M000054">
|
99
99
|
|
100
|
-
<a name="
|
100
|
+
<a name="M000054"></a><b>all_classes</b>()
|
101
101
|
|
102
102
|
</div>
|
103
103
|
|
@@ -113,12 +113,12 @@ 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('M000054_source')" id="l_M000054_source">show</a>
|
117
117
|
|
118
118
|
| <a href="http://github.com/sunaku/erbook/blob/ef112a9767fa7e4c9b5f535ec992d1a1fd52a4ea/lib/erbook/rdoc.rb#L16" target="_blank" class="github_url">on GitHub</a>
|
119
119
|
|
120
120
|
</p>
|
121
|
-
<div id="
|
121
|
+
<div id="M000054_source" class="dyn-source">
|
122
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>
|
@@ -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="M000056">
|
133
133
|
|
134
|
-
<a name="
|
134
|
+
<a name="M000056"></a><b>all_methods</b>()
|
135
135
|
|
136
136
|
</div>
|
137
137
|
|
@@ -148,12 +148,12 @@ 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('M000056_source')" id="l_M000056_source">show</a>
|
152
152
|
|
153
153
|
| <a href="http://github.com/sunaku/erbook/blob/ef112a9767fa7e4c9b5f535ec992d1a1fd52a4ea/lib/erbook/rdoc.rb#L31" target="_blank" class="github_url">on GitHub</a>
|
154
154
|
|
155
155
|
</p>
|
156
|
-
<div id="
|
156
|
+
<div id="M000056_source" class="dyn-source">
|
157
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>
|
@@ -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="M000055">
|
168
168
|
|
169
|
-
<a name="
|
169
|
+
<a name="M000055"></a><b>all_modules</b>()
|
170
170
|
|
171
171
|
</div>
|
172
172
|
|
@@ -182,12 +182,12 @@ 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('M000055_source')" id="l_M000055_source">show</a>
|
186
186
|
|
187
187
|
| <a href="http://github.com/sunaku/erbook/blob/ef112a9767fa7e4c9b5f535ec992d1a1fd52a4ea/lib/erbook/rdoc.rb#L23" target="_blank" class="github_url">on GitHub</a>
|
188
188
|
|
189
189
|
</p>
|
190
|
-
<div id="
|
190
|
+
<div id="M000055_source" class="dyn-source">
|
191
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>
|
@@ -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="M000058">
|
202
202
|
|
203
|
-
<a name="
|
203
|
+
<a name="M000058"></a><b>parse</b>(code_string, file_name = __FILE__)
|
204
204
|
|
205
205
|
</div>
|
206
206
|
|
@@ -226,12 +226,12 @@ 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('M000058_source')" id="l_M000058_source">show</a>
|
230
230
|
|
231
231
|
| <a href="http://github.com/sunaku/erbook/blob/ef112a9767fa7e4c9b5f535ec992d1a1fd52a4ea/lib/erbook/rdoc.rb#L65" target="_blank" class="github_url">on GitHub</a>
|
232
232
|
|
233
233
|
</p>
|
234
|
-
<div id="
|
234
|
+
<div id="M000058_source" class="dyn-source">
|
235
235
|
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line 65</span>
|
236
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
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>)
|
@@ -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="M000059">
|
254
254
|
|
255
|
-
<a name="
|
255
|
+
<a name="M000059"></a><b>parse_file</b>(file_name)
|
256
256
|
|
257
257
|
</div>
|
258
258
|
|
@@ -277,12 +277,12 @@ 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('M000059_source')" id="l_M000059_source">show</a>
|
281
281
|
|
282
282
|
| <a href="http://github.com/sunaku/erbook/blob/ef112a9767fa7e4c9b5f535ec992d1a1fd52a4ea/lib/erbook/rdoc.rb#L86" target="_blank" class="github_url">on GitHub</a>
|
283
283
|
|
284
284
|
</p>
|
285
|
-
<div id="
|
285
|
+
<div id="M000059_source" class="dyn-source">
|
286
286
|
<pre><span class="ruby-comment cmt"># File lib/erbook/rdoc.rb, line 86</span>
|
287
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
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>
|
@@ -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="M000057">
|
297
297
|
|
298
|
-
<a name="
|
298
|
+
<a name="M000057"></a><b>refresh_all_classes_and_modules</b>()
|
299
299
|
|
300
300
|
</div>
|
301
301
|
|
@@ -312,12 +312,12 @@ 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('M000057_source')" id="l_M000057_source">show</a>
|
316
316
|
|
317
317
|
| <a href="http://github.com/sunaku/erbook/blob/ef112a9767fa7e4c9b5f535ec992d1a1fd52a4ea/lib/erbook/rdoc.rb#L39" target="_blank" class="github_url">on GitHub</a>
|
318
318
|
|
319
319
|
</p>
|
320
|
-
<div id="
|
320
|
+
<div id="M000057_source" class="dyn-source">
|
321
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>
|
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="#M000043">to_inline_xhtml</a>,</li>
|
53
53
|
|
54
|
-
<li><a href="#
|
54
|
+
<li><a href="#M000044">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="M000043">
|
116
116
|
|
117
|
-
<a name="
|
117
|
+
<a name="M000043"></a><b>to_inline_xhtml</b>()
|
118
118
|
|
119
119
|
</div>
|
120
120
|
|
@@ -131,12 +131,12 @@ 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('M000043_source')" id="l_M000043_source">show</a>
|
135
135
|
|
136
136
|
| <a href="http://github.com/sunaku/erbook/blob/af5b6a4baba28349d216740335a2e461728f59d5/lib/erbook/to_xhtml.rb#L50" target="_blank" class="github_url">on GitHub</a>
|
137
137
|
|
138
138
|
</p>
|
139
|
-
<div id="
|
139
|
+
<div id="M000043_source" class="dyn-source">
|
140
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>
|
@@ -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="M000044">
|
151
151
|
|
152
|
-
<a name="
|
152
|
+
<a name="M000044"></a><b>to_xhtml</b>(inline = false)
|
153
153
|
|
154
154
|
</div>
|
155
155
|
|
@@ -172,12 +172,12 @@ 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('M000044_source')" id="l_M000044_source">show</a>
|
176
176
|
|
177
177
|
| <a href="http://github.com/sunaku/erbook/blob/af5b6a4baba28349d216740335a2e461728f59d5/lib/erbook/to_xhtml.rb#L62" target="_blank" class="github_url">on GitHub</a>
|
178
178
|
|
179
179
|
</p>
|
180
|
-
<div id="
|
180
|
+
<div id="M000044_source" class="dyn-source">
|
181
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>
|
data/doc/api/created.rid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
Sat, 10 Oct 2009 23:53:49 -0700
|
@@ -29,8 +29,8 @@
|
|
29
29
|
<div class="description">
|
30
30
|
<p>
|
31
31
|
This file defines the <a
|
32
|
-
href="../../../classes/String.html#
|
33
|
-
href="../../../classes/String.html#
|
32
|
+
href="../../../classes/String.html#M000044">String#to_xhtml</a> and <a
|
33
|
+
href="../../../classes/String.html#M000043">String#to_inline_xhtml</a>
|
34
34
|
methods, which are invoked to transform plain text into XHTML.
|
35
35
|
</p>
|
36
36
|
<p>
|