Class: TableElements::TableColumn

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

Overview

A TableColumn element ‘<col></col>’

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ TableColumn

Creates a new Column element, takes an optional hash of attributes as parameter.



34
35
36
37
38
39
40
41
42
43
44
45
# File 'lib/reparcs/elements/table_elements.rb', line 34

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