Module: Eclair::Html

Extended by:
T::Helpers, T::Sig
Defined in:
lib/eclair/html.rb

Class Method Summary collapse

Class Method Details

.a(attributes, children) ⇒ Object



33
34
35
# File 'lib/eclair/html.rb', line 33

def self.a(attributes, children)
  Eclair.element(:a, attributes, children)
end

.abbr(attributes, children) ⇒ Object



44
45
46
# File 'lib/eclair/html.rb', line 44

def self.abbr(attributes, children)
  Eclair.element(:abbr, attributes, children)
end

.address(attributes, children) ⇒ Object



55
56
57
# File 'lib/eclair/html.rb', line 55

def self.address(attributes, children)
  Eclair.element(:address, attributes, children)
end

.area(attributes) ⇒ Object



65
66
67
# File 'lib/eclair/html.rb', line 65

def self.area(attributes)
  Eclair.element(:area, attributes, Element::Void)
end

.article(attributes, children) ⇒ Object



76
77
78
# File 'lib/eclair/html.rb', line 76

def self.article(attributes, children)
  Eclair.element(:article, attributes, children)
end

.aside(attributes, children) ⇒ Object



87
88
89
# File 'lib/eclair/html.rb', line 87

def self.aside(attributes, children)
  Eclair.element(:aside, attributes, children)
end

.audio(attributes, children) ⇒ Object



98
99
100
# File 'lib/eclair/html.rb', line 98

def self.audio(attributes, children)
  Eclair.element(:audio, attributes, children)
end

.b(attributes, children) ⇒ Object



109
110
111
# File 'lib/eclair/html.rb', line 109

def self.b(attributes, children)
  Eclair.element(:b, attributes, children)
end

.base(attributes) ⇒ Object



119
120
121
# File 'lib/eclair/html.rb', line 119

def self.base(attributes)
  Eclair.element(:base, attributes, Element::Void)
end

.bdi(attributes, children) ⇒ Object



130
131
132
# File 'lib/eclair/html.rb', line 130

def self.bdi(attributes, children)
  Eclair.element(:bdi, attributes, children)
end

.bdo(attributes, children) ⇒ Object



141
142
143
# File 'lib/eclair/html.rb', line 141

def self.bdo(attributes, children)
  Eclair.element(:bdo, attributes, children)
end

.blockquote(attributes, children) ⇒ Object



152
153
154
# File 'lib/eclair/html.rb', line 152

def self.blockquote(attributes, children)
  Eclair.element(:blockquote, attributes, children)
end

.body(attributes, children) ⇒ Object



163
164
165
# File 'lib/eclair/html.rb', line 163

def self.body(attributes, children)
  Eclair.element(:body, attributes, children)
end

.br(attributes) ⇒ Object



173
174
175
# File 'lib/eclair/html.rb', line 173

def self.br(attributes)
  Eclair.element(:br, attributes, Element::Void)
end

.button(attributes, children) ⇒ Object



184
185
186
# File 'lib/eclair/html.rb', line 184

def self.button(attributes, children)
  Eclair.element(:button, attributes, children)
end

.canvas(attributes, children) ⇒ Object



195
196
197
# File 'lib/eclair/html.rb', line 195

def self.canvas(attributes, children)
  Eclair.element(:canvas, attributes, children)
end

.caption(attributes, children) ⇒ Object



206
207
208
# File 'lib/eclair/html.rb', line 206

def self.caption(attributes, children)
  Eclair.element(:caption, attributes, children)
end

.cite(attributes, children) ⇒ Object



217
218
219
# File 'lib/eclair/html.rb', line 217

def self.cite(attributes, children)
  Eclair.element(:cite, attributes, children)
end

.code(attributes, children) ⇒ Object



228
229
230
# File 'lib/eclair/html.rb', line 228

def self.code(attributes, children)
  Eclair.element(:code, attributes, children)
end

.col(attributes) ⇒ Object



