Sha256: 44a24afc68d5810f07024ca1a9d10f8abfc4e810629a4921baa7da8846d99eb8
Contents?: true
Size: 415 Bytes
Versions: 3
Compression:
Stored size: 415 Bytes
Contents
module Arbo module HTML class Document < Tag def document self end def tag_name 'html' end def doctype '<!DOCTYPE html>'.html_safe end def to_s doctype + super end def render_in(context = arbo_context) context.output_buffer << doctype super context.output_buffer end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
arbo-1.3.1 | lib/arbo/html/document.rb |
arbo-1.3.0 | lib/arbo/html/document.rb |
arbo-1.2.0 | lib/arbo/html/document.rb |