Class: TextElements::Citation
- Inherits:
-
ContainerElement
- Object
- ContainerElement
- TextElements::Citation
- Defined in:
- lib/reparcs/elements/text_elements.rb
Overview
A citation ‘<cite></cite>’ Use: Define a citation.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Citation
constructor
Create a new Citation element, takes a optional hash of attributes as parameter.
Constructor Details
#initialize(attrs = {}) ⇒ Citation
Create a new Citation element, takes a optional hash of attributes as parameter.
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/reparcs/elements/text_elements.rb', line 120 def initialize(attrs={}) aattrs = [ "class", "id", "title", "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("cite", aattrs, childs, attrs) @start_element = "<cite" @end_element = "</cite>" end |