Method: Mail::Sendmail#initialize
- Defined in:
- lib/mail/network/delivery_methods/sendmail.rb
#initialize(values) ⇒ Sendmail
Returns a new instance of Sendmail.
51 52 53 54 55 56 57 58 |
# File 'lib/mail/network/delivery_methods/sendmail.rb', line 51 def initialize(values) if values[:arguments].is_a?(String) deprecation_warn.call \ 'Initializing Mail::Sendmail with :arguments of type String is deprecated.' \ ' Instead ensure :arguments is an array of strings, e.g. ["-i", "-t"]' end self.settings = self.class::DEFAULTS.merge(values) end |