erbook 8.0.0 → 9.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.
- data/bin/erbook +1 -1
- data/doc/api/classes/ERBook/Document.html +26 -19
- data/doc/api/classes/ERBook/Document/Node.html +52 -45
- 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 +20 -20
- data/doc/api/classes/String.html +10 -54
- data/doc/api/created.rid +1 -1
- data/doc/api/files/lib/erbook/document_rb.html +1 -1
- data/doc/api/files/lib/erbook/rdoc_rb.html +1 -1
- data/doc/api/files/lib/erbook/to_xhtml_rb.html +3 -4
- data/doc/api/files/lib/erbook_rb.html +1 -1
- data/doc/api/panel/search_index.js +1 -1
- data/doc/formats.erb +54 -45
- data/doc/history.erb +51 -0
- data/doc/index.html +931 -825
- data/doc/intro.erb +5 -3
- data/doc/setup.erb +16 -10
- data/doc/theory.erb +4 -3
- data/doc/usage.erb +11 -4
- data/fmt/xhtml.yaml +162 -116
- data/fmt/xhtml/jquery/jquery-ui-1.7.2.custom.css +2 -2
- data/lib/erbook.rb +3 -2
- data/lib/erbook/document.rb +18 -8
- data/lib/erbook/to_xhtml.rb +21 -30
- data/test/erbook.rb +17 -0
- metadata +15 -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="#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
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="#M000068">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="#M000067">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="#M000066">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="#M000069">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="M000068">
|
102
102
|
|
103
|
-
<a name="
|
103
|
+
<a name="M000068"></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('M000068_source')" id="l_M000068_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="M000068_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="M000067">
|
136
136
|
|
137
|
-
<a name="
|
137
|
+
<a name="M000067"></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('M000067_source')" id="l_M000067_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="M000067_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="M000066">
|
177
177
|
|
178
|
-
<a name="
|
178
|
+
<a name="M000066"></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('M000066_source')" id="l_M000066_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="M000066_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="M000069">
|
211
211
|
|
212
|
-
<a name="
|
212
|
+
<a name="M000069"></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('M000069_source')" id="l_M000069_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="M000069_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="#M000052">all_classes</a>,</li>
|
53
53
|
|
54
54
|
<li><a href="#M000056">all_methods</a>,</li>
|
55
55
|
|
56
|
-
<li><a href="#
|
56
|
+
<li><a href="#M000053">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="#M000063">parse</a>,</li>
|
66
66
|
|
67
|
-
<li><a href="#
|
67
|
+
<li><a href="#M000065">parse_file</a></li>
|
68
68
|
|
69
69
|
</ul>
|
70
70
|
</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="M000052">
|
99
99
|
|
100
|
-
<a name="
|
100
|
+
<a name="M000052"></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('M000052_source')" id="l_M000052_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="M000052_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>
|
@@ -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="M000053">
|
168
168
|
|
169
|
-
<a name="
|
169
|
+
<a name="M000053"></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('M000053_source')" id="l_M000053_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="M000053_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="M000063">
|
202
202
|
|
203
|
-
<a name="
|
203
|
+
<a name="M000063"></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('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#L65" 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 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="M000065">
|
254
254
|
|
255
|
-
<a name="
|
255
|
+
<a name="M000065"></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('M000065_source')" id="l_M000065_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="M000065_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>
|
data/doc/api/classes/String.html
CHANGED
@@ -49,9 +49,7 @@
|
|
49
49
|
<dd>
|
50
50
|
<ul>
|
51
51
|
|
52
|
-
<li><a href="#
|
53
|
-
|
54
|
-
<li><a href="#M000044">to_xhtml</a></li>
|
52
|
+
<li><a href="#M000047">to_xhtml</a></li>
|
55
53
|
|
56
54
|
</ul>
|
57
55
|
</dd>
|
@@ -112,16 +110,15 @@ throughout the text-to-XHTML conversion process.
|
|
112
110
|
<div class="sectiontitle">Instance Public methods</div>
|
113
111
|
|
114
112
|
<div class="method">
|
115
|
-
<div class="title" id="
|
113
|
+
<div class="title" id="M000047">
|
116
114
|
|
117
|
-
<a name="
|
115
|
+
<a name="M000047"></a><b>to_xhtml</b>()
|
118
116
|
|
119
117
|
</div>
|
120
118
|
|
121
119
|
<div class="description">
|
122
120
|
<p>
|
123
|
-
Transforms this string into
|
124
|
-
not contain any block-level XHTML elements at the root).
|
121
|
+
Transforms this string into XHTML.
|
125
122
|
</p>
|
126
123
|
|
127
124
|
</div>
|
@@ -131,58 +128,17 @@ not contain any block-level XHTML elements at the root).
|
|
131
128
|
|
132
129
|
<div class="sourcecode">
|
133
130
|
<p class="source-link">
|
134
|
-
Source: <a href="javascript:toggleSource('
|
135
|
-
|
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
|
-
|
138
|
-
</p>
|
139
|
-
<div id="M000043_source" class="dyn-source">
|
140
|
-
<pre><span class="ruby-comment cmt"># File lib/erbook/to_xhtml.rb, line 50</span>
|
141
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_inline_xhtml</span>
|
142
|
-
<span class="ruby-identifier">to_xhtml</span> <span class="ruby-keyword kw">true</span>
|
143
|
-
<span class="ruby-keyword kw">end</span></pre>
|
144
|
-
</div>
|
145
|
-
</div>
|
146
|
-
|
147
|
-
</div>
|
148
|
-
|
149
|
-
<div class="method">
|
150
|
-
<div class="title" id="M000044">
|
151
|
-
|
152
|
-
<a name="M000044"></a><b>to_xhtml</b>(inline = false)
|
153
|
-
|
154
|
-
</div>
|
155
|
-
|
156
|
-
<div class="description">
|
157
|
-
<p>
|
158
|
-
Transforms this string into XHTML while ensuring that the result contains
|
159
|
-
one or more block-level elements at the root.
|
160
|
-
</p>
|
161
|
-
<dl>
|
162
|
-
<dt>inline</dt><dd>If true, the resulting XHTML will <b>not</b> contain a block-level element
|
163
|
-
at the root.
|
164
|
-
|
165
|
-
</dd>
|
166
|
-
</dl>
|
167
|
-
|
168
|
-
</div>
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
<div class="sourcecode">
|
174
|
-
<p class="source-link">
|
175
|
-
Source: <a href="javascript:toggleSource('M000044_source')" id="l_M000044_source">show</a>
|
131
|
+
Source: <a href="javascript:toggleSource('M000047_source')" id="l_M000047_source">show</a>
|
176
132
|
|
177
|
-
| <a href="http://github.com/sunaku/erbook/blob/
|
133
|
+
| <a href="http://github.com/sunaku/erbook/blob/eda493a151e7b55d041d0a094c586e2c22aa63cc/lib/erbook/to_xhtml.rb#L49" target="_blank" class="github_url">on GitHub</a>
|
178
134
|
|
179
135
|
</p>
|
180
|
-
<div id="
|
181
|
-
<pre><span class="ruby-comment cmt"># File lib/erbook/to_xhtml.rb, line
|
182
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_xhtml</span>
|
136
|
+
<div id="M000047_source" class="dyn-source">
|
137
|
+
<pre><span class="ruby-comment cmt"># File lib/erbook/to_xhtml.rb, line 49</span>
|
138
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_xhtml</span>
|
183
139
|
<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
140
|
<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>
|
185
|
-
<span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">thru_maruku</span>
|
141
|
+
<span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">thru_maruku</span>
|
186
142
|
<span class="ruby-keyword kw">end</span>
|
187
143
|
|
188
144
|
<span class="ruby-comment cmt"># Markdown's "code spans" should really be "pre spans"</span>
|
data/doc/api/created.rid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
Sun, 18 Oct 2009 16:39:43 -0700
|
@@ -19,7 +19,7 @@
|
|
19
19
|
</h1>
|
20
20
|
<ul class="files">
|
21
21
|
<li>lib/erbook/to_xhtml.rb</li>
|
22
|
-
<li>Last modified: 2009-
|
22
|
+
<li>Last modified: 2009-10-18 16:11:21 -0700</li>
|
23
23
|
</ul>
|
24
24
|
</div>
|
25
25
|
|
@@ -29,9 +29,8 @@
|
|
29
29
|
<div class="description">
|
30
30
|
<p>
|
31
31
|
This file defines the <a
|
32
|
-
href="../../../classes/String.html#
|
33
|
-
|
34
|
-
methods, which are invoked to transform plain text into XHTML.
|
32
|
+
href="../../../classes/String.html#M000047">String#to_xhtml</a> method
|
33
|
+
which is invoked to transform plain text into XHTML.
|
35
34
|
</p>
|
36
35
|
<p>
|
37
36
|
This particular implementation features the Markdown formatting system via
|