class HTMLTableRow
Public Class Methods
new(ar,ar2)
click to toggle source
# File lib/zarchitect/htmltable.rb, line 96 def initialize(ar,ar2) @contents = ar @colspans = ar2 @headerf = false @columns = Array.new @html = "<tr>" end
Public Instance Methods
html()
click to toggle source
# File lib/zarchitect/htmltable.rb, line 108 def html @html end
process()
click to toggle source
# File lib/zarchitect/htmltable.rb, line 112 def process @contents.each_with_index do |str,i| next if @colspans[i] == 0 @columns.push HTMLTableCell.new(str,@colspans[i], @headerf) end @columns.each do |c| c.process @html << c.html end @html << "</tr>" end
set_header()
click to toggle source
# File lib/zarchitect/htmltable.rb, line 104 def set_header @headerf = true end