class Hermeneutics::Html::Generator::XHtml
Public Instance Methods
a(**attrs)
click to toggle source
Calls superclass method
# File lib/hermeneutics/html.rb, line 414 def a **attrs attrs[ :name] ||= attrs[ :id] super end
html(**attrs)
click to toggle source
Calls superclass method
# File lib/hermeneutics/html.rb, line 407 def html **attrs attrs[ :xmlns] ||= "http://www.w3.org/1999/xhtml" attrs[ :"xml:lang"] = language attrs[ :lang] = "" super end
Private Instance Methods
doctype_header()
click to toggle source
# File lib/hermeneutics/html.rb, line 430 def doctype_header prop = { version: "1.0", encoding: @generator.encoding } @generator.pi_tag :xml, prop @generator.doctype "html", "PUBLIC", "-//W3C//DTD XHTML 1.1//EN", "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" end
generate(out) { || ... }
click to toggle source
Calls superclass method
Hermeneutics::Html#generate
# File lib/hermeneutics/html.rb, line 421 def generate out super do @generator.close_standalone = true @generator.assign_attributes = true @generator.cdata_block = true yield end end