# File lib/tent_steak/table.rb, line 136 def tableheader(cells, options = {}) titlestyle = { :class => options[:titleclass] || "tabletitle" } colspans = options[:colspan] || {} tr(titlestyle) do if colspans.instance_of? Hash cells.each_with_index do |hdr, i| span = _getspan(options[:colspan], i) span ? td(hdr, :colspan => span) : td(hdr) end else cells.each { |hdr| td hdr } end end end