Module: Net::SMTP::TLS

Defined in:
lib/reap/extensions/net/smtp_tls.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



12
13
14
15
16
# File 'lib/reap/extensions/net/smtp_tls.rb', line 12

def self.included(base)
  base.extend(ClassMethods)

  @usetls = base.use_tls?
end

Instance Method Details

#disable_tlsObject



44
45
46
# File 'lib/reap/extensions/net/smtp_tls.rb', line 44

def disable_tls()
  @usetls = false
end

#enable_tlsObject



40
41
42
# File 'lib/reap/extensions/net/smtp_tls.rb', line 40

def enable_tls()
  @usetls = true
end

#use_tls?Boolean

Returns:

  • (Boolean)


36
37
38
# File 'lib/reap/extensions/net/smtp_tls.rb', line 36

def use_tls?()
  @usetls
end