Class: EcoRake::Lib::Notify::Mailer
- Defined in:
- lib/eco-rake/lib/notify/mailer.rb
Constant Summary
Constants inherited from EcoRake
Instance Method Summary collapse
Instance Method Details
#task(*_args) ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/eco-rake/lib/notify/mailer.rb', line 11 def task(*_args) kargs = { to: [:to], subject: [:subject], body: [:body] } kargs.merge!(cc: [:cc]) if [:cc] kargs.merge!(bcc: [:bcc]) if [:bcc] mailer.mail(**kargs) end |