Method: Hanami::Mailer.configure

Defined in:
lib/hanami/mailer.rb

.configure(&blk) ⇒ Object

Configure the framework. It yields the given block in the context of the configuration

Examples:

require 'hanami/mailer'

Hanami::Mailer.configure do
  root '/path/to/root'
end

Parameters:

  • blk (Proc)

    the configuration block

See Also:

Since:

  • 0.1.0



63
64
65
66
# File 'lib/hanami/mailer.rb', line 63

def self.configure(&blk)
  configuration.instance_eval(&blk)
  self
end