class Net::SMTP

def capable_starttls?

You cannot get valid value before opening SMTP session.
true if server advertises STARTTLS.
def capable_starttls?
  capable?('STARTTLS')
end