class HTMLTableCell
Public Class Methods
new(str,n,h)
click to toggle source
# File lib/zarchitect/htmltable.rb, line 129 def initialize(str,n,h) @content = str @colspan = n @headerf = h @html = String.new if @headerf @html << "<th colspan=\"#{@colspan}\">" else @html << "<td colspan=\"#{@colspan}\">" end end
Public Instance Methods
html()
click to toggle source
# File lib/zarchitect/htmltable.rb, line 150 def html @html end
process()
click to toggle source
# File lib/zarchitect/htmltable.rb, line 141 def process @html << @content if @headerf @html << "</th>" else @html << "</td>" end end