katipo-markup-html 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +19 -0
- data/README.md +15 -0
- data/lib/katipo-markup-html.rb +5 -0
- data/manifest.txt +1 -0
- data/meta-/Katipo/HTML.rb +1462 -0
- data/share/katipo-markup-html.ir +117 -0
- data/share/katipo-markup-html.jar +0 -0
- metadata +64 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 93effce42874b27de3f88a4c2ae19f10f6f95ae2
|
4
|
+
data.tar.gz: 2197b218fc88d3b32fa937ed80ad898ce1835a0d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0c6e77b3767bc51b5cc05beec8e14663c90a50f22ce27092a0fbe0eab6f5bea772df312d0f8bdfc415c23d998dab4ce68af8b1be502b4ec4d716be44609c278a
|
7
|
+
data.tar.gz: 90a7f9aeb450cb4dd11ee2f46fc007e65978bc39fd2b8883f906d005cbd2904cb453ae1d033c25aa6b9425a04a90e9850e1d9cebf29df313b8d6085c097e8197
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (C) 2011-2014 InfraRuby Vision
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
4
|
+
copy of this software and associated documentation files (the "Software"),
|
5
|
+
to deal in the Software without restriction, including without limitation
|
6
|
+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
7
|
+
and/or sell copies of the Software, and to permit persons to whom the
|
8
|
+
Software is furnished to do so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
11
|
+
all copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
18
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
19
|
+
DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
data/manifest.txt
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
**/*.rb
|
@@ -0,0 +1,1462 @@
|
|
1
|
+
module Katipo
|
2
|
+
## <>
|
3
|
+
module HTML
|
4
|
+
include(Markup)
|
5
|
+
## {=> String}, &#{self -> void}? -> void
|
6
|
+
def a(attributes = {}, &block)
|
7
|
+
if attributes.empty?
|
8
|
+
io.write("<a>")
|
9
|
+
else
|
10
|
+
io.write(Markup.encode_tag("a", attributes))
|
11
|
+
end
|
12
|
+
if block_given?
|
13
|
+
instance_eval(&block)
|
14
|
+
io.write("</a>")
|
15
|
+
end
|
16
|
+
return
|
17
|
+
end
|
18
|
+
## {=> String}, &#{self -> void}? -> void
|
19
|
+
def abbr(attributes = {}, &block)
|
20
|
+
if attributes.empty?
|
21
|
+
io.write("<abbr>")
|
22
|
+
else
|
23
|
+
io.write(Markup.encode_tag("abbr", attributes))
|
24
|
+
end
|
25
|
+
if block_given?
|
26
|
+
instance_eval(&block)
|
27
|
+
io.write("</abbr>")
|
28
|
+
end
|
29
|
+
return
|
30
|
+
end
|
31
|
+
## {=> String}, &#{self -> void}? -> void
|
32
|
+
def address(attributes = {}, &block)
|
33
|
+
if attributes.empty?
|
34
|
+
io.write("<address>")
|
35
|
+
else
|
36
|
+
io.write(Markup.encode_tag("address", attributes))
|
37
|
+
end
|
38
|
+
if block_given?
|
39
|
+
instance_eval(&block)
|
40
|
+
io.write("</address>")
|
41
|
+
end
|
42
|
+
return
|
43
|
+
end
|
44
|
+
## {=> String}, &#{self -> void}? -> void
|
45
|
+
def area(attributes = {}, &block)
|
46
|
+
if attributes.empty?
|
47
|
+
io.write("<area>")
|
48
|
+
else
|
49
|
+
io.write(Markup.encode_tag("area", attributes))
|
50
|
+
end
|
51
|
+
if block_given?
|
52
|
+
instance_eval(&block)
|
53
|
+
io.write("</area>")
|
54
|
+
end
|
55
|
+
return
|
56
|
+
end
|
57
|
+
## {=> String}, &#{self -> void}? -> void
|
58
|
+
def article(attributes = {}, &block)
|
59
|
+
if attributes.empty?
|
60
|
+
io.write("<article>")
|
61
|
+
else
|
62
|
+
io.write(Markup.encode_tag("article", attributes))
|
63
|
+
end
|
64
|
+
if block_given?
|
65
|
+
instance_eval(&block)
|
66
|
+
io.write("</article>")
|
67
|
+
end
|
68
|
+
return
|
69
|
+
end
|
70
|
+
## {=> String}, &#{self -> void}? -> void
|
71
|
+
def aside(attributes = {}, &block)
|
72
|
+
if attributes.empty?
|
73
|
+
io.write("<aside>")
|
74
|
+
else
|
75
|
+
io.write(Markup.encode_tag("aside", attributes))
|
76
|
+
end
|
77
|
+
if block_given?
|
78
|
+
instance_eval(&block)
|
79
|
+
io.write("</aside>")
|
80
|
+
end
|
81
|
+
return
|
82
|
+
end
|
83
|
+
## {=> String}, &#{self -> void}? -> void
|
84
|
+
def audio(attributes = {}, &block)
|
85
|
+
if attributes.empty?
|
86
|
+
io.write("<audio>")
|
87
|
+
else
|
88
|
+
io.write(Markup.encode_tag("audio", attributes))
|
89
|
+
end
|
90
|
+
if block_given?
|
91
|
+
instance_eval(&block)
|
92
|
+
io.write("</audio>")
|
93
|
+
end
|
94
|
+
return
|
95
|
+
end
|
96
|
+
## {=> String}, &#{self -> void}? -> void
|
97
|
+
def b(attributes = {}, &block)
|
98
|
+
if attributes.empty?
|
99
|
+
io.write("<b>")
|
100
|
+
else
|
101
|
+
io.write(Markup.encode_tag("b", attributes))
|
102
|
+
end
|
103
|
+
if block_given?
|
104
|
+
instance_eval(&block)
|
105
|
+
io.write("</b>")
|
106
|
+
end
|
107
|
+
return
|
108
|
+
end
|
109
|
+
## {=> String}, &#{self -> void}? -> void
|
110
|
+
def base(attributes = {}, &block)
|
111
|
+
if attributes.empty?
|
112
|
+
io.write("<base>")
|
113
|
+
else
|
114
|
+
io.write(Markup.encode_tag("base", attributes))
|
115
|
+
end
|
116
|
+
if block_given?
|
117
|
+
instance_eval(&block)
|
118
|
+
io.write("</base>")
|
119
|
+
end
|
120
|
+
return
|
121
|
+
end
|
122
|
+
## {=> String}, &#{self -> void}? -> void
|
123
|
+
def bdi(attributes = {}, &block)
|
124
|
+
if attributes.empty?
|
125
|
+
io.write("<bdi>")
|
126
|
+
else
|
127
|
+
io.write(Markup.encode_tag("bdi", attributes))
|
128
|
+
end
|
129
|
+
if block_given?
|
130
|
+
instance_eval(&block)
|
131
|
+
io.write("</bdi>")
|
132
|
+
end
|
133
|
+
return
|
134
|
+
end
|
135
|
+
## {=> String}, &#{self -> void}? -> void
|
136
|
+
def bdo(attributes = {}, &block)
|
137
|
+
if attributes.empty?
|
138
|
+
io.write("<bdo>")
|
139
|
+
else
|
140
|
+
io.write(Markup.encode_tag("bdo", attributes))
|
141
|
+
end
|
142
|
+
if block_given?
|
143
|
+
instance_eval(&block)
|
144
|
+
io.write("</bdo>")
|
145
|
+
end
|
146
|
+
return
|
147
|
+
end
|
148
|
+
## {=> String}, &#{self -> void}? -> void
|
149
|
+
def blockquote(attributes = {}, &block)
|
150
|
+
if attributes.empty?
|
151
|
+
io.write("<blockquote>")
|
152
|
+
else
|
153
|
+
io.write(Markup.encode_tag("blockquote", attributes))
|
154
|
+
end
|
155
|
+
if block_given?
|
156
|
+
instance_eval(&block)
|
157
|
+
io.write("</blockquote>")
|
158
|
+
end
|
159
|
+
return
|
160
|
+
end
|
161
|
+
## {=> String}, &#{self -> void}? -> void
|
162
|
+
def body(attributes = {}, &block)
|
163
|
+
if attributes.empty?
|
164
|
+
io.write("<body>")
|
165
|
+
else
|
166
|
+
io.write(Markup.encode_tag("body", attributes))
|
167
|
+
end
|
168
|
+
if block_given?
|
169
|
+
instance_eval(&block)
|
170
|
+
io.write("</body>")
|
171
|
+
end
|
172
|
+
return
|
173
|
+
end
|
174
|
+
## {=> String}, &#{self -> void}? -> void
|
175
|
+
def body(attributes = {}, &block)
|
176
|
+
if attributes.empty?
|
177
|
+
io.write("<body>")
|
178
|
+
else
|
179
|
+
io.write(Markup.encode_tag("body", attributes))
|
180
|
+
end
|
181
|
+
if block_given?
|
182
|
+
instance_eval(&block)
|
183
|
+
io.write("</body>")
|
184
|
+
end
|
185
|
+
return
|
186
|
+
end
|
187
|
+
## {=> String}, &#{self -> void}? -> void
|
188
|
+
def br(attributes = {}, &block)
|
189
|
+
if attributes.empty?
|
190
|
+
io.write("<br>")
|
191
|
+
else
|
192
|
+
io.write(Markup.encode_tag("br", attributes))
|
193
|
+
end
|
194
|
+
if block_given?
|
195
|
+
instance_eval(&block)
|
196
|
+
io.write("</br>")
|
197
|
+
end
|
198
|
+
return
|
199
|
+
end
|
200
|
+
## {=> String}, &#{self -> void}? -> void
|
201
|
+
def button(attributes = {}, &block)
|
202
|
+
if attributes.empty?
|
203
|
+
io.write("<button>")
|
204
|
+
else
|
205
|
+
io.write(Markup.encode_tag("button", attributes))
|
206
|
+
end
|
207
|
+
if block_given?
|
208
|
+
instance_eval(&block)
|
209
|
+
io.write("</button>")
|
210
|
+
end
|
211
|
+
return
|
212
|
+
end
|
213
|
+
## {=> String}, &#{self -> void}? -> void
|
214
|
+
def canvas(attributes = {}, &block)
|
215
|
+
if attributes.empty?
|
216
|
+
io.write("<canvas>")
|
217
|
+
else
|
218
|
+
io.write(Markup.encode_tag("canvas", attributes))
|
219
|
+
end
|
220
|
+
if block_given?
|
221
|
+
instance_eval(&block)
|
222
|
+
io.write("</canvas>")
|
223
|
+
end
|
224
|
+
return
|
225
|
+
end
|
226
|
+
## {=> String}, &#{self -> void}? -> void
|
227
|
+
def caption(attributes = {}, &block)
|
228
|
+
if attributes.empty?
|
229
|
+
io.write("<caption>")
|
230
|
+
else
|
231
|
+
io.write(Markup.encode_tag("caption", attributes))
|
232
|
+
end
|
233
|
+
if block_given?
|
234
|
+
instance_eval(&block)
|
235
|
+
io.write("</caption>")
|
236
|
+
end
|
237
|
+
return
|
238
|
+
end
|
239
|
+
## {=> String}, &#{self -> void}? -> void
|
240
|
+
def cite(attributes = {}, &block)
|
241
|
+
if attributes.empty?
|
242
|
+
io.write("<cite>")
|
243
|
+
else
|
244
|
+
io.write(Markup.encode_tag("cite", attributes))
|
245
|
+
end
|
246
|
+
if block_given?
|
247
|
+
instance_eval(&block)
|
248
|
+
io.write("</cite>")
|
249
|
+
end
|
250
|
+
return
|
251
|
+
end
|
252
|
+
## {=> String}, &#{self -> void}? -> void
|
253
|
+
def code(attributes = {}, &block)
|
254
|
+
if attributes.empty?
|
255
|
+
io.write("<code>")
|
256
|
+
else
|
257
|
+
io.write(Markup.encode_tag("code", attributes))
|
258
|
+
end
|
259
|
+
if block_given?
|
260
|
+
instance_eval(&block)
|
261
|
+
io.write("</code>")
|
262
|
+
end
|
263
|
+
return
|
264
|
+
end
|
265
|
+
## {=> String}, &#{self -> void}? -> void
|
266
|
+
def col(attributes = {}, &block)
|
267
|
+
if attributes.empty?
|
268
|
+
io.write("<col>")
|
269
|
+
else
|
270
|
+
io.write(Markup.encode_tag("col", attributes))
|
271
|
+
end
|
272
|
+
if block_given?
|
273
|
+
instance_eval(&block)
|
274
|
+
io.write("</col>")
|
275
|
+
end
|
276
|
+
return
|
277
|
+
end
|
278
|
+
## {=> String}, &#{self -> void}? -> void
|
279
|
+
def colgroup(attributes = {}, &block)
|
280
|
+
if attributes.empty?
|
281
|
+
io.write("<colgroup>")
|
282
|
+
else
|
283
|
+
io.write(Markup.encode_tag("colgroup", attributes))
|
284
|
+
end
|
285
|
+
if block_given?
|
286
|
+
instance_eval(&block)
|
287
|
+
io.write("</colgroup>")
|
288
|
+
end
|
289
|
+
return
|
290
|
+
end
|
291
|
+
## {=> String}, &#{self -> void}? -> void
|
292
|
+
def data(attributes = {}, &block)
|
293
|
+
if attributes.empty?
|
294
|
+
io.write("<data>")
|
295
|
+
else
|
296
|
+
io.write(Markup.encode_tag("data", attributes))
|
297
|
+
end
|
298
|
+
if block_given?
|
299
|
+
instance_eval(&block)
|
300
|
+
io.write("</data>")
|
301
|
+
end
|
302
|
+
return
|
303
|
+
end
|
304
|
+
## {=> String}, &#{self -> void}? -> void
|
305
|
+
def datalist(attributes = {}, &block)
|
306
|
+
if attributes.empty?
|
307
|
+
io.write("<datalist>")
|
308
|
+
else
|
309
|
+
io.write(Markup.encode_tag("datalist", attributes))
|
310
|
+
end
|
311
|
+
if block_given?
|
312
|
+
instance_eval(&block)
|
313
|
+
io.write("</datalist>")
|
314
|
+
end
|
315
|
+
return
|
316
|
+
end
|
317
|
+
## {=> String}, &#{self -> void}? -> void
|
318
|
+
def dd(attributes = {}, &block)
|
319
|
+
if attributes.empty?
|
320
|
+
io.write("<dd>")
|
321
|
+
else
|
322
|
+
io.write(Markup.encode_tag("dd", attributes))
|
323
|
+
end
|
324
|
+
if block_given?
|
325
|
+
instance_eval(&block)
|
326
|
+
io.write("</dd>")
|
327
|
+
end
|
328
|
+
return
|
329
|
+
end
|
330
|
+
## {=> String}, &#{self -> void}? -> void
|
331
|
+
def del(attributes = {}, &block)
|
332
|
+
if attributes.empty?
|
333
|
+
io.write("<del>")
|
334
|
+
else
|
335
|
+
io.write(Markup.encode_tag("del", attributes))
|
336
|
+
end
|
337
|
+
if block_given?
|
338
|
+
instance_eval(&block)
|
339
|
+
io.write("</del>")
|
340
|
+
end
|
341
|
+
return
|
342
|
+
end
|
343
|
+
## {=> String}, &#{self -> void}? -> void
|
344
|
+
def details(attributes = {}, &block)
|
345
|
+
if attributes.empty?
|
346
|
+
io.write("<details>")
|
347
|
+
else
|
348
|
+
io.write(Markup.encode_tag("details", attributes))
|
349
|
+
end
|
350
|
+
if block_given?
|
351
|
+
instance_eval(&block)
|
352
|
+
io.write("</details>")
|
353
|
+
end
|
354
|
+
return
|
355
|
+
end
|
356
|
+
## {=> String}, &#{self -> void}? -> void
|
357
|
+
def dfn(attributes = {}, &block)
|
358
|
+
if attributes.empty?
|
359
|
+
io.write("<dfn>")
|
360
|
+
else
|
361
|
+
io.write(Markup.encode_tag("dfn", attributes))
|
362
|
+
end
|
363
|
+
if block_given?
|
364
|
+
instance_eval(&block)
|
365
|
+
io.write("</dfn>")
|
366
|
+
end
|
367
|
+
return
|
368
|
+
end
|
369
|
+
## {=> String}, &#{self -> void}? -> void
|
370
|
+
def div(attributes = {}, &block)
|
371
|
+
if attributes.empty?
|
372
|
+
io.write("<div>")
|
373
|
+
else
|
374
|
+
io.write(Markup.encode_tag("div", attributes))
|
375
|
+
end
|
376
|
+
if block_given?
|
377
|
+
instance_eval(&block)
|
378
|
+
io.write("</div>")
|
379
|
+
end
|
380
|
+
return
|
381
|
+
end
|
382
|
+
## {=> String}, &#{self -> void}? -> void
|
383
|
+
def dl(attributes = {}, &block)
|
384
|
+
if attributes.empty?
|
385
|
+
io.write("<dl>")
|
386
|
+
else
|
387
|
+
io.write(Markup.encode_tag("dl", attributes))
|
388
|
+
end
|
389
|
+
if block_given?
|
390
|
+
instance_eval(&block)
|
391
|
+
io.write("</dl>")
|
392
|
+
end
|
393
|
+
return
|
394
|
+
end
|
395
|
+
## {=> String}, &#{self -> void}? -> void
|
396
|
+
def dt(attributes = {}, &block)
|
397
|
+
if attributes.empty?
|
398
|
+
io.write("<dt>")
|
399
|
+
else
|
400
|
+
io.write(Markup.encode_tag("dt", attributes))
|
401
|
+
end
|
402
|
+
if block_given?
|
403
|
+
instance_eval(&block)
|
404
|
+
io.write("</dt>")
|
405
|
+
end
|
406
|
+
return
|
407
|
+
end
|
408
|
+
## {=> String}, &#{self -> void}? -> void
|
409
|
+
def em(attributes = {}, &block)
|
410
|
+
if attributes.empty?
|
411
|
+
io.write("<em>")
|
412
|
+
else
|
413
|
+
io.write(Markup.encode_tag("em", attributes))
|
414
|
+
end
|
415
|
+
if block_given?
|
416
|
+
instance_eval(&block)
|
417
|
+
io.write("</em>")
|
418
|
+
end
|
419
|
+
return
|
420
|
+
end
|
421
|
+
## {=> String}, &#{self -> void}? -> void
|
422
|
+
def embed(attributes = {}, &block)
|
423
|
+
if attributes.empty?
|
424
|
+
io.write("<embed>")
|
425
|
+
else
|
426
|
+
io.write(Markup.encode_tag("embed", attributes))
|
427
|
+
end
|
428
|
+
if block_given?
|
429
|
+
instance_eval(&block)
|
430
|
+
io.write("</embed>")
|
431
|
+
end
|
432
|
+
return
|
433
|
+
end
|
434
|
+
## {=> String}, &#{self -> void}? -> void
|
435
|
+
def fieldset(attributes = {}, &block)
|
436
|
+
if attributes.empty?
|
437
|
+
io.write("<fieldset>")
|
438
|
+
else
|
439
|
+
io.write(Markup.encode_tag("fieldset", attributes))
|
440
|
+
end
|
441
|
+
if block_given?
|
442
|
+
instance_eval(&block)
|
443
|
+
io.write("</fieldset>")
|
444
|
+
end
|
445
|
+
return
|
446
|
+
end
|
447
|
+
## {=> String}, &#{self -> void}? -> void
|
448
|
+
def figcaption(attributes = {}, &block)
|
449
|
+
if attributes.empty?
|
450
|
+
io.write("<figcaption>")
|
451
|
+
else
|
452
|
+
io.write(Markup.encode_tag("figcaption", attributes))
|
453
|
+
end
|
454
|
+
if block_given?
|
455
|
+
instance_eval(&block)
|
456
|
+
io.write("</figcaption>")
|
457
|
+
end
|
458
|
+
return
|
459
|
+
end
|
460
|
+
## {=> String}, &#{self -> void}? -> void
|
461
|
+
def figure(attributes = {}, &block)
|
462
|
+
if attributes.empty?
|
463
|
+
io.write("<figure>")
|
464
|
+
else
|
465
|
+
io.write(Markup.encode_tag("figure", attributes))
|
466
|
+
end
|
467
|
+
if block_given?
|
468
|
+
instance_eval(&block)
|
469
|
+
io.write("</figure>")
|
470
|
+
end
|
471
|
+
return
|
472
|
+
end
|
473
|
+
## {=> String}, &#{self -> void}? -> void
|
474
|
+
def footer(attributes = {}, &block)
|
475
|
+
if attributes.empty?
|
476
|
+
io.write("<footer>")
|
477
|
+
else
|
478
|
+
io.write(Markup.encode_tag("footer", attributes))
|
479
|
+
end
|
480
|
+
if block_given?
|
481
|
+
instance_eval(&block)
|
482
|
+
io.write("</footer>")
|
483
|
+
end
|
484
|
+
return
|
485
|
+
end
|
486
|
+
## {=> String}, &#{self -> void}? -> void
|
487
|
+
def form(attributes = {}, &block)
|
488
|
+
if attributes.empty?
|
489
|
+
io.write("<form>")
|
490
|
+
else
|
491
|
+
io.write(Markup.encode_tag("form", attributes))
|
492
|
+
end
|
493
|
+
if block_given?
|
494
|
+
instance_eval(&block)
|
495
|
+
io.write("</form>")
|
496
|
+
end
|
497
|
+
return
|
498
|
+
end
|
499
|
+
## {=> String}, &#{self -> void}? -> void
|
500
|
+
def h1(attributes = {}, &block)
|
501
|
+
if attributes.empty?
|
502
|
+
io.write("<h1>")
|
503
|
+
else
|
504
|
+
io.write(Markup.encode_tag("h1", attributes))
|
505
|
+
end
|
506
|
+
if block_given?
|
507
|
+
instance_eval(&block)
|
508
|
+
io.write("</h1>")
|
509
|
+
end
|
510
|
+
return
|
511
|
+
end
|
512
|
+
## {=> String}, &#{self -> void}? -> void
|
513
|
+
def h2(attributes = {}, &block)
|
514
|
+
if attributes.empty?
|
515
|
+
io.write("<h2>")
|
516
|
+
else
|
517
|
+
io.write(Markup.encode_tag("h2", attributes))
|
518
|
+
end
|
519
|
+
if block_given?
|
520
|
+
instance_eval(&block)
|
521
|
+
io.write("</h2>")
|
522
|
+
end
|
523
|
+
return
|
524
|
+
end
|
525
|
+
## {=> String}, &#{self -> void}? -> void
|
526
|
+
def h3(attributes = {}, &block)
|
527
|
+
if attributes.empty?
|
528
|
+
io.write("<h3>")
|
529
|
+
else
|
530
|
+
io.write(Markup.encode_tag("h3", attributes))
|
531
|
+
end
|
532
|
+
if block_given?
|
533
|
+
instance_eval(&block)
|
534
|
+
io.write("</h3>")
|
535
|
+
end
|
536
|
+
return
|
537
|
+
end
|
538
|
+
## {=> String}, &#{self -> void}? -> void
|
539
|
+
def h4(attributes = {}, &block)
|
540
|
+
if attributes.empty?
|
541
|
+
io.write("<h4>")
|
542
|
+
else
|
543
|
+
io.write(Markup.encode_tag("h4", attributes))
|
544
|
+
end
|
545
|
+
if block_given?
|
546
|
+
instance_eval(&block)
|
547
|
+
io.write("</h4>")
|
548
|
+
end
|
549
|
+
return
|
550
|
+
end
|
551
|
+
## {=> String}, &#{self -> void}? -> void
|
552
|
+
def h5(attributes = {}, &block)
|
553
|
+
if attributes.empty?
|
554
|
+
io.write("<h5>")
|
555
|
+
else
|
556
|
+
io.write(Markup.encode_tag("h5", attributes))
|
557
|
+
end
|
558
|
+
if block_given?
|
559
|
+
instance_eval(&block)
|
560
|
+
io.write("</h5>")
|
561
|
+
end
|
562
|
+
return
|
563
|
+
end
|
564
|
+
## {=> String}, &#{self -> void}? -> void
|
565
|
+
def h6(attributes = {}, &block)
|
566
|
+
if attributes.empty?
|
567
|
+
io.write("<h6>")
|
568
|
+
else
|
569
|
+
io.write(Markup.encode_tag("h6", attributes))
|
570
|
+
end
|
571
|
+
if block_given?
|
572
|
+
instance_eval(&block)
|
573
|
+
io.write("</h6>")
|
574
|
+
end
|
575
|
+
return
|
576
|
+
end
|
577
|
+
## {=> String}, &#{self -> void}? -> void
|
578
|
+
def head(attributes = {}, &block)
|
579
|
+
if attributes.empty?
|
580
|
+
io.write("<head>")
|
581
|
+
else
|
582
|
+
io.write(Markup.encode_tag("head", attributes))
|
583
|
+
end
|
584
|
+
if block_given?
|
585
|
+
instance_eval(&block)
|
586
|
+
io.write("</head>")
|
587
|
+
end
|
588
|
+
return
|
589
|
+
end
|
590
|
+
## {=> String}, &#{self -> void}? -> void
|
591
|
+
def header(attributes = {}, &block)
|
592
|
+
if attributes.empty?
|
593
|
+
io.write("<header>")
|
594
|
+
else
|
595
|
+
io.write(Markup.encode_tag("header", attributes))
|
596
|
+
end
|
597
|
+
if block_given?
|
598
|
+
instance_eval(&block)
|
599
|
+
io.write("</header>")
|
600
|
+
end
|
601
|
+
return
|
602
|
+
end
|
603
|
+
## {=> String}, &#{self -> void}? -> void
|
604
|
+
def hr(attributes = {}, &block)
|
605
|
+
if attributes.empty?
|
606
|
+
io.write("<hr>")
|
607
|
+
else
|
608
|
+
io.write(Markup.encode_tag("hr", attributes))
|
609
|
+
end
|
610
|
+
if block_given?
|
611
|
+
instance_eval(&block)
|
612
|
+
io.write("</hr>")
|
613
|
+
end
|
614
|
+
return
|
615
|
+
end
|
616
|
+
## {=> String}, &#{self -> void}? -> void
|
617
|
+
def html(attributes = {}, &block)
|
618
|
+
if attributes.empty?
|
619
|
+
io.write("<html>")
|
620
|
+
else
|
621
|
+
io.write(Markup.encode_tag("html", attributes))
|
622
|
+
end
|
623
|
+
if block_given?
|
624
|
+
instance_eval(&block)
|
625
|
+
io.write("</html>")
|
626
|
+
end
|
627
|
+
return
|
628
|
+
end
|
629
|
+
## {=> String}, &#{self -> void}? -> void
|
630
|
+
def i(attributes = {}, &block)
|
631
|
+
if attributes.empty?
|
632
|
+
io.write("<i>")
|
633
|
+
else
|
634
|
+
io.write(Markup.encode_tag("i", attributes))
|
635
|
+
end
|
636
|
+
if block_given?
|
637
|
+
instance_eval(&block)
|
638
|
+
io.write("</i>")
|
639
|
+
end
|
640
|
+
return
|
641
|
+
end
|
642
|
+
## {=> String}, &#{self -> void}? -> void
|
643
|
+
def iframe(attributes = {}, &block)
|
644
|
+
if attributes.empty?
|
645
|
+
io.write("<iframe>")
|
646
|
+
else
|
647
|
+
io.write(Markup.encode_tag("iframe", attributes))
|
648
|
+
end
|
649
|
+
if block_given?
|
650
|
+
instance_eval(&block)
|
651
|
+
io.write("</iframe>")
|
652
|
+
end
|
653
|
+
return
|
654
|
+
end
|
655
|
+
## {=> String}, &#{self -> void}? -> void
|
656
|
+
def img(attributes = {}, &block)
|
657
|
+
if attributes.empty?
|
658
|
+
io.write("<img>")
|
659
|
+
else
|
660
|
+
io.write(Markup.encode_tag("img", attributes))
|
661
|
+
end
|
662
|
+
if block_given?
|
663
|
+
instance_eval(&block)
|
664
|
+
io.write("</img>")
|
665
|
+
end
|
666
|
+
return
|
667
|
+
end
|
668
|
+
## {=> String}, &#{self -> void}? -> void
|
669
|
+
def input(attributes = {}, &block)
|
670
|
+
if attributes.empty?
|
671
|
+
io.write("<input>")
|
672
|
+
else
|
673
|
+
io.write(Markup.encode_tag("input", attributes))
|
674
|
+
end
|
675
|
+
if block_given?
|
676
|
+
instance_eval(&block)
|
677
|
+
io.write("</input>")
|
678
|
+
end
|
679
|
+
return
|
680
|
+
end
|
681
|
+
## {=> String}, &#{self -> void}? -> void
|
682
|
+
def ins(attributes = {}, &block)
|
683
|
+
if attributes.empty?
|
684
|
+
io.write("<ins>")
|
685
|
+
else
|
686
|
+
io.write(Markup.encode_tag("ins", attributes))
|
687
|
+
end
|
688
|
+
if block_given?
|
689
|
+
instance_eval(&block)
|
690
|
+
io.write("</ins>")
|
691
|
+
end
|
692
|
+
return
|
693
|
+
end
|
694
|
+
## {=> String}, &#{self -> void}? -> void
|
695
|
+
def kbd(attributes = {}, &block)
|
696
|
+
if attributes.empty?
|
697
|
+
io.write("<kbd>")
|
698
|
+
else
|
699
|
+
io.write(Markup.encode_tag("kbd", attributes))
|
700
|
+
end
|
701
|
+
if block_given?
|
702
|
+
instance_eval(&block)
|
703
|
+
io.write("</kbd>")
|
704
|
+
end
|
705
|
+
return
|
706
|
+
end
|
707
|
+
## {=> String}, &#{self -> void}? -> void
|
708
|
+
def keygen(attributes = {}, &block)
|
709
|
+
if attributes.empty?
|
710
|
+
io.write("<keygen>")
|
711
|
+
else
|
712
|
+
io.write(Markup.encode_tag("keygen", attributes))
|
713
|
+
end
|
714
|
+
if block_given?
|
715
|
+
instance_eval(&block)
|
716
|
+
io.write("</keygen>")
|
717
|
+
end
|
718
|
+
return
|
719
|
+
end
|
720
|
+
## {=> String}, &#{self -> void}? -> void
|
721
|
+
def label(attributes = {}, &block)
|
722
|
+
if attributes.empty?
|
723
|
+
io.write("<label>")
|
724
|
+
else
|
725
|
+
io.write(Markup.encode_tag("label", attributes))
|
726
|
+
end
|
727
|
+
if block_given?
|
728
|
+
instance_eval(&block)
|
729
|
+
io.write("</label>")
|
730
|
+
end
|
731
|
+
return
|
732
|
+
end
|
733
|
+
## {=> String}, &#{self -> void}? -> void
|
734
|
+
def legend(attributes = {}, &block)
|
735
|
+
if attributes.empty?
|
736
|
+
io.write("<legend>")
|
737
|
+
else
|
738
|
+
io.write(Markup.encode_tag("legend", attributes))
|
739
|
+
end
|
740
|
+
if block_given?
|
741
|
+
instance_eval(&block)
|
742
|
+
io.write("</legend>")
|
743
|
+
end
|
744
|
+
return
|
745
|
+
end
|
746
|
+
## {=> String}, &#{self -> void}? -> void
|
747
|
+
def li(attributes = {}, &block)
|
748
|
+
if attributes.empty?
|
749
|
+
io.write("<li>")
|
750
|
+
else
|
751
|
+
io.write(Markup.encode_tag("li", attributes))
|
752
|
+
end
|
753
|
+
if block_given?
|
754
|
+
instance_eval(&block)
|
755
|
+
io.write("</li>")
|
756
|
+
end
|
757
|
+
return
|
758
|
+
end
|
759
|
+
## {=> String}, &#{self -> void}? -> void
|
760
|
+
def link(attributes = {}, &block)
|
761
|
+
if attributes.empty?
|
762
|
+
io.write("<link>")
|
763
|
+
else
|
764
|
+
io.write(Markup.encode_tag("link", attributes))
|
765
|
+
end
|
766
|
+
if block_given?
|
767
|
+
instance_eval(&block)
|
768
|
+
io.write("</link>")
|
769
|
+
end
|
770
|
+
return
|
771
|
+
end
|
772
|
+
## {=> String}, &#{self -> void}? -> void
|
773
|
+
def main(attributes = {}, &block)
|
774
|
+
if attributes.empty?
|
775
|
+
io.write("<main>")
|
776
|
+
else
|
777
|
+
io.write(Markup.encode_tag("main", attributes))
|
778
|
+
end
|
779
|
+
if block_given?
|
780
|
+
instance_eval(&block)
|
781
|
+
io.write("</main>")
|
782
|
+
end
|
783
|
+
return
|
784
|
+
end
|
785
|
+
## {=> String}, &#{self -> void}? -> void
|
786
|
+
def map(attributes = {}, &block)
|
787
|
+
if attributes.empty?
|
788
|
+
io.write("<map>")
|
789
|
+
else
|
790
|
+
io.write(Markup.encode_tag("map", attributes))
|
791
|
+
end
|
792
|
+
if block_given?
|
793
|
+
instance_eval(&block)
|
794
|
+
io.write("</map>")
|
795
|
+
end
|
796
|
+
return
|
797
|
+
end
|
798
|
+
## {=> String}, &#{self -> void}? -> void
|
799
|
+
def mark(attributes = {}, &block)
|
800
|
+
if attributes.empty?
|
801
|
+
io.write("<mark>")
|
802
|
+
else
|
803
|
+
io.write(Markup.encode_tag("mark", attributes))
|
804
|
+
end
|
805
|
+
if block_given?
|
806
|
+
instance_eval(&block)
|
807
|
+
io.write("</mark>")
|
808
|
+
end
|
809
|
+
return
|
810
|
+
end
|
811
|
+
## {=> String}, &#{self -> void}? -> void
|
812
|
+
def math(attributes = {}, &block)
|
813
|
+
if attributes.empty?
|
814
|
+
io.write("<math>")
|
815
|
+
else
|
816
|
+
io.write(Markup.encode_tag("math", attributes))
|
817
|
+
end
|
818
|
+
if block_given?
|
819
|
+
instance_eval(&block)
|
820
|
+
io.write("</math>")
|
821
|
+
end
|
822
|
+
return
|
823
|
+
end
|
824
|
+
## {=> String}, &#{self -> void}? -> void
|
825
|
+
def menu(attributes = {}, &block)
|
826
|
+
if attributes.empty?
|
827
|
+
io.write("<menu>")
|
828
|
+
else
|
829
|
+
io.write(Markup.encode_tag("menu", attributes))
|
830
|
+
end
|
831
|
+
if block_given?
|
832
|
+
instance_eval(&block)
|
833
|
+
io.write("</menu>")
|
834
|
+
end
|
835
|
+
return
|
836
|
+
end
|
837
|
+
## {=> String}, &#{self -> void}? -> void
|
838
|
+
def menuitem(attributes = {}, &block)
|
839
|
+
if attributes.empty?
|
840
|
+
io.write("<menuitem>")
|
841
|
+
else
|
842
|
+
io.write(Markup.encode_tag("menuitem", attributes))
|
843
|
+
end
|
844
|
+
if block_given?
|
845
|
+
instance_eval(&block)
|
846
|
+
io.write("</menuitem>")
|
847
|
+
end
|
848
|
+
return
|
849
|
+
end
|
850
|
+
## {=> String}, &#{self -> void}? -> void
|
851
|
+
def meta(attributes = {}, &block)
|
852
|
+
if attributes.empty?
|
853
|
+
io.write("<meta>")
|
854
|
+
else
|
855
|
+
io.write(Markup.encode_tag("meta", attributes))
|
856
|
+
end
|
857
|
+
if block_given?
|
858
|
+
instance_eval(&block)
|
859
|
+
io.write("</meta>")
|
860
|
+
end
|
861
|
+
return
|
862
|
+
end
|
863
|
+
## {=> String}, &#{self -> void}? -> void
|
864
|
+
def meter(attributes = {}, &block)
|
865
|
+
if attributes.empty?
|
866
|
+
io.write("<meter>")
|
867
|
+
else
|
868
|
+
io.write(Markup.encode_tag("meter", attributes))
|
869
|
+
end
|
870
|
+
if block_given?
|
871
|
+
instance_eval(&block)
|
872
|
+
io.write("</meter>")
|
873
|
+
end
|
874
|
+
return
|
875
|
+
end
|
876
|
+
## {=> String}, &#{self -> void}? -> void
|
877
|
+
def nav(attributes = {}, &block)
|
878
|
+
if attributes.empty?
|
879
|
+
io.write("<nav>")
|
880
|
+
else
|
881
|
+
io.write(Markup.encode_tag("nav", attributes))
|
882
|
+
end
|
883
|
+
if block_given?
|
884
|
+
instance_eval(&block)
|
885
|
+
io.write("</nav>")
|
886
|
+
end
|
887
|
+
return
|
888
|
+
end
|
889
|
+
## {=> String}, &#{self -> void}? -> void
|
890
|
+
def noscript(attributes = {}, &block)
|
891
|
+
if attributes.empty?
|
892
|
+
io.write("<noscript>")
|
893
|
+
else
|
894
|
+
io.write(Markup.encode_tag("noscript", attributes))
|
895
|
+
end
|
896
|
+
if block_given?
|
897
|
+
instance_eval(&block)
|
898
|
+
io.write("</noscript>")
|
899
|
+
end
|
900
|
+
return
|
901
|
+
end
|
902
|
+
## {=> String}, &#{self -> void}? -> void
|
903
|
+
def object(attributes = {}, &block)
|
904
|
+
if attributes.empty?
|
905
|
+
io.write("<object>")
|
906
|
+
else
|
907
|
+
io.write(Markup.encode_tag("object", attributes))
|
908
|
+
end
|
909
|
+
if block_given?
|
910
|
+
instance_eval(&block)
|
911
|
+
io.write("</object>")
|
912
|
+
end
|
913
|
+
return
|
914
|
+
end
|
915
|
+
## {=> String}, &#{self -> void}? -> void
|
916
|
+
def ol(attributes = {}, &block)
|
917
|
+
if attributes.empty?
|
918
|
+
io.write("<ol>")
|
919
|
+
else
|
920
|
+
io.write(Markup.encode_tag("ol", attributes))
|
921
|
+
end
|
922
|
+
if block_given?
|
923
|
+
instance_eval(&block)
|
924
|
+
io.write("</ol>")
|
925
|
+
end
|
926
|
+
return
|
927
|
+
end
|
928
|
+
## {=> String}, &#{self -> void}? -> void
|
929
|
+
def optgroup(attributes = {}, &block)
|
930
|
+
if attributes.empty?
|
931
|
+
io.write("<optgroup>")
|
932
|
+
else
|
933
|
+
io.write(Markup.encode_tag("optgroup", attributes))
|
934
|
+
end
|
935
|
+
if block_given?
|
936
|
+
instance_eval(&block)
|
937
|
+
io.write("</optgroup>")
|
938
|
+
end
|
939
|
+
return
|
940
|
+
end
|
941
|
+
## {=> String}, &#{self -> void}? -> void
|
942
|
+
def option(attributes = {}, &block)
|
943
|
+
if attributes.empty?
|
944
|
+
io.write("<option>")
|
945
|
+
else
|
946
|
+
io.write(Markup.encode_tag("option", attributes))
|
947
|
+
end
|
948
|
+
if block_given?
|
949
|
+
instance_eval(&block)
|
950
|
+
io.write("</option>")
|
951
|
+
end
|
952
|
+
return
|
953
|
+
end
|
954
|
+
## {=> String}, &#{self -> void}? -> void
|
955
|
+
def output(attributes = {}, &block)
|
956
|
+
if attributes.empty?
|
957
|
+
io.write("<output>")
|
958
|
+
else
|
959
|
+
io.write(Markup.encode_tag("output", attributes))
|
960
|
+
end
|
961
|
+
if block_given?
|
962
|
+
instance_eval(&block)
|
963
|
+
io.write("</output>")
|
964
|
+
end
|
965
|
+
return
|
966
|
+
end
|
967
|
+
## {=> String}, &#{self -> void}? -> void
|
968
|
+
def p(attributes = {}, &block)
|
969
|
+
if attributes.empty?
|
970
|
+
io.write("<p>")
|
971
|
+
else
|
972
|
+
io.write(Markup.encode_tag("p", attributes))
|
973
|
+
end
|
974
|
+
if block_given?
|
975
|
+
instance_eval(&block)
|
976
|
+
io.write("</p>")
|
977
|
+
end
|
978
|
+
return
|
979
|
+
end
|
980
|
+
## {=> String}, &#{self -> void}? -> void
|
981
|
+
def param(attributes = {}, &block)
|
982
|
+
if attributes.empty?
|
983
|
+
io.write("<param>")
|
984
|
+
else
|
985
|
+
io.write(Markup.encode_tag("param", attributes))
|
986
|
+
end
|
987
|
+
if block_given?
|
988
|
+
instance_eval(&block)
|
989
|
+
io.write("</param>")
|
990
|
+
end
|
991
|
+
return
|
992
|
+
end
|
993
|
+
## {=> String}, &#{self -> void}? -> void
|
994
|
+
def pre(attributes = {}, &block)
|
995
|
+
if attributes.empty?
|
996
|
+
io.write("<pre>")
|
997
|
+
else
|
998
|
+
io.write(Markup.encode_tag("pre", attributes))
|
999
|
+
end
|
1000
|
+
if block_given?
|
1001
|
+
instance_eval(&block)
|
1002
|
+
io.write("</pre>")
|
1003
|
+
end
|
1004
|
+
return
|
1005
|
+
end
|
1006
|
+
## {=> String}, &#{self -> void}? -> void
|
1007
|
+
def progress(attributes = {}, &block)
|
1008
|
+
if attributes.empty?
|
1009
|
+
io.write("<progress>")
|
1010
|
+
else
|
1011
|
+
io.write(Markup.encode_tag("progress", attributes))
|
1012
|
+
end
|
1013
|
+
if block_given?
|
1014
|
+
instance_eval(&block)
|
1015
|
+
io.write("</progress>")
|
1016
|
+
end
|
1017
|
+
return
|
1018
|
+
end
|
1019
|
+
## {=> String}, &#{self -> void}? -> void
|
1020
|
+
def q(attributes = {}, &block)
|
1021
|
+
if attributes.empty?
|
1022
|
+
io.write("<q>")
|
1023
|
+
else
|
1024
|
+
io.write(Markup.encode_tag("q", attributes))
|
1025
|
+
end
|
1026
|
+
if block_given?
|
1027
|
+
instance_eval(&block)
|
1028
|
+
io.write("</q>")
|
1029
|
+
end
|
1030
|
+
return
|
1031
|
+
end
|
1032
|
+
## {=> String}, &#{self -> void}? -> void
|
1033
|
+
def rp(attributes = {}, &block)
|
1034
|
+
if attributes.empty?
|
1035
|
+
io.write("<rp>")
|
1036
|
+
else
|
1037
|
+
io.write(Markup.encode_tag("rp", attributes))
|
1038
|
+
end
|
1039
|
+
if block_given?
|
1040
|
+
instance_eval(&block)
|
1041
|
+
io.write("</rp>")
|
1042
|
+
end
|
1043
|
+
return
|
1044
|
+
end
|
1045
|
+
## {=> String}, &#{self -> void}? -> void
|
1046
|
+
def rt(attributes = {}, &block)
|
1047
|
+
if attributes.empty?
|
1048
|
+
io.write("<rt>")
|
1049
|
+
else
|
1050
|
+
io.write(Markup.encode_tag("rt", attributes))
|
1051
|
+
end
|
1052
|
+
if block_given?
|
1053
|
+
instance_eval(&block)
|
1054
|
+
io.write("</rt>")
|
1055
|
+
end
|
1056
|
+
return
|
1057
|
+
end
|
1058
|
+
## {=> String}, &#{self -> void}? -> void
|
1059
|
+
def ruby(attributes = {}, &block)
|
1060
|
+
if attributes.empty?
|
1061
|
+
io.write("<ruby>")
|
1062
|
+
else
|
1063
|
+
io.write(Markup.encode_tag("ruby", attributes))
|
1064
|
+
end
|
1065
|
+
if block_given?
|
1066
|
+
instance_eval(&block)
|
1067
|
+
io.write("</ruby>")
|
1068
|
+
end
|
1069
|
+
return
|
1070
|
+
end
|
1071
|
+
## {=> String}, &#{self -> void}? -> void
|
1072
|
+
def s(attributes = {}, &block)
|
1073
|
+
if attributes.empty?
|
1074
|
+
io.write("<s>")
|
1075
|
+
else
|
1076
|
+
io.write(Markup.encode_tag("s", attributes))
|
1077
|
+
end
|
1078
|
+
if block_given?
|
1079
|
+
instance_eval(&block)
|
1080
|
+
io.write("</s>")
|
1081
|
+
end
|
1082
|
+
return
|
1083
|
+
end
|
1084
|
+
## {=> String}, &#{self -> void}? -> void
|
1085
|
+
def samp(attributes = {}, &block)
|
1086
|
+
if attributes.empty?
|
1087
|
+
io.write("<samp>")
|
1088
|
+
else
|
1089
|
+
io.write(Markup.encode_tag("samp", attributes))
|
1090
|
+
end
|
1091
|
+
if block_given?
|
1092
|
+
instance_eval(&block)
|
1093
|
+
io.write("</samp>")
|
1094
|
+
end
|
1095
|
+
return
|
1096
|
+
end
|
1097
|
+
## {=> String}, &#{self -> void}? -> void
|
1098
|
+
def script(attributes = {}, &block)
|
1099
|
+
if attributes.empty?
|
1100
|
+
io.write("<script>")
|
1101
|
+
else
|
1102
|
+
io.write(Markup.encode_tag("script", attributes))
|
1103
|
+
end
|
1104
|
+
if block_given?
|
1105
|
+
instance_eval(&block)
|
1106
|
+
io.write("</script>")
|
1107
|
+
end
|
1108
|
+
return
|
1109
|
+
end
|
1110
|
+
## {=> String}, &#{self -> void}? -> void
|
1111
|
+
def section(attributes = {}, &block)
|
1112
|
+
if attributes.empty?
|
1113
|
+
io.write("<section>")
|
1114
|
+
else
|
1115
|
+
io.write(Markup.encode_tag("section", attributes))
|
1116
|
+
end
|
1117
|
+
if block_given?
|
1118
|
+
instance_eval(&block)
|
1119
|
+
io.write("</section>")
|
1120
|
+
end
|
1121
|
+
return
|
1122
|
+
end
|
1123
|
+
## {=> String}, &#{self -> void}? -> void
|
1124
|
+
def select(attributes = {}, &block)
|
1125
|
+
if attributes.empty?
|
1126
|
+
io.write("<select>")
|
1127
|
+
else
|
1128
|
+
io.write(Markup.encode_tag("select", attributes))
|
1129
|
+
end
|
1130
|
+
if block_given?
|
1131
|
+
instance_eval(&block)
|
1132
|
+
io.write("</select>")
|
1133
|
+
end
|
1134
|
+
return
|
1135
|
+
end
|
1136
|
+
## {=> String}, &#{self -> void}? -> void
|
1137
|
+
def small(attributes = {}, &block)
|
1138
|
+
if attributes.empty?
|
1139
|
+
io.write("<small>")
|
1140
|
+
else
|
1141
|
+
io.write(Markup.encode_tag("small", attributes))
|
1142
|
+
end
|
1143
|
+
if block_given?
|
1144
|
+
instance_eval(&block)
|
1145
|
+
io.write("</small>")
|
1146
|
+
end
|
1147
|
+
return
|
1148
|
+
end
|
1149
|
+
## {=> String}, &#{self -> void}? -> void
|
1150
|
+
def source(attributes = {}, &block)
|
1151
|
+
if attributes.empty?
|
1152
|
+
io.write("<source>")
|
1153
|
+
else
|
1154
|
+
io.write(Markup.encode_tag("source", attributes))
|
1155
|
+
end
|
1156
|
+
if block_given?
|
1157
|
+
instance_eval(&block)
|
1158
|
+
io.write("</source>")
|
1159
|
+
end
|
1160
|
+
return
|
1161
|
+
end
|
1162
|
+
## {=> String}, &#{self -> void}? -> void
|
1163
|
+
def span(attributes = {}, &block)
|
1164
|
+
if attributes.empty?
|
1165
|
+
io.write("<span>")
|
1166
|
+
else
|
1167
|
+
io.write(Markup.encode_tag("span", attributes))
|
1168
|
+
end
|
1169
|
+
if block_given?
|
1170
|
+
instance_eval(&block)
|
1171
|
+
io.write("</span>")
|
1172
|
+
end
|
1173
|
+
return
|
1174
|
+
end
|
1175
|
+
## {=> String}, &#{self -> void}? -> void
|
1176
|
+
def strong(attributes = {}, &block)
|
1177
|
+
if attributes.empty?
|
1178
|
+
io.write("<strong>")
|
1179
|
+
else
|
1180
|
+
io.write(Markup.encode_tag("strong", attributes))
|
1181
|
+
end
|
1182
|
+
if block_given?
|
1183
|
+
instance_eval(&block)
|
1184
|
+
io.write("</strong>")
|
1185
|
+
end
|
1186
|
+
return
|
1187
|
+
end
|
1188
|
+
## {=> String}, &#{self -> void}? -> void
|
1189
|
+
def style(attributes = {}, &block)
|
1190
|
+
if attributes.empty?
|
1191
|
+
io.write("<style>")
|
1192
|
+
else
|
1193
|
+
io.write(Markup.encode_tag("style", attributes))
|
1194
|
+
end
|
1195
|
+
if block_given?
|
1196
|
+
instance_eval(&block)
|
1197
|
+
io.write("</style>")
|
1198
|
+
end
|
1199
|
+
return
|
1200
|
+
end
|
1201
|
+
## {=> String}, &#{self -> void}? -> void
|
1202
|
+
def sub(attributes = {}, &block)
|
1203
|
+
if attributes.empty?
|
1204
|
+
io.write("<sub>")
|
1205
|
+
else
|
1206
|
+
io.write(Markup.encode_tag("sub", attributes))
|
1207
|
+
end
|
1208
|
+
if block_given?
|
1209
|
+
instance_eval(&block)
|
1210
|
+
io.write("</sub>")
|
1211
|
+
end
|
1212
|
+
return
|
1213
|
+
end
|
1214
|
+
## {=> String}, &#{self -> void}? -> void
|
1215
|
+
def summary(attributes = {}, &block)
|
1216
|
+
if attributes.empty?
|
1217
|
+
io.write("<summary>")
|
1218
|
+
else
|
1219
|
+
io.write(Markup.encode_tag("summary", attributes))
|
1220
|
+
end
|
1221
|
+
if block_given?
|
1222
|
+
instance_eval(&block)
|
1223
|
+
io.write("</summary>")
|
1224
|
+
end
|
1225
|
+
return
|
1226
|
+
end
|
1227
|
+
## {=> String}, &#{self -> void}? -> void
|
1228
|
+
def svg(attributes = {}, &block)
|
1229
|
+
if attributes.empty?
|
1230
|
+
io.write("<svg>")
|
1231
|
+
else
|
1232
|
+
io.write(Markup.encode_tag("svg", attributes))
|
1233
|
+
end
|
1234
|
+
if block_given?
|
1235
|
+
instance_eval(&block)
|
1236
|
+
io.write("</svg>")
|
1237
|
+
end
|
1238
|
+
return
|
1239
|
+
end
|
1240
|
+
## {=> String}, &#{self -> void}? -> void
|
1241
|
+
def table(attributes = {}, &block)
|
1242
|
+
if attributes.empty?
|
1243
|
+
io.write("<table>")
|
1244
|
+
else
|
1245
|
+
io.write(Markup.encode_tag("table", attributes))
|
1246
|
+
end
|
1247
|
+
if block_given?
|
1248
|
+
instance_eval(&block)
|
1249
|
+
io.write("</table>")
|
1250
|
+
end
|
1251
|
+
return
|
1252
|
+
end
|
1253
|
+
## {=> String}, &#{self -> void}? -> void
|
1254
|
+
def tbody(attributes = {}, &block)
|
1255
|
+
if attributes.empty?
|
1256
|
+
io.write("<tbody>")
|
1257
|
+
else
|
1258
|
+
io.write(Markup.encode_tag("tbody", attributes))
|
1259
|
+
end
|
1260
|
+
if block_given?
|
1261
|
+
instance_eval(&block)
|
1262
|
+
io.write("</tbody>")
|
1263
|
+
end
|
1264
|
+
return
|
1265
|
+
end
|
1266
|
+
## {=> String}, &#{self -> void}? -> void
|
1267
|
+
def td(attributes = {}, &block)
|
1268
|
+
if attributes.empty?
|
1269
|
+
io.write("<td>")
|
1270
|
+
else
|
1271
|
+
io.write(Markup.encode_tag("td", attributes))
|
1272
|
+
end
|
1273
|
+
if block_given?
|
1274
|
+
instance_eval(&block)
|
1275
|
+
io.write("</td>")
|
1276
|
+
end
|
1277
|
+
return
|
1278
|
+
end
|
1279
|
+
## {=> String}, &#{self -> void}? -> void
|
1280
|
+
def template(attributes = {}, &block)
|
1281
|
+
if attributes.empty?
|
1282
|
+
io.write("<template>")
|
1283
|
+
else
|
1284
|
+
io.write(Markup.encode_tag("template", attributes))
|
1285
|
+
end
|
1286
|
+
if block_given?
|
1287
|
+
instance_eval(&block)
|
1288
|
+
io.write("</template>")
|
1289
|
+
end
|
1290
|
+
return
|
1291
|
+
end
|
1292
|
+
## {=> String}, &#{self -> void}? -> void
|
1293
|
+
def textarea(attributes = {}, &block)
|
1294
|
+
if attributes.empty?
|
1295
|
+
io.write("<textarea>")
|
1296
|
+
else
|
1297
|
+
io.write(Markup.encode_tag("textarea", attributes))
|
1298
|
+
end
|
1299
|
+
if block_given?
|
1300
|
+
instance_eval(&block)
|
1301
|
+
io.write("</textarea>")
|
1302
|
+
end
|
1303
|
+
return
|
1304
|
+
end
|
1305
|
+
## {=> String}, &#{self -> void}? -> void
|
1306
|
+
def tfoot(attributes = {}, &block)
|
1307
|
+
if attributes.empty?
|
1308
|
+
io.write("<tfoot>")
|
1309
|
+
else
|
1310
|
+
io.write(Markup.encode_tag("tfoot", attributes))
|
1311
|
+
end
|
1312
|
+
if block_given?
|
1313
|
+
instance_eval(&block)
|
1314
|
+
io.write("</tfoot>")
|
1315
|
+
end
|
1316
|
+
return
|
1317
|
+
end
|
1318
|
+
## {=> String}, &#{self -> void}? -> void
|
1319
|
+
def th(attributes = {}, &block)
|
1320
|
+
if attributes.empty?
|
1321
|
+
io.write("<th>")
|
1322
|
+
else
|
1323
|
+
io.write(Markup.encode_tag("th", attributes))
|
1324
|
+
end
|
1325
|
+
if block_given?
|
1326
|
+
instance_eval(&block)
|
1327
|
+
io.write("</th>")
|
1328
|
+
end
|
1329
|
+
return
|
1330
|
+
end
|
1331
|
+
## {=> String}, &#{self -> void}? -> void
|
1332
|
+
def thead(attributes = {}, &block)
|
1333
|
+
if attributes.empty?
|
1334
|
+
io.write("<thead>")
|
1335
|
+
else
|
1336
|
+
io.write(Markup.encode_tag("thead", attributes))
|
1337
|
+
end
|
1338
|
+
if block_given?
|
1339
|
+
instance_eval(&block)
|
1340
|
+
io.write("</thead>")
|
1341
|
+
end
|
1342
|
+
return
|
1343
|
+
end
|
1344
|
+
## {=> String}, &#{self -> void}? -> void
|
1345
|
+
def time(attributes = {}, &block)
|
1346
|
+
if attributes.empty?
|
1347
|
+
io.write("<time>")
|
1348
|
+
else
|
1349
|
+
io.write(Markup.encode_tag("time", attributes))
|
1350
|
+
end
|
1351
|
+
if block_given?
|
1352
|
+
instance_eval(&block)
|
1353
|
+
io.write("</time>")
|
1354
|
+
end
|
1355
|
+
return
|
1356
|
+
end
|
1357
|
+
## {=> String}, &#{self -> void}? -> void
|
1358
|
+
def title(attributes = {}, &block)
|
1359
|
+
if attributes.empty?
|
1360
|
+
io.write("<title>")
|
1361
|
+
else
|
1362
|
+
io.write(Markup.encode_tag("title", attributes))
|
1363
|
+
end
|
1364
|
+
if block_given?
|
1365
|
+
instance_eval(&block)
|
1366
|
+
io.write("</title>")
|
1367
|
+
end
|
1368
|
+
return
|
1369
|
+
end
|
1370
|
+
## {=> String}, &#{self -> void}? -> void
|
1371
|
+
def tr(attributes = {}, &block)
|
1372
|
+
if attributes.empty?
|
1373
|
+
io.write("<tr>")
|
1374
|
+
else
|
1375
|
+
io.write(Markup.encode_tag("tr", attributes))
|
1376
|
+
end
|
1377
|
+
if block_given?
|
1378
|
+
instance_eval(&block)
|
1379
|
+
io.write("</tr>")
|
1380
|
+
end
|
1381
|
+
return
|
1382
|
+
end
|
1383
|
+
## {=> String}, &#{self -> void}? -> void
|
1384
|
+
def track(attributes = {}, &block)
|
1385
|
+
if attributes.empty?
|
1386
|
+
io.write("<track>")
|
1387
|
+
else
|
1388
|
+
io.write(Markup.encode_tag("track", attributes))
|
1389
|
+
end
|
1390
|
+
if block_given?
|
1391
|
+
instance_eval(&block)
|
1392
|
+
io.write("</track>")
|
1393
|
+
end
|
1394
|
+
return
|
1395
|
+
end
|
1396
|
+
## {=> String}, &#{self -> void}? -> void
|
1397
|
+
def u(attributes = {}, &block)
|
1398
|
+
if attributes.empty?
|
1399
|
+
io.write("<u>")
|
1400
|
+
else
|
1401
|
+
io.write(Markup.encode_tag("u", attributes))
|
1402
|
+
end
|
1403
|
+
if block_given?
|
1404
|
+
instance_eval(&block)
|
1405
|
+
io.write("</u>")
|
1406
|
+
end
|
1407
|
+
return
|
1408
|
+
end
|
1409
|
+
## {=> String}, &#{self -> void}? -> void
|
1410
|
+
def ul(attributes = {}, &block)
|
1411
|
+
if attributes.empty?
|
1412
|
+
io.write("<ul>")
|
1413
|
+
else
|
1414
|
+
io.write(Markup.encode_tag("ul", attributes))
|
1415
|
+
end
|
1416
|
+
if block_given?
|
1417
|
+
instance_eval(&block)
|
1418
|
+
io.write("</ul>")
|
1419
|
+
end
|
1420
|
+
return
|
1421
|
+
end
|
1422
|
+
## {=> String}, &#{self -> void}? -> void
|
1423
|
+
def var(attributes = {}, &block)
|
1424
|
+
if attributes.empty?
|
1425
|
+
io.write("<var>")
|
1426
|
+
else
|
1427
|
+
io.write(Markup.encode_tag("var", attributes))
|
1428
|
+
end
|
1429
|
+
if block_given?
|
1430
|
+
instance_eval(&block)
|
1431
|
+
io.write("</var>")
|
1432
|
+
end
|
1433
|
+
return
|
1434
|
+
end
|
1435
|
+
## {=> String}, &#{self -> void}? -> void
|
1436
|
+
def video(attributes = {}, &block)
|
1437
|
+
if attributes.empty?
|
1438
|
+
io.write("<video>")
|
1439
|
+
else
|
1440
|
+
io.write(Markup.encode_tag("video", attributes))
|
1441
|
+
end
|
1442
|
+
if block_given?
|
1443
|
+
instance_eval(&block)
|
1444
|
+
io.write("</video>")
|
1445
|
+
end
|
1446
|
+
return
|
1447
|
+
end
|
1448
|
+
## {=> String}, &#{self -> void}? -> void
|
1449
|
+
def wbr(attributes = {}, &block)
|
1450
|
+
if attributes.empty?
|
1451
|
+
io.write("<wbr>")
|
1452
|
+
else
|
1453
|
+
io.write(Markup.encode_tag("wbr", attributes))
|
1454
|
+
end
|
1455
|
+
if block_given?
|
1456
|
+
instance_eval(&block)
|
1457
|
+
io.write("</wbr>")
|
1458
|
+
end
|
1459
|
+
return
|
1460
|
+
end
|
1461
|
+
end
|
1462
|
+
end
|