Module: Lotus::Mailer::Glue Private

Defined in:
lib/lotus/mailer/glue.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • 0.5.0

Instance Method Summary collapse

Instance Method Details

#delivery(&blk) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Raises:

  • (ArgumentError)

Since:

  • 0.5.0



50
51
52
53
# File 'lib/lotus/mailer/glue.rb', line 50

def delivery(&blk)
  raise ArgumentError unless block_given?
  delivery_method(*Lotus::Mailer::Delivery.new(Lotus.env, &blk).to_config)
end