Class: TextElements::Keyboard
- Inherits:
-
ContainerElement
- Object
- ContainerElement
- TextElements::Keyboard
- Defined in:
- lib/reparcs/elements/text_elements.rb
Overview
A keyboard element ‘<kbd></kbd>’ Use: Defines keyboard text
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Keyboard
constructor
Create a new Keyboard element, takes a optional hash of attributes as parameter.
Constructor Details
#initialize(attrs = {}) ⇒ Keyboard
Create a new Keyboard element, takes a optional hash of attributes as parameter.
251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 |
# File 'lib/reparcs/elements/text_elements.rb', line 251 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("kbd", aattrs, childs, attrs) @start_element = "<kbd" @end_element = "</kbd>" end |