Class: PresentationElements::Bold
- Inherits:
-
ContainerElement
- Object
- ContainerElement
- PresentationElements::Bold
- Defined in:
- lib/reparcs/elements/presentation_elements.rb
Overview
A Bold element ”
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Bold
constructor
Create a new Bold element, takes an optional hash of attributes as parameter.
Constructor Details
#initialize(attrs = {}) ⇒ Bold
Create a new Bold element, takes an optional hash of attributes as parameter.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/reparcs/elements/presentation_elements.rb', line 10 def initialize(attrs={}) aattrs = [ "class", "id", "title", "dir", "xml:lang", "onclick", "ondblclick", "onkeydown", "onkeypress", "onkeyup", "onmousedown", "onmousemove", "onmouseout", "onmouseover", "onmouseup", "style" ] child = [ "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("b", aattrs, childs, attrs) @start_element = "<b" @end_element = "</b>" end |