class Asciidoctor::Table::Cell

def initialize(column, text, attributes = {})

def initialize(column, text, attributes = {})
  super(column, :cell)
  @text = text
  @colspan = nil
  @rowspan = nil
  # TODO feels hacky
  if !column.nil?
    update_attributes(column.attributes)
  end
  if !attributes.nil?
    if attributes.has_key? 'colspan'
      @colspan = attributes['colspan']
      attributes.delete('colspan') 
    end
    if attributes.has_key? 'rowspan'
      @rowspan = attributes['rowspan']
      attributes.delete('rowspan') 
    end
    update_attributes(attributes)
  end
  if @attributes['style'] == :asciidoc
    @inner_document = Document.new(@text, :header_footer => false, :parent => @document)
  end
end