class HTML::Table::Body
This class represents an HTML
table body (<tbody>). It is a subclass of Table::TableSection
.
Public Class Methods
new(arg = nil, &block)
click to toggle source
Returns a new Table::Body
object. Optionally takes a block. If an argument is provided, it is treated as content.
Calls superclass method
HTML::Table::TableSection::new
# File lib/html/body.rb, line 15 def initialize(arg = nil, &block) @html_begin = '<tbody' @html_end = '</tbody>' super(&block) self.content = arg if arg end