lib/roda/plugins/mailer.rb
# Set the text_part or html_part (depending on the method) in the related email,
# using the given body and optional headers.
Set the text_part or html_part (depending on the method) in the related email,
using the given body and optional headers.
Set the text_part or html_part ( depending on the method ) in the related email using the given body and optional headers .
def _mail_part(meth, body, headers=nil)
          env['roda.mail'].public_send(meth) do
            body(body)
            headers(headers) if headers
          end
          nil
        end
def _mail_part ( meth , body , headers = nil ) env [ 'roda.mail' ] . public_send ( meth ) do body ( body ) headers ( headers ) if headers end nil end
Set the text_part or html_part (depending on the method) in the related email,
using the given body and optional headers.
Set the text_part or html_part ( depending on the method ) in the related email using the given body and optional headers .
meth
body
headers