class Net::SMTP

def tls?

true if this object uses SMTP/TLS (SMTPS).
def tls?
  @tls
end