class Net::IMAP
def capable?(capability) capabilities.include? capability.to_s.upcase end
See Net::IMAP@Capabilities for more about \IMAP capabilities.
behaviour according to the server's advertised #capabilities.
*NOTE:* Most Net::IMAP methods do not _currently_ modify their
the server.
cached #capabilities are used without sending a new #capability command to
Returns whether the server supports a given +capability+. When available,
def capable?(capability) capabilities.include? capability.to_s.upcase end