238
239
240
# File 'lib/eclair/html.rb', line 238

def self.col(attributes)
  Eclair.element(:col, attributes, Element::Void)
end

.colgroup(attributes, children) ⇒ Object



249
250
251
# File 'lib/eclair/html.rb', line 249

def self.colgroup(attributes, children)
  Eclair.element(:colgroup, attributes, children)
end

.data(attributes, children) ⇒ Object



260
261
262
# File 'lib/eclair/html.rb', line 260

def self.data(attributes, children)
  Eclair.element(:data, attributes, children)
end

.datalist(attributes, children) ⇒ Object



271
272
273
# File 'lib/eclair/html.rb', line 271

def self.datalist(attributes, children)
  Eclair.element(:datalist, attributes, children)
end

.dd(attributes, children) ⇒ Object



282
283
284
# File 'lib/eclair/html.rb', line 282

def self.dd(attributes, children)
  Eclair.element(:dd, attributes, children)
end

.del(attributes, children) ⇒ Object



293
294
295
# File 'lib/eclair/html.rb', line 293

def self.del(attributes, children)
  Eclair.element(:del, attributes, children)
end

.details(attributes, children) ⇒ Object



304
305
306
# File 'lib/eclair/html.rb', line 304

def self.details(attributes, children)
  Eclair.element(:details, attributes, children)
end

.dfn(attributes, children) ⇒ Object



315
316
317
# File 'lib/eclair/html.rb', line 315

def self.dfn(attributes, children)
  Eclair.element(:dfn, attributes, children)
end

.dialog(attributes, children) ⇒ Object



326
327
328
# File 'lib/eclair/html.rb', line 326

def self.dialog(attributes, children)
  Eclair.element(:dialog, attributes, children)
end

.div(attributes, children) ⇒ Object



337
338
339
# File 'lib/eclair/html.rb', line 337

def self.div(attributes, children)
  Eclair.element(:div, attributes, children)
end

.dl(attributes, children) ⇒ Object



348
349
350
# File 'lib/eclair/html.rb', line 348

def self.dl(attributes, children)
  Eclair.element(:dl, attributes, children)
end

.dt(attributes, children) ⇒ Object



359
360
361
# File 'lib/eclair/html.rb', line 359

def self.dt(attributes, children)
  Eclair.element(:dt, attributes, children)
end

.em(attributes, children) ⇒ Object



370
371
372
# File 'lib/eclair/html.rb', line 370

def self.em(attributes, children)
  Eclair.element(:em, attributes, children)
end

.embed(attributes) ⇒ Object



380
381
382
# File 'lib/eclair/html.rb', line 380

def self.embed(attributes)
  Eclair.element(:embed, attributes, Element::Void)
end

.fieldset(attributes, children) ⇒ Object



391
392
393
# File 'lib/eclair/html.rb', line 391

def self.fieldset(attributes, children)
  Eclair.element(:fieldset, attributes, children)
end

.figcaption(attributes, children) ⇒ Object



402
403
404
# File 'lib/eclair/html.rb', line 402

def self.figcaption(attributes, children)
  Eclair.element(:figcaption, attributes, children)
end

.figure(attributes, children) ⇒ Object



413
414
415
# File 'lib/eclair/html.rb', line 413

def self.figure(attributes, children)
  Eclair.element(:figure, attributes, children)
end


424
425
426
# File 'lib/eclair/html.rb', line 424

def self.footer(attributes, children)
  Eclair.element(:footer, attributes, children)
end

.form(attributes, children) ⇒ Object



435
436
437
# File 'lib/eclair/html.rb', line 435

def self.form(attributes, children)
  Eclair.element(:form, attributes, children)
end

.h1(attributes, children) ⇒ Object



446
447
448
# File 'lib/eclair/html.rb', line 446

def self.h1(attributes, children)
  Eclair.element(:h1, attributes, children)
end

.h2(attributes, children) ⇒ Object



