Class: PresentationElements::Subscript
- Inherits:
-
ContainerElement
- Object
- ContainerElement
- PresentationElements::Subscript
- Defined in:
- lib/reparcs/elements/presentation_elements.rb
Overview
A subscript element
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Subscript
constructor
Creates a new Subscript element, takes an optional hash of attributes as parameter.
Constructor Details
#initialize(attrs = {}) ⇒ Subscript
Creates a new Subscript element, takes an optional hash of attributes as parameter.
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 |
# File 'lib/reparcs/elements/presentation_elements.rb', line 129 def initialize(attrs={}) aattrs = [ "class", "id", "title", "dir", "xml:lang", "onclick", "ondblclick", "onkeydown", "onkeypress", "onkeyup", "onmousedown", "onmousemove", "onmouseout", "onmouseover", "onmouseup", "style" ] childs = [ "a", "abbr", "acronym", "b", "bdo", "big", "br", "button", "cite", "code", "del", "dfn", "em", "i", "img", "input", "ins", "kbd", "label", "map", "noscript", "object", "q", "samp", "script", "select", "small", "span", "strong", "sub", "sup", "textarea", "tt", "var" ] super("sub", aattrs, childs, attrs) @start_element = "<sub" @end_element = "</sub>" end |