Module: Ruby::Tags::Html
- Defined in:
- lib/ruby/tags/html.rb
Instance Method Summary collapse
- #attr(attributes = {}) ⇒ Object
- #group(*tags) ⇒ Object
- #html5(*renderable) ⇒ Object
- #text(string) ⇒ Object
Instance Method Details
#attr(attributes = {}) ⇒ Object
9 10 11 |
# File 'lib/ruby/tags/html.rb', line 9 def attr(attributes = {}) Attribute.new attributes end |
#group(*tags) ⇒ Object
17 18 19 |
# File 'lib/ruby/tags/html.rb', line 17 def group(*) Group.new * end |
#html5(*renderable) ⇒ Object
5 6 7 |
# File 'lib/ruby/tags/html.rb', line 5 def html5(*renderable) Group.new Text.new("<!DOCTYPE html>"), NonVoid.new("html", *renderable) end |
#text(string) ⇒ Object
13 14 15 |
# File 'lib/ruby/tags/html.rb', line 13 def text(string) Text.new string end |