Class: Hermeneutics::XHtml
Constant Summary
Constants inherited from Html
Html::CONTENT_TYPE, Html::Field, Html::NBSP, Html::TAGS
Instance Attribute Summary
Attributes inherited from Html
Instance Method Summary collapse
Methods inherited from Html
#<<, #_, #build, #comment, #document, document, #field, #file_path, #form, #form!, #head, #href, #href!, inherited, #initialize, #input, #javascript, #label, #language, #method_missing, open, #pcdata, #tag?, write_file
Constructor Details
This class inherits a constructor from Hermeneutics::Html
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Hermeneutics::Html
Instance Method Details
#a(attrs = nil) ⇒ Object
436 437 438 439 |
# File 'lib/hermeneutics/html.rb', line 436 def a attrs = nil attrs[ :name] ||= attrs[ :id] if attrs super end |
#html(**attrs) ⇒ Object
429 430 431 432 433 434 |
# File 'lib/hermeneutics/html.rb', line 429 def html **attrs attrs[ :xmlns] ||= "http://www.w3.org/1999/xhtml" attrs[ :"xml:lang"] = language attrs[ :lang] = "" super end |