Public Instance methods
error_mail(exception)
Send an email for the given error. exception is usually an exception instance, but it can be a plain string which is used as the subject for the email.
[show source]
# File lib/roda/plugins/error_mail.rb 61 def error_mail(exception) 62 _error_mail(exception).deliver! 63 end
error_mail_content(exception)
The content of the email to send, include the headers and the body. Takes the same argument as error_mail.
[show source]
# File lib/roda/plugins/error_mail.rb 67 def error_mail_content(exception) 68 _error_mail(exception).to_s 69 end