Module: FunHtml::NodeDefinitions::HTMLTableColElement

Included in:
HTMLAllElements
Defined in:
lib/fun_html/node_definitions.rb

Instance Method Summary collapse

Instance Method Details

#col(attributes = nil) ⇒ Object



496
497
498
499
# File 'lib/fun_html/node_definitions.rb', line 496

def col(attributes = nil)
  # no child elements allowed and no closing tag
  write('<col', '>', attributes)
end

#colgroup(attributes = nil, &elements) ⇒ Object



492
493
494
# File 'lib/fun_html/node_definitions.rb', line 492

def colgroup(attributes = nil, &elements)
  write('<colgroup', '</colgroup>', attributes, &elements)
end