Class: TextElements::Strong
- Inherits:
-
ContainerElement
- Object
- ContainerElement
- TextElements::Strong
- Defined in:
- lib/reparcs/elements/text_elements.rb
Overview
A strong element Use: Defines a strong emphasized.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Strong
constructor
Create a new Strong element, takes a optional hash of attributes as parameter.
Constructor Details
#initialize(attrs = {}) ⇒ Strong
Create a new Strong element, takes a optional hash of attributes as parameter.
394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 |
# File 'lib/reparcs/elements/text_elements.rb', line 394 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("strong", aattrs, childs, attrs) @start_element = "<strong" @end_element = "</strong>" end |