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.
# File lib/html/body.rb, line 13 def initialize(arg = nil, &block) @html_begin = "<tbody" @html_end = "</tbody>" instance_eval(&block) if block_given? self.content = arg if arg end