Class: Alister::HTML::Builder
- Inherits:
-
Object
- Object
- Alister::HTML::Builder
- Defined in:
- lib/html/builder.rb,
lib/html/yard_tags.rb
Overview
An HTML Builder class
Instance Attribute Summary collapse
-
#elements ⇒ Array<Element>
readonly
All the elements that has been collected.
Instance Method Summary collapse
-
#a(value = nil, **args) { ... } ⇒ void
Creates a <a> element and puts it to #elements.
-
#abbr(value = nil, **args) { ... } ⇒ void
Creates a <abbr> element and puts it to #elements.
-
#acronym(value = nil, **args) { ... } ⇒ void
Creates a <acronym> element and puts it to #elements.
-
#address(value = nil, **args) { ... } ⇒ void
Creates a <address> element and puts it to #elements.
-
#applet(value = nil, **args) { ... } ⇒ void
Creates a <applet> element and puts it to #elements.
-
#article(value = nil, **args) { ... } ⇒ void
Creates a <article> element and puts it to #elements.
-
#aside(value = nil, **args) { ... } ⇒ void
Creates a <aside> element and puts it to #elements.
-
#audio(value = nil, **args) { ... } ⇒ void
Creates a <audio> element and puts it to #elements.
-
#b(value = nil, **args) { ... } ⇒ void
Creates a <b> element and puts it to #elements.
-
#big(value = nil, **args) { ... } ⇒ void
Creates a <big> element and puts it to #elements.
-
#blockquote(value = nil, **args) { ... } ⇒ void
Creates a <blockquote> element and puts it to #elements.
-
#body(value = nil, **args) { ... } ⇒ void
Creates a <body> element and puts it to #elements.
-
#canvas(value = nil, **args) { ... } ⇒ void
Creates a <canvas> element and puts it to #elements.
-
#caption(value = nil, **args) { ... } ⇒ void
Creates a <caption> element and puts it to #elements.
-
#center(value = nil, **args) { ... } ⇒ void
Creates a <center> element and puts it to #elements.
-
#cite(value = nil, **args) { ... } ⇒ void
Creates a <cite> element and puts it to #elements.
-
#code(value = nil, **args) { ... } ⇒ void
Creates a <code> element and puts it to #elements.
-
#dd(value = nil, **args) { ... } ⇒ void
Creates a <dd> element and puts it to #elements.
-
#del(value = nil, **args) { ... } ⇒ void
Creates a <del> element and puts it to #elements.
-
#details(value = nil, **args) { ... } ⇒ void
Creates a <details> element and puts it to #elements.
-
#dfn(value = nil, **args) { ... } ⇒ void
Creates a <dfn> element and puts it to #elements.
-
#div(value = nil, **args) { ... } ⇒ void
Creates a <div> element and puts it to #elements.
-
#dl(value = nil, **args) { ... } ⇒ void
Creates a <dl> element and puts it to #elements.
-
#doctype ⇒ void
Creates a <!DOCTYPE html> element and puts it to #elements.
-
#dt(value = nil, **args) { ... } ⇒ void
Creates a <dt> element and puts it to #elements.
-
#em(value = nil, **args) { ... } ⇒ void
Creates a <em> element and puts it to #elements.
-
#embed(value = nil, **args) { ... } ⇒ void
Creates a <embed> element and puts it to #elements.
-
#fieldset(value = nil, **args) { ... } ⇒ void
Creates a <fieldset> element and puts it to #elements.
-
#figcaption(value = nil, **args) { ... } ⇒ void
Creates a <figcaption> element and puts it to #elements.
-
#figure(value = nil, **args) { ... } ⇒ void
Creates a <figure> element and puts it to #elements.
-
#footer(value = nil, **args) { ... } ⇒ void
Creates a <footer> element and puts it to #elements.
-
#form(value = nil, **args) { ... } ⇒ void
Creates a <form> element and puts it to #elements.
-
#h1(value = nil, **args) { ... } ⇒ void
Creates a <h1> element and puts it to #elements.
-
#h2(value = nil, **args) { ... } ⇒ void
Creates a <h2> element and puts it to #elements.
-
#h3(value = nil, **args) { ... } ⇒ void
Creates a <h3> element and puts it to #elements.
-
#h4(value = nil, **args) { ... } ⇒ void
Creates a <h4> element and puts it to #elements.
-
#h5(value = nil, **args) { ... } ⇒ void
Creates a <h5> element and puts it to #elements.
-
#h6(value = nil, **args) { ... } ⇒ void
Creates a <h6> element and puts it to #elements.
-
#head(value = nil, **args) { ... } ⇒ void
Creates a <head> element and puts it to #elements.
-
#header(value = nil, **args) { ... } ⇒ void
Creates a <header> element and puts it to #elements.
-
#hgroup(value = nil, **args) { ... } ⇒ void
Creates a <hgroup> element and puts it to #elements.
-
#html(value = nil, **args) { ... } ⇒ void
Creates a <html> element and puts it to #elements.
-
#i(value = nil, **args) { ... } ⇒ void
Creates a <i> element and puts it to #elements.
-
#iframe(value = nil, **args) { ... } ⇒ void
Creates a <iframe> element and puts it to #elements.
-
#img(value = nil, **args) { ... } ⇒ void
Creates a <img> element and puts it to #elements.
-
#initialize ⇒ Builder
constructor
A new instance of Builder.
-
#ins(value = nil, **args) { ... } ⇒ void
Creates a <ins> element and puts it to #elements.
-
#kbd(value = nil, **args) { ... } ⇒ void
Creates a <kbd> element and puts it to #elements.
-
#label(value = nil, **args) { ... } ⇒ void
Creates a <label> element and puts it to #elements.
-
#legend(value = nil, **args) { ... } ⇒ void
Creates a <legend> element and puts it to #elements.
-
#li(value = nil, **args) { ... } ⇒ void
Creates a <li> element and puts it to #elements.
-
#link(value = nil, **args) { ... } ⇒ void
Creates a <link> element and puts it to #elements.
-
#mark(value = nil, **args) { ... } ⇒ void
Creates a <mark> element and puts it to #elements.
-
#menu(value = nil, **args) { ... } ⇒ void
Creates a <menu> element and puts it to #elements.
-
#meta(value = nil, **args) { ... } ⇒ void
Creates a <meta> element and puts it to #elements.
-
#nav(value = nil, **args) { ... } ⇒ void
Creates a <nav> element and puts it to #elements.
-
#object(value = nil, **args) { ... } ⇒ void
Creates a <object> element and puts it to #elements.
-
#ol(value = nil, **args) { ... } ⇒ void
Creates a <ol> element and puts it to #elements.
-
#output(value = nil, **args) { ... } ⇒ void
Creates a <output> element and puts it to #elements.
-
#para(value = nil, **args) { ... } ⇒ void
Creates a <p> element and puts it to #elements.
-
#partial(element) ⇒ void
Adds a partial element and puts it to #elements.
-
#pre(value = nil, **args) { ... } ⇒ void
Creates a <pre> element and puts it to #elements.
-
#q(value = nil, **args) { ... } ⇒ void
Creates a <q> element and puts it to #elements.
-
#ruby(value = nil, **args) { ... } ⇒ void
Creates a <ruby> element and puts it to #elements.
-
#s(value = nil, **args) { ... } ⇒ void
Creates a <s> element and puts it to #elements.
-
#samp(value = nil, **args) { ... } ⇒ void
Creates a <samp> element and puts it to #elements.
-
#script(value = nil, **args) { ... } ⇒ void
Creates a <script> element and puts it to #elements.
-
#section(value = nil, **args) { ... } ⇒ void
Creates a <section> element and puts it to #elements.
-
#small(value = nil, **args) { ... } ⇒ void
Creates a <small> element and puts it to #elements.
-
#span(value = nil, **args) { ... } ⇒ void
Creates a <span> element and puts it to #elements.
- #start { ... } ⇒ Object
-
#strike(value = nil, **args) { ... } ⇒ void
Creates a <strike> element and puts it to #elements.
-
#strong(value = nil, **args) { ... } ⇒ void
Creates a <strong> element and puts it to #elements.
-
#sub(value = nil, **args) { ... } ⇒ void
Creates a <sub> element and puts it to #elements.
-
#summary(value = nil, **args) { ... } ⇒ void
Creates a <summary> element and puts it to #elements.
-
#sup(value = nil, **args) { ... } ⇒ void
Creates a <sup> element and puts it to #elements.
-
#table(value = nil, **args) { ... } ⇒ void
Creates a <table> element and puts it to #elements.
-
#tbody(value = nil, **args) { ... } ⇒ void
Creates a <tbody> element and puts it to #elements.
-
#td(value = nil, **args) { ... } ⇒ void
Creates a <td> element and puts it to #elements.
-
#tfoot(value = nil, **args) { ... } ⇒ void
Creates a <tfoot> element and puts it to #elements.
-
#th(value = nil, **args) { ... } ⇒ void
Creates a <th> element and puts it to #elements.
-
#thead(value = nil, **args) { ... } ⇒ void
Creates a <thead> element and puts it to #elements.
-
#time(value = nil, **args) { ... } ⇒ void
Creates a <time> element and puts it to #elements.
-
#title(value = nil, **args) { ... } ⇒ void
Creates a <title> element and puts it to #elements.
-
#to_s ⇒ String
Combines all elements, and turn it into a single string.
-
#tr(value = nil, **args) { ... } ⇒ void
Creates a <tr> element and puts it to #elements.
-
#tt(value = nil, **args) { ... } ⇒ void
Creates a <tt> element and puts it to #elements.
-
#u(value = nil, **args) { ... } ⇒ void
Creates a <u> element and puts it to #elements.
-
#ul(value = nil, **args) { ... } ⇒ void
Creates a <ul> element and puts it to #elements.
-
#var(value = nil, **args) { ... } ⇒ void
Creates a <var> element and puts it to #elements.
-
#video(value = nil, **args) { ... } ⇒ void
Creates a <video> element and puts it to #elements.
Constructor Details
#initialize ⇒ Builder
Returns a new instance of Builder.
39 40 41 |
# File 'lib/html/builder.rb', line 39 def initialize @elements = [] end |
Instance Attribute Details
#elements ⇒ Array<Element> (readonly)
All the elements that has been collected
37 38 39 |
# File 'lib/html/builder.rb', line 37 def elements @elements end |
Instance Method Details
#a(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <a> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 118
|
#abbr(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <abbr> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 125
|
#acronym(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <acronym> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 132
|
#address(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <address> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 139
|
#applet(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <applet> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 34
|
#article(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <article> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 440
|
#aside(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <aside> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 447
|
#audio(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <audio> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 566
|
#b(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <b> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 279
|
#big(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <big> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 146
|
#blockquote(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <blockquote> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 104
|
#body(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <body> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 13
|
#canvas(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <canvas> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 454
|
#caption(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <caption> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 391
|
#center(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <center> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 300
|
#cite(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <cite> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 153
|
#code(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <code> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 160
|
#dd(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <dd> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 328
|
#del(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <del> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 167
|
#details(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <details> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 461
|
#dfn(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <dfn> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 174
|
#div(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <div> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 20
|
#dl(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <dl> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 314
|
#doctype ⇒ void
This method returns an undefined value.
Creates a <!DOCTYPE html> element and puts it to #elements.
71 72 73 |
# File 'lib/html/builder.rb', line 71 def doctype @elements << Element.new(id: Element::DOCTYPE, value: nil) end |
#dt(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <dt> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 321
|
#em(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <em> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 181
|
#embed(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <embed> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 468
|
#fieldset(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <fieldset> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 356
|
#figcaption(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <figcaption> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 482
|
#figure(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <figure> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 475
|
#footer(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <footer> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 489
|
#form(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <form> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 363
|
#h1(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <h1> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 55
|
#h2(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <h2> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 62
|
#h3(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <h3> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 69
|
#h4(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <h4> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 76
|
#h5(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <h5> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 83
|
#h6(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <h6> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 90
|
#head(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <head> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 587
|
#header(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <header> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 496
|
#hgroup(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <hgroup> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 503
|
#html(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <html> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 6
|
#i(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <i> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 293
|
#iframe(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <iframe> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 48
|
#img(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <img> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 188
|
#ins(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <ins> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 195
|
#kbd(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <kbd> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 202
|
#label(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <label> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 370
|
#legend(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <legend> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 377
|
#li(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <li> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 349
|
#link(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <link> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 601
|
#mark(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <mark> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 559
|
#menu(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <menu> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 510
|
#meta(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <meta> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 307
|
#nav(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <nav> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 517
|
#object(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <object> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 41
|
#ol(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <ol> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 335
|
#output(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <output> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 524
|
#para(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <p> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 97
|
#partial(element) ⇒ void
This method returns an undefined value.
Adds a partial element and puts it to #elements
78 79 80 81 82 83 84 85 86 87 |
# File 'lib/html/builder.rb', line 78 def partial(element) @elements << element.elements if element.is_a? Builder @elements << element if element.is_a?(Element) || element.is_a?(String) return unless element.is_a? Array element.each do |el| partial(el) end end |
#pre(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <pre> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 111
|
#q(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <q> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 209
|
#ruby(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <ruby> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 531
|
#s(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <s> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 216
|
#samp(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <samp> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 223
|
#script(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <script> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 580
|
#section(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <section> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 538
|
#small(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <small> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 230
|
#span(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <span> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 27
|
#start { ... } ⇒ Object
only use if you’re using Alister::HTML::Builder directly
45 46 47 |
# File 'lib/html/builder.rb', line 45 def start(&block) block.call end |
#strike(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <strike> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 237
|
#strong(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <strong> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 244
|
#sub(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <sub> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 251
|
#summary(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <summary> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 545
|
#sup(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <sup> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 258
|
#table(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <table> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 384
|
#tbody(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <tbody> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 398
|
#td(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <td> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 433
|
#tfoot(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <tfoot> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 405
|
#th(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <th> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 426
|
#thead(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <thead> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 412
|
#time(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <time> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 552
|
#title(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <title> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 594
|
#to_s ⇒ String
Combines all elements, and turn it into a single string
91 92 93 94 |
# File 'lib/html/builder.rb', line 91 def to_s @elements.flatten! @elements.map(&:to_s).join end |
#tr(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <tr> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 419
|
#tt(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <tt> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 265
|
#u(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <u> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 286
|
#ul(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <ul> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 342
|
#var(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <var> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 272
|
#video(value = nil, **args) { ... } ⇒ void
This method returns an undefined value.
Creates a <video> element and puts it to #elements
|
|
# File 'lib/html/yard_tags.rb', line 573
|