lib/roda/plugins/error_email.rb
def error_email(exception)
          email_opts = self.class.opts[:error_email].dup
          email_opts[:message] = error_email_content(exception)
          email_opts[:emailer].call(email_opts)
        end
# 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.
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.
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 .
def error_email(exception)
          email_opts = self.class.opts[:error_email].dup
          email_opts[:message] = error_email_content(exception)
          email_opts[:emailer].call(email_opts)
        end
def error_email ( exception ) email_opts = self . class . opts [ :error_email ] . dup email_opts [ :message ] = error_email_content ( exception ) email_opts [ :emailer ] . call ( email_opts ) end
Send an email for the given error.
Send an email for the given error .
exception