Module: Hanami::Mailer::Glue Private

Defined in:
lib/hanami/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/hanami/mailer/glue.rb', line 50

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