Method: HTML::Table::ColGroup#initialize
- Defined in:
- lib/html/colgroup.rb
#initialize(arg = nil, &block) ⇒ ColGroup
Returns a new ColGroup object. Optionally takes a block. If an argument is provided, it is treated as content.
18 19 20 21 22 23 24 |
# File 'lib/html/colgroup.rb', line 18 def initialize(arg = nil, &block) @html_begin = '<colgroup' @html_body = '' @html_end = '</colgroup>' instance_eval(&block) if block_given? self.push(arg) if arg end |