erbook 6.1.0 → 7.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/erbook +29 -25
- data/doc/HelloWorld.spec +3 -1
- data/doc/api/classes/ERBook.html +86 -0
- data/doc/api/classes/ERBook/Document.html +399 -0
- data/doc/api/classes/ERBook/Document/Node.html +110 -0
- data/doc/api/classes/ERBook/Template.html +309 -0
- data/doc/api/classes/ERBook/Template/Sandbox.html +134 -0
- data/doc/api/classes/RDoc.html +69 -0
- data/doc/api/classes/RDoc/AnyMethod.html +249 -0
- data/doc/api/classes/RDoc/DummyMarkup.html +60 -0
- data/doc/api/classes/RDoc/DummyMixin.html +54 -0
- data/doc/api/classes/RDoc/DummyOptions.html +60 -0
- data/doc/api/classes/RDoc/TopLevel.html +344 -0
- data/doc/api/classes/String.html +212 -0
- data/doc/api/created.rid +1 -0
- data/doc/api/css/main.css +263 -0
- data/doc/api/css/panel.css +383 -0
- data/doc/api/css/reset.css +53 -0
- data/doc/api/files/ANN_eml.html +276 -0
- data/doc/api/files/ANN_html.html +407 -0
- data/doc/api/files/ANN_txt.html +271 -0
- data/doc/api/files/LICENSE.html +76 -0
- data/doc/api/files/lib/erbook/document_rb.html +74 -0
- data/doc/api/files/lib/erbook/rdoc_rb.html +77 -0
- data/doc/api/files/lib/erbook/template_rb.html +66 -0
- data/doc/api/files/lib/erbook/to_xhtml_rb.html +89 -0
- data/doc/api/files/lib/erbook_rb.html +70 -0
- data/doc/api/i/arrows.png +0 -0
- data/doc/api/i/results_bg.png +0 -0
- data/doc/api/i/tree_bg.png +0 -0
- data/doc/api/index.html +14 -18
- data/doc/api/js/jquery-1.3.2.min.js +19 -0
- data/doc/api/js/jquery-effect.js +593 -0
- data/doc/api/js/main.js +22 -0
- data/doc/api/js/searchdoc.js +605 -0
- data/doc/api/panel/index.html +63 -0
- data/doc/api/panel/search_index.js +1 -0
- data/doc/api/panel/tree.js +1 -0
- data/doc/formats.erb +63 -115
- data/doc/history.erb +125 -92
- data/doc/index.erb +12 -7
- data/doc/index.xhtml +1020 -1347
- data/doc/intro.erb +42 -40
- data/doc/setup.erb +18 -18
- data/doc/theory.erb +24 -31
- data/doc/usage.erb +14 -24
- data/fmt/xhtml.icons/index.yaml +16 -14
- data/fmt/xhtml.icons/rakefile +33 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/16x16/places/start-here.png +0 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/32x32/actions/go-down.png +0 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/32x32/actions/go-up.png +0 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/32x32/places/start-here.png +0 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/32x32/status/software-update-available.png +0 -0
- data/fmt/xhtml.icons/{tango-icon-theme-0.8.1 → tango-icon-theme-0.8.90}/48x48/apps/accessories-text-editor.png +0 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/48x48/apps/internet-group-chat.png +0 -0
- data/fmt/xhtml.icons/{tango-icon-theme-0.8.1 → tango-icon-theme-0.8.90}/48x48/emblems/emblem-important.png +0 -0
- data/fmt/xhtml.icons/{tango-icon-theme-0.8.1 → tango-icon-theme-0.8.90}/48x48/status/dialog-error.png +0 -0
- data/fmt/xhtml.icons/{tango-icon-theme-0.8.1 → tango-icon-theme-0.8.90}/48x48/status/dialog-information.png +0 -0
- data/fmt/xhtml.icons/{tango-icon-theme-0.8.1 → tango-icon-theme-0.8.90}/48x48/status/dialog-warning.png +0 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/COPYING +1 -0
- data/fmt/xhtml.icons/{tango-icon-theme-0.8.1 → tango-icon-theme-0.8.90}/README +0 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/actions/bookmark-new.svg +672 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/actions/go-down.svg +200 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/actions/go-home.svg +445 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/actions/go-up.svg +196 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/actions/view-refresh.svg +393 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/apps/accessories-text-editor.svg +554 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/apps/internet-group-chat.svg +312 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/emblems/emblem-favorite.svg +242 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/emblems/emblem-important.svg +164 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/mimetypes/application-certificate.svg +443 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/places/start-here.svg +492 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/status/dialog-error.svg +330 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/status/dialog-information.svg +1159 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/status/dialog-warning.svg +373 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.90/scalable/status/software-update-available.svg +209 -0
- data/fmt/xhtml.scripts/jquery-1.3.2.min.js +19 -0
- data/fmt/xhtml.scripts/jquery.localscroll-1.2.7-min.js +9 -0
- data/fmt/xhtml.scripts/jquery.scrollTo-1.4.1-min.js +11 -0
- data/fmt/xhtml.yaml +470 -454
- data/lang/de.yaml +5 -5
- data/lang/el.yaml +4 -4
- data/lang/es.yaml +5 -5
- data/lang/fr.yaml +5 -5
- data/lang/it.yaml +5 -5
- data/lang/ja.yaml +4 -4
- data/lang/ko.yaml +4 -4
- data/lang/nl.yaml +4 -4
- data/lang/phrases.yaml +4 -4
- data/lang/pt.yaml +5 -5
- data/lang/ru.yaml +5 -5
- data/lang/zh.yaml +5 -5
- data/lang/zt.yaml +5 -5
- data/lib/erbook.rb +12 -5
- data/lib/erbook/document.rb +127 -107
- data/lib/erbook/rdoc.rb +18 -11
- data/lib/erbook/template.rb +86 -176
- data/lib/erbook/to_xhtml.rb +98 -25
- data/{Rakefile → rakefile} +1 -0
- metadata +106 -53
- data/doc/api/ERBook.html +0 -35
- data/doc/api/ERBook/Document.html +0 -669
- data/doc/api/ERBook/Document/Node.html +0 -102
- data/doc/api/ERBook/Template.html +0 -670
- data/doc/api/RDoc.html +0 -23
- data/doc/api/RDoc/AnyMethod.html +0 -302
- data/doc/api/RDoc/DummyMarkup.html +0 -73
- data/doc/api/RDoc/DummyMixin.html +0 -23
- data/doc/api/RDoc/DummyOptions.html +0 -140
- data/doc/api/RDoc/TopLevel.html +0 -465
- data/doc/api/String.html +0 -372
- data/doc/api/all-methods.html +0 -253
- data/doc/api/all-namespaces.html +0 -42
- data/doc/api/app.js +0 -18
- data/doc/api/jquery.js +0 -11
- data/doc/api/readme.html +0 -38
- data/doc/api/style.css +0 -68
- data/doc/api/syntax_highlight.css +0 -21
- data/fmt/xhtml.icons/tango-icon-theme-0.8.1/48x48/README +0 -2
- data/fmt/xhtml.icons/tango-icon-theme-0.8.1/48x48/apps/internet-group-chat.png +0 -0
- data/fmt/xhtml.icons/tango-icon-theme-0.8.1/COPYING +0 -67
data/doc/api/String.html
DELETED
@@ -1,372 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
6
|
-
<link rel="stylesheet" href="style.css" type="text/css" charset="utf-8" />
|
7
|
-
<link rel="stylesheet" href="syntax_highlight.css" type="text/css" charset="utf-8" />
|
8
|
-
|
9
|
-
<script src="jquery.js" type="text/javascript" charset="utf-8"></script>
|
10
|
-
<script src="app.js" type="text/javascript" charset="utf-8"></script>
|
11
|
-
<title>Class: String</title>
|
12
|
-
</head>
|
13
|
-
<body>
|
14
|
-
<div id="content">
|
15
|
-
<div class="section class String">
|
16
|
-
<h1 class="title">Class: String</h1>
|
17
|
-
<div class="section constants">
|
18
|
-
<div class="thisclass">
|
19
|
-
<h1>Constants</h1>
|
20
|
-
<dl>
|
21
|
-
|
22
|
-
<dt id="PROTECTED_TAGS-constant">PROTECTED_TAGS</dt>
|
23
|
-
<dd>%w[tt code pre]</dd>
|
24
|
-
|
25
|
-
<dt id="VERBATIM_TAGS-constant">VERBATIM_TAGS</dt>
|
26
|
-
<dd>%w[noformat]</dd>
|
27
|
-
|
28
|
-
</dl>
|
29
|
-
</div>
|
30
|
-
|
31
|
-
</div> <div class="section visibilitygroup public">
|
32
|
-
<h1>Public Visibility</h1>
|
33
|
-
<div class="section methodsummary instance public">
|
34
|
-
<h1>Public Instance Method Summary</h1>
|
35
|
-
<table class="summary">
|
36
|
-
|
37
|
-
<tr>
|
38
|
-
<th class="signature">
|
39
|
-
<span class='name'><a title="#thru_coderay" href="#thru_coderay-instance_method">#thru_coderay</a></span><span class='args'></span>
|
40
|
-
<span class='block'></span>
|
41
|
-
|
42
|
-
</th>
|
43
|
-
<td class="docstring">
|
44
|
-
<p>
|
45
|
-
Adds syntax coloring to <code> elements in the given text.
|
46
|
-
</p>
|
47
|
-
|
48
|
-
|
49
|
-
</td>
|
50
|
-
</tr>
|
51
|
-
|
52
|
-
<tr>
|
53
|
-
<th class="signature">
|
54
|
-
<span class='name'><a title="#thru_maruku" href="#thru_maruku-instance_method">#thru_maruku</a></span><span class='args'>(inline = false)</span>
|
55
|
-
<span class='block'></span>
|
56
|
-
|
57
|
-
</th>
|
58
|
-
<td class="docstring">
|
59
|
-
<p>
|
60
|
-
Returns the result of running this string through Maruku.
|
61
|
-
</p>
|
62
|
-
|
63
|
-
|
64
|
-
</td>
|
65
|
-
</tr>
|
66
|
-
|
67
|
-
<tr>
|
68
|
-
<th class="signature">
|
69
|
-
<span class='name'><a title="#to_inline_xhtml" href="#to_inline_xhtml-instance_method">#to_inline_xhtml</a></span><span class='args'></span>
|
70
|
-
<span class='block'></span>
|
71
|
-
|
72
|
-
</th>
|
73
|
-
<td class="docstring">
|
74
|
-
<p>
|
75
|
-
Transforms this string into an <b>inline</b> XHTML string (one that does
|
76
|
-
not contain any block-level XHTML elements at the root).
|
77
|
-
</p>
|
78
|
-
|
79
|
-
|
80
|
-
</td>
|
81
|
-
</tr>
|
82
|
-
|
83
|
-
<tr>
|
84
|
-
<th class="signature">
|
85
|
-
<span class='name'><a title="#to_xhtml" href="#to_xhtml-instance_method">#to_xhtml</a></span><span class='args'>(inline = false)</span>
|
86
|
-
<span class='block'></span>
|
87
|
-
|
88
|
-
</th>
|
89
|
-
<td class="docstring">
|
90
|
-
<p>
|
91
|
-
Transforms this string into XHTML while ensuring that the result contains
|
92
|
-
one or more block-level elements at the root.
|
93
|
-
</p>
|
94
|
-
|
95
|
-
|
96
|
-
</td>
|
97
|
-
</tr>
|
98
|
-
|
99
|
-
</table>
|
100
|
-
</div>
|
101
|
-
<div class="section methoddetails instance public">
|
102
|
-
<h1>Public Instance Method Details</h1>
|
103
|
-
|
104
|
-
<div class="method">
|
105
|
-
<div class="method_header">
|
106
|
-
<h3>thru_coderay</h3>
|
107
|
-
</div><div id="thru_coderay-instance_method" class="section method">
|
108
|
-
<div class="details_title">
|
109
|
-
<div class='section methodsignature'>
|
110
|
-
<tt class='def'>
|
111
|
-
<span class='visibility'>public</span>
|
112
|
-
<span class='return_types'></span>
|
113
|
-
<span class='name'>thru_coderay</span><span class='args'></span>
|
114
|
-
<span class='block'></span>
|
115
|
-
</tt>
|
116
|
-
</div>
|
117
|
-
|
118
|
-
</div><div class="section docstring">
|
119
|
-
<p>
|
120
|
-
Adds syntax coloring to <code> elements in the given text. If the
|
121
|
-
<code> tag has an attribute lang="…", then that is
|
122
|
-
considered the programming language for which appropriate syntax coloring
|
123
|
-
should be applied. Otherwise, the programming language is assumed to be
|
124
|
-
ruby.
|
125
|
-
</p>
|
126
|
-
|
127
|
-
</div><div class="section source">
|
128
|
-
<span>[<a class="source_link" href="#">View source</a>]</span>
|
129
|
-
<div class="source_code">
|
130
|
-
<table>
|
131
|
-
<tr>
|
132
|
-
<td>
|
133
|
-
<pre class="lines">
|
134
|
-
|
135
|
-
|
136
|
-
81
|
137
|
-
82
|
138
|
-
83
|
139
|
-
84
|
140
|
-
85
|
141
|
-
86
|
142
|
-
87
|
143
|
-
88
|
144
|
-
89
|
145
|
-
90</pre>
|
146
|
-
</td>
|
147
|
-
<td>
|
148
|
-
<pre class="code"><span class="info file"># File 'lib/erbook/to_xhtml.rb', line 81</span>
|
149
|
-
|
150
|
-
<span class='def def kw'>def</span> <span class='thru_coderay identifier id'>thru_coderay</span>
|
151
|
-
<span class='gsub identifier id'>gsub</span> <span class='regexp val'>%r{<(code)(.*?)>(.*?)</\1>}</span><span class='m identifier id'>m</span> <span class='do do kw'>do</span>
|
152
|
-
<span class='atts identifier id'>atts</span><span class='comma token'>,</span> <span class='code identifier id'>code</span> <span class='assign token'>=</span> <span class='$2 nth_ref id'>$2</span><span class='comma token'>,</span> <span class='CGI constant id'>CGI</span><span class='dot token'>.</span><span class='unescapeHTML identifier id'>unescapeHTML</span><span class='lparen token'>(</span><span class='$3 nth_ref id'>$3</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='sub identifier id'>sub</span><span class='lparen token'>(</span><span class='regexp val'>/\A\r?\n/</span><span class='comma token'>,</span> <span class='string val'>''</span><span class='rparen token'>)</span>
|
153
|
-
<span class='lang identifier id'>lang</span> <span class='assign token'>=</span> <span class='atts identifier id'>atts</span><span class='lbrack token'>[</span><span class='regexp val'>/\blang=('|")(.*?)\1/i</span><span class='comma token'>,</span> <span class='integer val'>2</span><span class='rbrack token'>]</span> <span class='orop op'>||</span> <span class='symbol val'>:ruby</span>
|
154
|
-
|
155
|
-
<span class='html identifier id'>html</span> <span class='assign token'>=</span> <span class='CodeRay constant id'>CodeRay</span><span class='dot token'>.</span><span class='scan identifier id'>scan</span><span class='lparen token'>(</span><span class='code identifier id'>code</span><span class='comma token'>,</span> <span class='lang identifier id'>lang</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='html identifier id'>html</span><span class='lparen token'>(</span><span class='symbol val'>:css</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='symbol val'>:style</span><span class='rparen token'>)</span>
|
156
|
-
<span class='tag identifier id'>tag</span> <span class='assign token'>=</span> <span class='if if kw'>if</span> <span class='code identifier id'>code</span> <span class='match op'>=~</span> <span class='regexp val'>/\n/</span> <span class='then then kw'>then</span> <span class='colon op'>:</span><span class='pre identifier id'>pre</span> <span class='else else kw'>else</span> <span class='colon op'>:</span><span class='code identifier id'>code</span> <span class='end end kw'>end</span>
|
157
|
-
|
158
|
-
<span class='dstring node'>%{<#{tag} class="code"#{atts}>#{html}</#{tag}>}</span>
|
159
|
-
<span class='end end kw'>end</span>
|
160
|
-
</pre>
|
161
|
-
</td>
|
162
|
-
</tr>
|
163
|
-
</table>
|
164
|
-
</div>
|
165
|
-
</div>
|
166
|
-
</div>
|
167
|
-
</div>
|
168
|
-
|
169
|
-
<div class="method">
|
170
|
-
<div class="method_header">
|
171
|
-
<h3>thru_maruku</h3>
|
172
|
-
</div><div id="thru_maruku-instance_method" class="section method">
|
173
|
-
<div class="details_title">
|
174
|
-
<div class='section methodsignature'>
|
175
|
-
<tt class='def'>
|
176
|
-
<span class='visibility'>public</span>
|
177
|
-
<span class='return_types'></span>
|
178
|
-
<span class='name'>thru_maruku</span><span class='args'>(inline = false)</span>
|
179
|
-
<span class='block'></span>
|
180
|
-
</tt>
|
181
|
-
</div>
|
182
|
-
|
183
|
-
</div><div class="section docstring">
|
184
|
-
<p>
|
185
|
-
Returns the result of running this string through Maruku.
|
186
|
-
</p>
|
187
|
-
<table>
|
188
|
-
<tr><td valign="top">inline:</td><td>If true, the resulting XHTML will <b>not</b> be wrapped in a XHTML
|
189
|
-
paragraph element.
|
190
|
-
|
191
|
-
</td></tr>
|
192
|
-
</table>
|
193
|
-
|
194
|
-
</div><div class="section source">
|
195
|
-
<span>[<a class="source_link" href="#">View source</a>]</span>
|
196
|
-
<div class="source_code">
|
197
|
-
<table>
|
198
|
-
<tr>
|
199
|
-
<td>
|
200
|
-
<pre class="lines">
|
201
|
-
|
202
|
-
|
203
|
-
71
|
204
|
-
72
|
205
|
-
73
|
206
|
-
74
|
207
|
-
75</pre>
|
208
|
-
</td>
|
209
|
-
<td>
|
210
|
-
<pre class="code"><span class="info file"># File 'lib/erbook/to_xhtml.rb', line 71</span>
|
211
|
-
|
212
|
-
<span class='def def kw'>def</span> <span class='thru_maruku identifier id'>thru_maruku</span> <span class='inline identifier id'>inline</span> <span class='assign token'>=</span> <span class='false false kw'>false</span>
|
213
|
-
<span class='html identifier id'>html</span> <span class='assign token'>=</span> <span class='Maruku constant id'>Maruku</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='to_html identifier id'>to_html</span>
|
214
|
-
<span class='html identifier id'>html</span><span class='dot token'>.</span><span class='sub! fid id'>sub!</span> <span class='regexp val'>%r{\A<p>(.*)</p>\Z}</span><span class='comma token'>,</span> <span class='string val'>'\1'</span> <span class='if if_mod kw'>if</span> <span class='inline identifier id'>inline</span>
|
215
|
-
<span class='html identifier id'>html</span>
|
216
|
-
<span class='end end kw'>end</span>
|
217
|
-
</pre>
|
218
|
-
</td>
|
219
|
-
</tr>
|
220
|
-
</table>
|
221
|
-
</div>
|
222
|
-
</div>
|
223
|
-
</div>
|
224
|
-
</div>
|
225
|
-
|
226
|
-
<div class="method">
|
227
|
-
<div class="method_header">
|
228
|
-
<h3>to_inline_xhtml</h3>
|
229
|
-
</div><div id="to_inline_xhtml-instance_method" class="section method">
|
230
|
-
<div class="details_title">
|
231
|
-
<div class='section methodsignature'>
|
232
|
-
<tt class='def'>
|
233
|
-
<span class='visibility'>public</span>
|
234
|
-
<span class='return_types'></span>
|
235
|
-
<span class='name'>to_inline_xhtml</span><span class='args'></span>
|
236
|
-
<span class='block'></span>
|
237
|
-
</tt>
|
238
|
-
</div>
|
239
|
-
|
240
|
-
</div><div class="section docstring">
|
241
|
-
<p>
|
242
|
-
Transforms this string into an <b>inline</b> XHTML string (one that does
|
243
|
-
not contain any block-level XHTML elements at the root).
|
244
|
-
</p>
|
245
|
-
|
246
|
-
</div><div class="section source">
|
247
|
-
<span>[<a class="source_link" href="#">View source</a>]</span>
|
248
|
-
<div class="source_code">
|
249
|
-
<table>
|
250
|
-
<tr>
|
251
|
-
<td>
|
252
|
-
<pre class="lines">
|
253
|
-
|
254
|
-
|
255
|
-
33
|
256
|
-
34
|
257
|
-
35</pre>
|
258
|
-
</td>
|
259
|
-
<td>
|
260
|
-
<pre class="code"><span class="info file"># File 'lib/erbook/to_xhtml.rb', line 33</span>
|
261
|
-
|
262
|
-
<span class='def def kw'>def</span> <span class='to_inline_xhtml identifier id'>to_inline_xhtml</span>
|
263
|
-
<span class='to_xhtml identifier id'>to_xhtml</span> <span class='true true kw'>true</span>
|
264
|
-
<span class='end end kw'>end</span>
|
265
|
-
</pre>
|
266
|
-
</td>
|
267
|
-
</tr>
|
268
|
-
</table>
|
269
|
-
</div>
|
270
|
-
</div>
|
271
|
-
</div>
|
272
|
-
</div>
|
273
|
-
|
274
|
-
<div class="method">
|
275
|
-
<div class="method_header">
|
276
|
-
<h3>to_xhtml</h3>
|
277
|
-
</div><div id="to_xhtml-instance_method" class="section method">
|
278
|
-
<div class="details_title">
|
279
|
-
<div class='section methodsignature'>
|
280
|
-
<tt class='def'>
|
281
|
-
<span class='visibility'>public</span>
|
282
|
-
<span class='return_types'></span>
|
283
|
-
<span class='name'>to_xhtml</span><span class='args'>(inline = false)</span>
|
284
|
-
<span class='block'></span>
|
285
|
-
</tt>
|
286
|
-
</div>
|
287
|
-
|
288
|
-
</div><div class="section docstring">
|
289
|
-
<p>
|
290
|
-
Transforms this string into XHTML while ensuring that the result contains
|
291
|
-
one or more block-level elements at the root.
|
292
|
-
</p>
|
293
|
-
<table>
|
294
|
-
<tr><td valign="top">inline:</td><td>If true, the resulting XHTML will <b>not</b> contain a block-level element
|
295
|
-
at the root.
|
296
|
-
|
297
|
-
</td></tr>
|
298
|
-
</table>
|
299
|
-
|
300
|
-
</div><div class="section source">
|
301
|
-
<span>[<a class="source_link" href="#">View source</a>]</span>
|
302
|
-
<div class="source_code">
|
303
|
-
<table>
|
304
|
-
<tr>
|
305
|
-
<td>
|
306
|
-
<pre class="lines">
|
307
|
-
|
308
|
-
|
309
|
-
43
|
310
|
-
44
|
311
|
-
45
|
312
|
-
46
|
313
|
-
47
|
314
|
-
48
|
315
|
-
49
|
316
|
-
50
|
317
|
-
51
|
318
|
-
52
|
319
|
-
53
|
320
|
-
54
|
321
|
-
55
|
322
|
-
56
|
323
|
-
57
|
324
|
-
58
|
325
|
-
59
|
326
|
-
60
|
327
|
-
61
|
328
|
-
62
|
329
|
-
63
|
330
|
-
64</pre>
|
331
|
-
</td>
|
332
|
-
<td>
|
333
|
-
<pre class="code"><span class="info file"># File 'lib/erbook/to_xhtml.rb', line 43</span>
|
334
|
-
|
335
|
-
<span class='def def kw'>def</span> <span class='to_xhtml identifier id'>to_xhtml</span> <span class='inline identifier id'>inline</span> <span class='assign token'>=</span> <span class='false false kw'>false</span>
|
336
|
-
<span class='with_protected_tags identifier id'>with_protected_tags</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='comma token'>,</span> <span class='VERBATIM_TAGS constant id'>VERBATIM_TAGS</span><span class='comma token'>,</span> <span class='true true kw'>true</span><span class='rparen token'>)</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='text identifier id'>text</span><span class='bitor op'>|</span>
|
337
|
-
<span class='html identifier id'>html</span> <span class='assign token'>=</span> <span class='with_protected_tags identifier id'>with_protected_tags</span><span class='lparen token'>(</span><span class='text identifier id'>text</span><span class='comma token'>,</span> <span class='PROTECTED_TAGS constant id'>PROTECTED_TAGS</span><span class='comma token'>,</span> <span class='false false kw'>false</span><span class='rparen token'>)</span> <span class='do do kw'>do</span>
|
338
|
-
<span class='bitor op'>|</span><span class='s identifier id'>s</span><span class='bitor op'>|</span> <span class='s identifier id'>s</span><span class='dot token'>.</span><span class='thru_maruku identifier id'>thru_maruku</span> <span class='inline identifier id'>inline</span>
|
339
|
-
<span class='end end kw'>end</span>
|
340
|
-
|
341
|
-
<span class='comment val'># Markdown's "code spans" should really be "pre spans"</span>
|
342
|
-
<span class='while while kw'>while</span> <span class='html identifier id'>html</span><span class='dot token'>.</span><span class='gsub! fid id'>gsub!</span> <span class='regexp val'>%r{(<pre>)<code>(.*?)</code>(</pre>)}</span><span class='m identifier id'>m</span><span class='comma token'>,</span> <span class='string val'>'\1\2\3'</span>
|
343
|
-
<span class='end end kw'>end</span>
|
344
|
-
|
345
|
-
<span class='comment val'># allow user to type <pre> blocks on single lines</span>
|
346
|
-
<span class='comment val'># without affecting the display of their content</span>
|
347
|
-
<span class='html identifier id'>html</span><span class='dot token'>.</span><span class='gsub! fid id'>gsub!</span> <span class='regexp val'>%r{(<pre>)[ \t]*\r?\n|\r?\n[ \t]*(</pre>)}</span><span class='comma token'>,</span> <span class='string val'>'\1\2'</span>
|
348
|
-
|
349
|
-
<span class='comment val'># ensure tables have a border: this *greatly* improves</span>
|
350
|
-
<span class='comment val'># readability in text-based web browsers like w3m and lynx</span>
|
351
|
-
<span class='html identifier id'>html</span><span class='dot token'>.</span><span class='gsub! fid id'>gsub!</span> <span class='regexp val'>%r/<table\b/</span><span class='comma token'>,</span> <span class='string val'>'\& border="1"'</span>
|
352
|
-
|
353
|
-
<span class='comment val'># add syntax coloring</span>
|
354
|
-
<span class='html identifier id'>html</span><span class='dot token'>.</span><span class='thru_coderay identifier id'>thru_coderay</span>
|
355
|
-
<span class='end end kw'>end</span>
|
356
|
-
<span class='end end kw'>end</span>
|
357
|
-
</pre>
|
358
|
-
</td>
|
359
|
-
</tr>
|
360
|
-
</table>
|
361
|
-
</div>
|
362
|
-
</div>
|
363
|
-
</div>
|
364
|
-
</div>
|
365
|
-
|
366
|
-
</div>
|
367
|
-
</div>
|
368
|
-
|
369
|
-
</div>
|
370
|
-
</div>
|
371
|
-
</body>
|
372
|
-
</html>
|
data/doc/api/all-methods.html
DELETED
@@ -1,253 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
6
|
-
<link rel="stylesheet" href="style.css" type="text/css" charset="utf-8" />
|
7
|
-
<link rel="stylesheet" href="syntax_highlight.css" type="text/css" charset="utf-8" />
|
8
|
-
|
9
|
-
<title>All Modules / Classes</title>
|
10
|
-
<base target="main" />
|
11
|
-
</head>
|
12
|
-
<body>
|
13
|
-
<div id="nav" class="methods">
|
14
|
-
<h1>Method List</h1>
|
15
|
-
<ul>
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
<li nowrap>
|
20
|
-
<a title="#error" href="ERBook/Document.html#error-instance_method">#error</a>
|
21
|
-
|
22
|
-
<em>(class Document)</em>
|
23
|
-
|
24
|
-
</li>
|
25
|
-
|
26
|
-
|
27
|
-
<li nowrap>
|
28
|
-
<a title="#format" href="ERBook/Document.html#format-instance_method">#format</a>
|
29
|
-
|
30
|
-
<em>(class Document)</em>
|
31
|
-
|
32
|
-
</li>
|
33
|
-
|
34
|
-
|
35
|
-
<li nowrap>
|
36
|
-
<a title="#initialize" href="ERBook/Document.html#initialize-instance_method">#initialize</a>
|
37
|
-
|
38
|
-
<em>(class Document)</em>
|
39
|
-
|
40
|
-
</li>
|
41
|
-
|
42
|
-
|
43
|
-
<li nowrap>
|
44
|
-
<a title="#nodes" href="ERBook/Document.html#nodes-instance_method">#nodes</a>
|
45
|
-
|
46
|
-
<em>(class Document)</em>
|
47
|
-
|
48
|
-
</li>
|
49
|
-
|
50
|
-
|
51
|
-
<li nowrap>
|
52
|
-
<a title="#nodes_by_type" href="ERBook/Document.html#nodes_by_type-instance_method">#nodes_by_type</a>
|
53
|
-
|
54
|
-
<em>(class Document)</em>
|
55
|
-
|
56
|
-
</li>
|
57
|
-
|
58
|
-
|
59
|
-
<li nowrap>
|
60
|
-
<a title="#roots" href="ERBook/Document.html#roots-instance_method">#roots</a>
|
61
|
-
|
62
|
-
<em>(class Document)</em>
|
63
|
-
|
64
|
-
</li>
|
65
|
-
|
66
|
-
|
67
|
-
<li nowrap>
|
68
|
-
<a title="#to_s" href="ERBook/Document.html#to_s-instance_method">#to_s</a>
|
69
|
-
|
70
|
-
<em>(class Document)</em>
|
71
|
-
|
72
|
-
</li>
|
73
|
-
|
74
|
-
|
75
|
-
<li nowrap>
|
76
|
-
<a title="#to_s" href="ERBook/Document/Node.html#to_s-instance_method">#to_s</a>
|
77
|
-
|
78
|
-
<em>(class Node)</em>
|
79
|
-
|
80
|
-
</li>
|
81
|
-
|
82
|
-
|
83
|
-
<li nowrap>
|
84
|
-
<a title="digest" href="ERBook/Document.html#digest-class_method">digest</a>
|
85
|
-
|
86
|
-
<em>(class Document)</em>
|
87
|
-
|
88
|
-
</li>
|
89
|
-
|
90
|
-
|
91
|
-
<li nowrap>
|
92
|
-
<a title="#buffer" href="ERBook/Template.html#buffer-instance_method">#buffer</a>
|
93
|
-
|
94
|
-
<em>(class Template)</em>
|
95
|
-
|
96
|
-
</li>
|
97
|
-
|
98
|
-
|
99
|
-
<li nowrap>
|
100
|
-
<a title="#content_from_block" href="ERBook/Template.html#content_from_block-instance_method">#content_from_block</a>
|
101
|
-
|
102
|
-
<em>(class Template)</em>
|
103
|
-
|
104
|
-
</li>
|
105
|
-
|
106
|
-
|
107
|
-
<li nowrap>
|
108
|
-
<a title="#initialize" href="ERBook/Template.html#initialize-instance_method">#initialize</a>
|
109
|
-
|
110
|
-
<em>(class Template)</em>
|
111
|
-
|
112
|
-
</li>
|
113
|
-
|
114
|
-
|
115
|
-
<li nowrap>
|
116
|
-
<a title="#render_with" href="ERBook/Template.html#render_with-instance_method">#render_with</a>
|
117
|
-
|
118
|
-
<em>(class Template)</em>
|
119
|
-
|
120
|
-
</li>
|
121
|
-
|
122
|
-
|
123
|
-
<li nowrap>
|
124
|
-
<a title="#comment_html" href="RDoc/AnyMethod.html#comment_html-instance_method">#comment_html</a>
|
125
|
-
|
126
|
-
<em>(class AnyMethod)</em>
|
127
|
-
|
128
|
-
</li>
|
129
|
-
|
130
|
-
|
131
|
-
<li nowrap>
|
132
|
-
<a title="#decl" href="RDoc/AnyMethod.html#decl-instance_method">#decl</a>
|
133
|
-
|
134
|
-
<em>(class AnyMethod)</em>
|
135
|
-
|
136
|
-
</li>
|
137
|
-
|
138
|
-
|
139
|
-
<li nowrap>
|
140
|
-
<a title="#full_name" href="RDoc/AnyMethod.html#full_name-instance_method">#full_name</a>
|
141
|
-
|
142
|
-
<em>(class AnyMethod)</em>
|
143
|
-
|
144
|
-
</li>
|
145
|
-
|
146
|
-
|
147
|
-
<li nowrap>
|
148
|
-
<a title="#top_level" href="RDoc/AnyMethod.html#top_level-instance_method">#top_level</a>
|
149
|
-
|
150
|
-
<em>(class AnyMethod)</em>
|
151
|
-
|
152
|
-
</li>
|
153
|
-
|
154
|
-
|
155
|
-
<li nowrap>
|
156
|
-
<a title="#method_missing" href="RDoc/DummyMixin.html#method_missing-instance_method">#method_missing</a>
|
157
|
-
|
158
|
-
<em>(module DummyMixin)</em>
|
159
|
-
|
160
|
-
</li>
|
161
|
-
|
162
|
-
|
163
|
-
<li nowrap>
|
164
|
-
<a title="#quiet" href="RDoc/DummyOptions.html#quiet-instance_method">#quiet</a>
|
165
|
-
|
166
|
-
<em>(class DummyOptions)</em>
|
167
|
-
|
168
|
-
</li>
|
169
|
-
|
170
|
-
|
171
|
-
<li nowrap>
|
172
|
-
<a title="all_classes" href="RDoc/TopLevel.html#all_classes-class_method">all_classes</a>
|
173
|
-
|
174
|
-
<em>(class TopLevel)</em>
|
175
|
-
|
176
|
-
</li>
|
177
|
-
|
178
|
-
|
179
|
-
<li nowrap>
|
180
|
-
<a title="all_methods" href="RDoc/TopLevel.html#all_methods-class_method">all_methods</a>
|
181
|
-
|
182
|
-
<em>(class TopLevel)</em>
|
183
|
-
|
184
|
-
</li>
|
185
|
-
|
186
|
-
|
187
|
-
<li nowrap>
|
188
|
-
<a title="all_modules" href="RDoc/TopLevel.html#all_modules-class_method">all_modules</a>
|
189
|
-
|
190
|
-
<em>(class TopLevel)</em>
|
191
|
-
|
192
|
-
</li>
|
193
|
-
|
194
|
-
|
195
|
-
<li nowrap>
|
196
|
-
<a title="parse" href="RDoc/TopLevel.html#parse-class_method">parse</a>
|
197
|
-
|
198
|
-
<em>(class TopLevel)</em>
|
199
|
-
|
200
|
-
</li>
|
201
|
-
|
202
|
-
|
203
|
-
<li nowrap>
|
204
|
-
<a title="parse_file" href="RDoc/TopLevel.html#parse_file-class_method">parse_file</a>
|
205
|
-
|
206
|
-
<em>(class TopLevel)</em>
|
207
|
-
|
208
|
-
</li>
|
209
|
-
|
210
|
-
|
211
|
-
<li nowrap>
|
212
|
-
<a title="refresh_all_classes_and_modules" href="RDoc/TopLevel.html#refresh_all_classes_and_modules-class_method">refresh_all_classes_and_modules</a>
|
213
|
-
|
214
|
-
<em>(class TopLevel)</em>
|
215
|
-
|
216
|
-
</li>
|
217
|
-
|
218
|
-
|
219
|
-
<li nowrap>
|
220
|
-
<a title="#thru_coderay" href="String.html#thru_coderay-instance_method">#thru_coderay</a>
|
221
|
-
|
222
|
-
<em>(class String)</em>
|
223
|
-
|
224
|
-
</li>
|
225
|
-
|
226
|
-
|
227
|
-
<li nowrap>
|
228
|
-
<a title="#thru_maruku" href="String.html#thru_maruku-instance_method">#thru_maruku</a>
|
229
|
-
|
230
|
-
<em>(class String)</em>
|
231
|
-
|
232
|
-
</li>
|
233
|
-
|
234
|
-
|
235
|
-
<li nowrap>
|
236
|
-
<a title="#to_inline_xhtml" href="String.html#to_inline_xhtml-instance_method">#to_inline_xhtml</a>
|
237
|
-
|
238
|
-
<em>(class String)</em>
|
239
|
-
|
240
|
-
</li>
|
241
|
-
|
242
|
-
|
243
|
-
<li nowrap>
|
244
|
-
<a title="#to_xhtml" href="String.html#to_xhtml-instance_method">#to_xhtml</a>
|
245
|
-
|
246
|
-
<em>(class String)</em>
|
247
|
-
|
248
|
-
</li>
|
249
|
-
|
250
|
-
</ul>
|
251
|
-
</div>
|
252
|
-
</body>
|
253
|
-
</html>
|