Class: TextElements::Address
- Inherits:
-
ContainerElement
- Object
- ContainerElement
- TextElements::Address
- Defined in:
- lib/reparcs/elements/text_elements.rb
Overview
An address element ‘<address></address>’ Use: Define contact information for a document.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Address
constructor
Create a new Address element, takes a optional hash of attributes as parameter.
Constructor Details
#initialize(attrs = {}) ⇒ Address
Create a new Address element, takes a optional hash of attributes as parameter.
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/reparcs/elements/text_elements.rb', line 60 def initialize(attrs={}) aattrs = [ "class", "id", "dir", "xml:lang", "onclick", "ondblclick", "onkeydown", "onkeypress", "onkeyup", "onmousedown", "onmousemove", "onmouseout", "onmouseover", "onmouseup" ] childs = [ "a", "abbr", "acronym", "b", "bdo", "big", "br", "button", "cite", "code", "del", "dfn", "em", "i", "img", "input", "ins", "kbd", "label", "map", "object", "q", "samp", "script", "select", "small", "span", "strong", "sub", "sup", "textarea", "tt", "var" ] super("address", aattrs, childs, attrs) @start_element = "<address" @end_element = "</address>" end |