lib/mail/configuration.rb in mail-2.3.3 vs lib/mail/configuration.rb in mail-2.4.0
- old
+ new
@@ -3,14 +3,14 @@
# Thanks to Nicolas Fouché for this wrapper
#
require 'singleton'
module Mail
-
+
# The Configuration class is a Singleton used to hold the default
# configuration for all Mail objects.
- #
+ #
# Each new mail object gets a copy of these values at initialization
# which can be overwritten on a per mail object basis.
class Configuration
include Singleton
@@ -48,10 +48,10 @@
def retriever_method(method = nil, settings = {})
return @retriever_method if @retriever_method && method.nil?
@retriever_method = lookup_retriever_method(method).new(settings)
end
-
+
def lookup_retriever_method(method)
case method
when nil
Mail::POP3
when :pop3