Method: TableSetting::Cell#to_html

Defined in:
lib/table_setting/cell.rb

#to_htmlObject



60
61
62
63
64
65
66
67
68
69
# File 'lib/table_setting/cell.rb', line 60

def to_html
  if sheet.debug
    cell_index = "#{left_index} :: "
  else
    cell_index = ''
  end
  "    <td \#{html_classes} \#{span_attributes}>\#{cell_index}\#{contents.blank? ? '&nbsp;' : contents}</td>\n  HTML\nend\n"