Refresh

This website rubydoc.info/gems/mail/Mail/Sendmail:initialize is currently offline. Cloudflare\'s Always Online™ shows a snapshot of this web page from the Internet Archive\'s Wayback Machine. To check for the live version, click Refresh.

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