Class: Hermeneutics::XHtml
Constant Summary
Constants inherited from Html
Html::CONTENT_TYPE, Html::NBSP, Html::TAGS
Instance Attribute Summary
Attributes inherited from Html
Instance Method Summary collapse
Methods inherited from Html
#<<, #_, #build, #comment, document, #document, #file_path, #form, #form!, #h, #head, #href, #href!, inherited, #input, #javascript, #language, #merge, open, #pcdata, #tag?, write_file
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Hermeneutics::Html
Instance Method Details
#a(**attrs) ⇒ Object
414 415 416 417 |
# File 'lib/hermeneutics/html.rb', line 414 def a **attrs attrs[ :name] ||= attrs[ :id] super end |
#html(**attrs) ⇒ Object
407 408 409 410 411 412 |
# 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 |