Class: PresentationElements::Small
- Inherits:
-
ContainerElement
- Object
- ContainerElement
- PresentationElements::Small
- Defined in:
- lib/reparcs/elements/presentation_elements.rb
Overview
A small element
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Small
constructor
Creates a new small element, takes an optional hash of attributes as parameter.
Constructor Details
#initialize(attrs = {}) ⇒ Small
Creates a new small element, takes an optional hash of attributes as parameter.
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/reparcs/elements/presentation_elements.rb', line 104 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("small", aattrs, childs, attrs) @start_element = "<small" @end_element = "</small>" end |