Module: Phlex::HTML::VoidElements
Overview
Void HTML elements don't accept content and never have a closing tag.
Instance Method Summary collapse
-
#area(**attributes, &content) ⇒ nil
Outputs an
<area>
tag. -
#br(**attributes, &content) ⇒ nil
Outputs a
<br>
tag. -
#col(**attributes, &content) ⇒ nil
Outputs a
<col>
tag. -
#embed(**attributes, &content) ⇒ nil
Outputs an
<embed>
tag. -
#hr(**attributes, &content) ⇒ nil
Outputs an
<hr>
tag. -
#img(**attributes, &content) ⇒ nil
Outputs an
<img>
tag. -
#input(**attributes, &content) ⇒ nil
Outputs an
<input>
tag. -
#link(**attributes, &content) ⇒ nil
Outputs a
<link>
tag. -
#meta(**attributes, &content) ⇒ nil
Outputs a
<meta>
tag. -
#param(**attributes, &content) ⇒ nil
Outputs a
<param>
tag. -
#source(**attributes, &content) ⇒ nil
Outputs a
<source>
tag. -
#track(**attributes, &content) ⇒ nil
Outputs a
<track>
tag.
Methods included from Elements
Instance Method Details
#area(**attributes, &content) ⇒ nil
Outputs an <area>
tag.
11 |
# File 'lib/phlex/html/void_elements.rb', line 11 register_void_element :area, tag: "area" |
#br(**attributes, &content) ⇒ nil
Outputs a <br>
tag.
17 |
# File 'lib/phlex/html/void_elements.rb', line 17 register_void_element :br, tag: "br" |
#col(**attributes, &content) ⇒ nil
Outputs a <col>
tag.
77 |
# File 'lib/phlex/html/void_elements.rb', line 77 register_void_element :col, tag: "col" |
#embed(**attributes, &content) ⇒ nil
Outputs an <embed>
tag.
23 |
# File 'lib/phlex/html/void_elements.rb', line 23 register_void_element :embed, tag: "embed" |
#hr(**attributes, &content) ⇒ nil
Outputs an <hr>
tag.
29 |
# File 'lib/phlex/html/void_elements.rb', line 29 register_void_element :hr, tag: "hr" |
#img(**attributes, &content) ⇒ nil
Outputs an <img>
tag.
35 |
# File 'lib/phlex/html/void_elements.rb', line 35 register_void_element :img, tag: "img" |
#input(**attributes, &content) ⇒ nil
Outputs an <input>
tag.
41 |
# File 'lib/phlex/html/void_elements.rb', line 41 register_void_element :input, tag: "input" |
#link(**attributes, &content) ⇒ nil
Outputs a <link>
tag.
47 |
# File 'lib/phlex/html/void_elements.rb', line 47 register_void_element :link, tag: "link" |
#meta(**attributes, &content) ⇒ nil
Outputs a <meta>
tag.
53 |
# File 'lib/phlex/html/void_elements.rb', line 53 register_void_element :meta, tag: "meta" |
#param(**attributes, &content) ⇒ nil
Outputs a <param>
tag.
59 |
# File 'lib/phlex/html/void_elements.rb', line 59 register_void_element :param, tag: "param" |
#source(**attributes, &content) ⇒ nil
Outputs a <source>
tag.
65 |
# File 'lib/phlex/html/void_elements.rb', line 65 register_void_element :source, tag: "source" |
#track(**attributes, &content) ⇒ nil
Outputs a <track>
tag.
71 |
# File 'lib/phlex/html/void_elements.rb', line 71 register_void_element :track, tag: "track" |