Class: TableElements::TableRow

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

Overview

A table row element.

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ TableRow

Creates a new TableRow element, takesan optional hash of attributes as parameter.



203
204
205
206
207
208
209
210
211
212
213
214
# File 'lib/reparcs/elements/table_elements.rb', line 203

def initialize(attrs={})
  aattrs = [
    "class", "id", "title", "dir", "xml:lang",
    "onclick", "ondblclick", "onkeydown", "onkeypress",
    "onkeyup", "onmousedown", "onmousemove", "onmouseout",
    "onmouseover", "onmouseup", "style", "align", "char",
    "charoff", "valign"
  ]
  super("tr", aattrs, ["td", "th"], attrs)
  @start_element = "<tr"
  @end_element = "</tr>"
end