457
458
459
# File 'lib/eclair/html.rb', line 457

def self.h2(attributes, children)
  Eclair.element(:h2, attributes, children)
end

.h3(attributes, children) ⇒ Object



468
469
470
# File 'lib/eclair/html.rb', line 468

def self.h3(attributes, children)
  Eclair.element(:h3, attributes, children)
end

.h4(attributes, children) ⇒ Object



479
480
481
# File 'lib/eclair/html.rb', line 479

def self.h4(attributes, children)
  Eclair.element(:h4, attributes, children)
end

.h5(attributes, children) ⇒ Object



490
491
492
# File 'lib/eclair/html.rb', line 490

def self.h5(attributes, children)
  Eclair.element(:h5, attributes, children)
end

.h6(attributes, children) ⇒ Object



501
502
503
# File 'lib/eclair/html.rb', line 501

def self.h6(attributes, children)
  Eclair.element(:h6, attributes, children)
end

.head(attributes, children) ⇒ Object



512
513
514
# File 'lib/eclair/html.rb', line 512

def self.head(attributes, children)
  Eclair.element(:head, attributes, children)
end

.header(attributes, children) ⇒ Object



523
524
525
# File 'lib/eclair/html.rb', line 523

def self.header(attributes, children)
  Eclair.element(:header, attributes, children)
end

.hgroup(attributes, children) ⇒ Object



534
535
536
# File 'lib/eclair/html.rb', line 534

def self.hgroup(attributes, children)
  Eclair.element(:hgroup, attributes, children)
end

.hr(attributes) ⇒ Object



544
545
546
# File 'lib/eclair/html.rb', line 544

def self.hr(attributes)
  Eclair.element(:hr, attributes, Element::Void)
end

.html(attributes, children) ⇒ Object



555
556
557
# File 'lib/eclair/html.rb', line 555

def self.html(attributes, children)
  Eclair.element(:html, attributes, children)
end

.i(attributes, children) ⇒ Object



566
567
568
# File 'lib/eclair/html.rb', line 566

def self.i(attributes, children)
  Eclair.element(:i, attributes, children)
end

.iframe(attributes, children) ⇒ Object



577
578
579
# File 'lib/eclair/html.rb', line 577

def self.iframe(attributes, children)
  Eclair.element(:iframe, attributes, children)
end

.img(attributes) ⇒ Object



587
588
589
# File 'lib/eclair/html.rb', line 587

def self.img(attributes)
  Eclair.element(:img, attributes, Element::Void)
end

.input(attributes) ⇒ Object



597
598
599
# File 'lib/eclair/html.rb', line 597

def self.input(attributes)
  Eclair.element(:input, attributes, Element::Void)
end

.ins(attributes, children) ⇒ Object



608
609
610
# File 'lib/eclair/html.rb', line 608

def self.ins(attributes, children)
  Eclair.element(:ins, attributes, children)
end

.kbd(attributes, children) ⇒ Object



619
620
621
# File 'lib/eclair/html.rb', line 619

def self.kbd(attributes, children)
  Eclair.element(:kbd, attributes, children)
end

.label(attributes, children) ⇒ Object



630
631
632
# File 'lib/eclair/html.rb', line 630

def self.label(attributes, children)
  Eclair.element(:label, attributes, children)
end

.legend(attributes, children) ⇒ Object



641
642
643
# File 'lib/eclair/html.rb', line 641

def self.legend(attributes, children)
  Eclair.element(:legend, attributes, children)
end

.li(attributes, children) ⇒ Object



652
653
654
# File 'lib/eclair/html.rb', line 652

def self.li(attributes, children)
  Eclair.element(:li, attributes, children)
end


662
663
664
# File 'lib/eclair/html.rb', line 662

def self.link(attributes)
  Eclair.element(:link, attributes, Element::Void)
end

.main(attributes, children) ⇒ Object



673
674
675
# File 'lib/eclair/html.rb', line 673

