class Arbre::HTML::Document
Public Instance Methods
build(*args)
click to toggle source
Calls superclass method
# File lib/arbre/html/document.rb, line 6 def build(*args) super build_head build_body end
doctype()
click to toggle source
# File lib/arbre/html/document.rb, line 20 def doctype '<!DOCTYPE html>'.html_safe end
document()
click to toggle source
# File lib/arbre/html/document.rb, line 12 def document self end
tag_name()
click to toggle source
# File lib/arbre/html/document.rb, line 16 def tag_name 'html' end
to_s()
click to toggle source
Calls superclass method
# File lib/arbre/html/document.rb, line 24 def to_s doctype + super end
Protected Instance Methods
build_body()
click to toggle source
# File lib/arbre/html/document.rb, line 36 def build_body @body = body end
build_head()
click to toggle source
# File lib/arbre/html/document.rb, line 30 def build_head @head = head do meta :"http-equiv" => "Content-type", content: "text/html; charset=utf-8" end end