Class: TableElements::TableBody
- Inherits:
-
ContainerElement
- Object
- ContainerElement
- TableElements::TableBody
- Defined in:
- lib/reparcs/elements/table_elements.rb
Overview
A table body element ‘<tbody></tbody>’
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ TableBody
constructor
Creates a new TableBody element, takes an optional hash of attributes as parameters.
Constructor Details
#initialize(attrs = {}) ⇒ TableBody
Creates a new TableBody element, takes an optional hash of attributes as parameters.
93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'lib/reparcs/elements/table_elements.rb', line 93 def initialize(attrs={}) aattrs = [ "class", "id", "title", "dir", "xml:lang", "onclick", "ondblclick", "onkeydown", "onkeypress", "onkeyup", "onmousedown", "onmousemove", "onmouseout", "onmouseover", "onmouseup", "style", "charset", "hreflang", "align", "char", "charoff", "valign" ] super("tbody", aattrs, ["tr"], attrs) @start_element = "<tbody" @end_element = "</tbody>" end |