Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/frankenstein-sinatra/mail.rb

Instance Method Summary collapse

Instance Method Details

#to_mailObject



15
16
17
18
19
# File 'lib/frankenstein-sinatra/mail.rb', line 15

def to_mail
  mail_string = ""
  self.each {|key, val| mail_string << "<b>#{key}:</b> #{val}<br/>"}
  mail_string
end