# File lib/mofo/hentry.rb, line 26
  def to_atom(property = nil, value = nil)
    require 'digest/md5'
    require 'erb'

    if property
      value ||= instance_variable_get("@#{property}")
      return value ? ("<#{property}>%s</#{property}>" % value) : nil
    end

    entity = "<entry>\n\#{atom_id}\n\#{atom_link}\n\#{to_atom :title, @entry_title}\n\#{to_atom :updated, @updated.try(:xmlschema)}\n<author>\n\#{to_atom :name, @author.try(:fn)}\n\#{to_atom :email, @author.try(:email)}\n</author>\n<content type=\"html\">\#{ERB::Util.h @entry_content}</content>\n</entry>\n"
  end