def self.main(attributes, children)
  Eclair.element(:main, attributes, children)
end

.map(attributes, children) ⇒ Object



684
685
686
# File 'lib/eclair/html.rb', line 684

def self.map(attributes, children)
  Eclair.element(:map, attributes, children)
end

.mark(attributes, children) ⇒ Object



695
696
697
# File 'lib/eclair/html.rb', line 695

def self.mark(attributes, children)
  Eclair.element(:mark, attributes, children)
end

.math(attributes, children) ⇒ Object



706
707
708
# File 'lib/eclair/html.rb', line 706

def self.math(attributes, children)
  Eclair.element(:math, attributes, children)
end


717
718
719
# File 'lib/eclair/html.rb', line 717

def self.menu(attributes, children)
  Eclair.element(:menu, attributes, children)
end


727
728
729
# File 'lib/eclair/html.rb', line 727

def self.menuitem(attributes)
  Eclair.element(:menuitem, attributes, Element::Void)
end

.meta(attributes) ⇒ Object



737
738
739
# File 'lib/eclair/html.rb', line 737

def self.meta(attributes)
  Eclair.element(:meta, attributes, Element::Void)
end

.meter(attributes, children) ⇒ Object



748
749
750
# File 'lib/eclair/html.rb', line 748

def self.meter(attributes, children)
  Eclair.element(:meter, attributes, children)
end


759
760
761
# File 'lib/eclair/html.rb', line 759

def self.nav(attributes, children)
  Eclair.element(:nav, attributes, children)
end

.noscript(attributes, children) ⇒ Object



770
771
772
# File 'lib/eclair/html.rb', line 770

def self.noscript(attributes, children)
  Eclair.element(:noscript, attributes, children)
end

.object(attributes, children) ⇒ Object



781
782
783
# File 'lib/eclair/html.rb', line 781

def self.object(attributes, children)
  Eclair.element(:object, attributes, children)
end

.ol(attributes, children) ⇒ Object



792
793
794
# File 'lib/eclair/html.rb', line 792

def self.ol(attributes, children)
  Eclair.element(:ol, attributes, children)
end

.optgroup(attributes, children) ⇒ Object



803
804
805
# File 'lib/eclair/html.rb', line 803

def self.optgroup(attributes, children)
  Eclair.element(:optgroup, attributes, children)
end

.option(attributes, children) ⇒ Object



814
815
816
# File 'lib/eclair/html.rb', line 814

def self.option(attributes, children)
  Eclair.element(:option, attributes, children)
end

.output(attributes, children) ⇒ Object



825
826
827
# File 'lib/eclair/html.rb', line 825

def self.output(attributes, children)
  Eclair.element(:output, attributes, children)
end

.p(attributes, children) ⇒ Object



836
837
838
# File 'lib/eclair/html.rb', line 836

def self.p(attributes, children)
  Eclair.element(:p, attributes, children)
end

.param(attributes) ⇒ Object



846
847
848
# File 'lib/eclair/html.rb', line 846

def self.param(attributes)
  Eclair.element(:param, attributes, Element::Void)
end

.picture(attributes, children) ⇒ Object



857
858
859
# File 'lib/eclair/html.rb', line 857

def self.picture(attributes, children)
  Eclair.element(:picture, attributes, children)
end

.pre(attributes, children) ⇒ Object



868
869
870
# File 'lib/eclair/html.rb', line 868

def self.pre(attributes, children)
  Eclair.element(:pre, attributes, children)
end

.progress(attributes, children) ⇒ Object



879
880
881
# File 'lib/eclair/html.rb', line 879

def self.progress(attributes, children)
  Eclair.element(:progress, attributes, children)
end

.q(attributes, children) ⇒ Object



890
891
892
# File 'lib/eclair/html.rb', line 890

def self.q(attributes, children)
  Eclair.element(:q, attributes, children)
end

.rb(attributes, children) ⇒ Object



