Class: ListElements::UnorderedList

Inherits:
ContainerElement
  • Object
show all
Defined in:
lib/reparcs/elements/list_elements.rb

Overview

A UnorderedList element ‘<ul></ul>’

Instance Method Summary collapse

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