Class: ListElements::DefinitionTerm
- Inherits:
-
ContainerElement
- Object
- ContainerElement
- ListElements::DefinitionTerm
- Defined in:
- lib/reparcs/elements/list_elements.rb
Overview
A defintion term element ‘<dt></dt>’ for use within a DefintionList. Use: define a definition term.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ DefinitionTerm
constructor
Create a new DefinitionTerm, takes an optional hash of attributes as parameter.
Constructor Details
#initialize(attrs = {}) ⇒ DefinitionTerm
Create a new DefinitionTerm, takes an optional hash of attributes as parameter
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/reparcs/elements/list_elements.rb', line 62 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", "object", "q", "samp", "script", "select", "small", "span", "strong", "sub", "sup", "textarea", "tt", "var" ] super("dt", aattrs, childs, attrs) @start_element = "<dt" @end_element = "</dt>" end |