Method: Column#to_html

Defined in:
lib/asker/data/column.rb

#to_htmlObject



23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/asker/data/column.rb', line 23

def to_html
  case @type
  when 'text'
    return @raw
  when 'image_url'
    return "<img src=\"#{raw}\" alt\=\"image\">"
  when 'textfile_path'
    return "<pre>#{raw}</pre>"
  else
    return "ERROR type #{@type}"
  end
end