Method: Mail::Sendmail#initialize

Defined in:
lib/mail/network/delivery_methods/sendmail.rb

#initialize(values) ⇒ Sendmail

Returns a new instance of Sendmail.

Raises:

  • (ArgumentError)

51
52
53
54
# File 'lib/mail/network/delivery_methods/sendmail.rb', line 51

def initialize(values)
  self.settings = self.class::DEFAULTS.merge(values)
  raise ArgumentError, ":arguments expected to be an Array of individual string args" if settings[:arguments].is_a?(String)
end