901
902
903
# File 'lib/eclair/html.rb', line 901

def self.rb(attributes, children)
  Eclair.element(:rb, attributes, children)
end

.rp(attributes, children) ⇒ Object



912
913
914
# File 'lib/eclair/html.rb', line 912

def self.rp(attributes, children)
  Eclair.element(:rp, attributes, children)
end

.rt(attributes, children) ⇒ Object



923
924
925
# File 'lib/eclair/html.rb', line 923

def self.rt(attributes, children)
  Eclair.element(:rt, attributes, children)
end

.rtc(attributes, children) ⇒ Object



934
935
936
# File 'lib/eclair/html.rb', line 934

def self.rtc(attributes, children)
  Eclair.element(:rtc, attributes, children)
end

.ruby(attributes, children) ⇒ Object



945
946
947
# File 'lib/eclair/html.rb', line 945

def self.ruby(attributes, children)
  Eclair.element(:ruby, attributes, children)
end

.s(attributes, children) ⇒ Object



956
957
958
# File 'lib/eclair/html.rb', line 956

def self.s(attributes, children)
  Eclair.element(:s, attributes, children)
end

.samp(attributes, children) ⇒ Object



967
968
969
# File 'lib/eclair/html.rb', line 967

def self.samp(attributes, children)
  Eclair.element(:samp, attributes, children)
end

.script(attributes, children) ⇒ Object



978
979
980
# File 'lib/eclair/html.rb', line 978

def self.script(attributes, children)
  Eclair.element(:script, attributes, children)
end

.search(attributes, children) ⇒ Object



989
990
991
# File 'lib/eclair/html.rb', line 989

def self.search(attributes, children)
  Eclair.element(:search, attributes, children)
end

.section(attributes, children) ⇒ Object



1000
1001
1002
# File 'lib/eclair/html.rb', line 1000

def self.section(attributes, children)
  Eclair.element(:section, attributes, children)
end

.select(attributes, children) ⇒ Object



1011
1012
1013
# File 'lib/eclair/html.rb', line 1011

def self.select(attributes, children)
  Eclair.element(:select, attributes, children)
end

.slot(attributes, children) ⇒ Object



1022
1023
1024
# File 'lib/eclair/html.rb', line 1022

def self.slot(attributes, children)
  Eclair.element(:slot, attributes, children)
end

.small(attributes, children) ⇒ Object



1033
1034
1035
# File 'lib/eclair/html.rb', line 1033

def self.small(attributes, children)
  Eclair.element(:small, attributes, children)
end

.source(attributes) ⇒ Object



1043
1044
1045
# File 'lib/eclair/html.rb', line 1043

def self.source(attributes)
  Eclair.element(:source, attributes, Element::Void)
end

.span(attributes, children) ⇒ Object



1054
1055
1056
# File 'lib/eclair/html.rb', line 1054

def self.span(attributes, children)
  Eclair.element(:span, attributes, children)
end

.strong(attributes, children) ⇒ Object



1065
1066
1067
# File 'lib/eclair/html.rb', line 1065

def self.strong(attributes, children)
  Eclair.element(:strong, attributes, children)
end

.style(attributes, children) ⇒ Object



1076
1077
1078
# File 'lib/eclair/html.rb', line 1076

def self.style(attributes, children)
  Eclair.element(:style, attributes, children)
end

.sub(attributes, children) ⇒ Object



1087
1088
1089
# File 'lib/eclair/html.rb', line 1087

def self.sub(attributes, children)
  Eclair.element(:sub, attributes, children)
end

.summary(attributes, children) ⇒ Object



1098
1099
1100
# File 'lib/eclair/html.rb', line 1098

def self.summary(attributes, children)
  Eclair.element(:summary, attributes, children)
end

.sup(attributes, children) ⇒ Object



1109
1110
1111
# File 'lib/eclair/html.rb', line 1109

