class Net::SMTP

def capable_plain_auth?

You cannot get valid value before opening SMTP session.
true if server advertises AUTH PLAIN.
def capable_plain_auth?
  auth_capable?('PLAIN')
end