module HtmlRB
Constants
- BOOL_ATTRS
- Error
- STD_ELEMENTS
- VERSION
- VOID_ELEMENTS
Public Instance Methods
html(content=nil, document: false, **attrs, &block)
click to toggle source
# File lib/html_rb.rb, line 10 def html(content=nil, document: false, **attrs, &block) if document "<!DOCTYPE html>" + Tag.new('html', content, **attrs, &block).to_s else Tag.new(nil, content, **attrs, &block).to_s end end