def self.sup(attributes, children)
  Eclair.element(:sup, attributes, children)
end

.svg(attributes, children) ⇒ Object



1120
1121
1122
# File 'lib/eclair/html.rb', line 1120

def self.svg(attributes, children)
  Eclair.element(:svg, attributes, children)
end

.table(attributes, children) ⇒ Object



1131
1132
1133
# File 'lib/eclair/html.rb', line 1131

def self.table(attributes, children)
  Eclair.element(:table, attributes, children)
end

.tbody(attributes, children) ⇒ Object



1142
1143
1144
# File 'lib/eclair/html.rb', line 1142

def self.tbody(attributes, children)
  Eclair.element(:tbody, attributes, children)
end

.td(attributes, children) ⇒ Object



1153
1154
1155
# File 'lib/eclair/html.rb', line 1153

def self.td(attributes, children)
  Eclair.element(:td, attributes, children)
end

.template(attributes, children) ⇒ Object



1164
1165
1166
# File 'lib/eclair/html.rb', line 1164

def self.template(attributes, children)
  Eclair.element(:template, attributes, children)
end

.textarea(attributes, children) ⇒ Object



1175
1176
1177
# File 'lib/eclair/html.rb', line 1175

def self.textarea(attributes, children)
  Eclair.element(:textarea, attributes, children)
end

.tfoot(attributes, children) ⇒ Object



1186
1187
1188
# File 'lib/eclair/html.rb', line 1186

def self.tfoot(attributes, children)
  Eclair.element(:tfoot, attributes, children)
end

.th(attributes, children) ⇒ Object



1197
1198
1199
# File 'lib/eclair/html.rb', line 1197

def self.th(attributes, children)
  Eclair.element(:th, attributes, children)
end

.thead(attributes, children) ⇒ Object



1208
1209
1210
# File 'lib/eclair/html.rb', line 1208

def self.thead(attributes, children)
  Eclair.element(:thead, attributes, children)
end

.time(attributes, children) ⇒ Object



1219
1220
1221
# File 'lib/eclair/html.rb', line 1219

def self.time(attributes, children)
  Eclair.element(:time, attributes, children)
end

.title(attributes, children) ⇒ Object



1230
1231
1232
# File 'lib/eclair/html.rb', line 1230

def self.title(attributes, children)
  Eclair.element(:title, attributes, children)
end

.tr(attributes, children) ⇒ Object



1241
1242
1243
# File 'lib/eclair/html.rb', line 1241

def self.tr(attributes, children)
  Eclair.element(:tr, attributes, children)
end

.track(attributes) ⇒ Object



1251
1252
1253
# File 'lib/eclair/html.rb', line 1251

def self.track(attributes)
  Eclair.element(:track, attributes, Element::Void)
end

.u(attributes, children) ⇒ Object



1262
1263
1264
# File 'lib/eclair/html.rb', line 1262

def self.u(attributes, children)
  Eclair.element(:u, attributes, children)
end

.ul(attributes, children) ⇒ Object



1273
1274
1275
# File 'lib/eclair/html.rb', line 1273

def self.ul(attributes, children)
  Eclair.element(:ul, attributes, children)
end

.var(attributes, children) ⇒ Object



1284
1285
1286
# File 'lib/eclair/html.rb', line 1284

def self.var(attributes, children)
  Eclair.element(:var, attributes, children)
end

.video(attributes, children) ⇒ Object



1295
1296
1297
# File 'lib/eclair/html.rb', line 1295

def self.video(attributes, children)
  Eclair.element(:video, attributes, children)
end

.wbr(attributes) ⇒ Object



1305
1306
1307
# File 'lib/eclair/html.rb', line 1305

def self.wbr(attributes)
  Eclair.element(:wbr, attributes, Element::Void)
end

.yield_self {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Eclair::Html)

    the object that the method was called on



19
20
21
# File 'lib/eclair/html.rb', line 19

def self.yield_self(&blk)
  yield self
end