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_tls ⇒ Object
44 45 46 |
# File 'lib/reap/extensions/net/smtp_tls.rb', line 44 def disable_tls() @usetls = false end |
#enable_tls ⇒ Object
40 41 42 |
# File 'lib/reap/extensions/net/smtp_tls.rb', line 40 def enable_tls() @usetls = true end |
#use_tls? ⇒ Boolean
36 37 38 |
# File 'lib/reap/extensions/net/smtp_tls.rb', line 36 def use_tls?() @usetls end |