Class: ListElements::UnorderedList
- Inherits:
-
ContainerElement
- Object
- ContainerElement
- ListElements::UnorderedList
- Defined in:
- lib/reparcs/elements/list_elements.rb
Overview
A UnorderedList element ‘<ul></ul>’
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ UnorderedList
constructor
Create a new UnorderedList, takes an optional hash of attributes as parameter.
Constructor Details
#initialize(attrs = {}) ⇒ UnorderedList
Create a new UnorderedList, takes an optional hash of attributes as parameter.
108 109 110 111 112 113 114 115 116 117 118 119 120 |
# File 'lib/reparcs/elements/list_elements.rb', line 108 def initialize(attrs={}) aattrs = [ "class", "id", "title", "dir", "xml:lang", "onclick", "ondblclick", "onkeydown", "onkeypress", "onkeyup", "onmousedown", "onmousemove", "onmouseout", "onmouseover", "onmouseup", "style" ] childs = ["li"] super("ul", aattrs, childs, attrs) @start_element = "<ul" @end_element = "</ul>" end |