This can be useful to users of the library, in the same way that #capable?, #capabilities, and #capable_auth_types are all useful. For what it's worth #auth_capable? is public for net-imap v0.4.0.
I will also suggest that perhaps some future version should deprecate (and eventually, remove) the specific mechanism predicate methods (capable_plain_auth?, capable_login_auth?, and capable_cram_md5_auth?). A new predicate method shouldn't be added for every potential SASL mechanism.
This can be useful to users of the library, in the same way that
#capable?
,#capabilities
, and#capable_auth_types
are all useful. For what it's worth#auth_capable?
is public fornet-imap
v0.4.0.I will also suggest that perhaps some future version should deprecate (and eventually, remove) the specific mechanism predicate methods (
capable_plain_auth?
,capable_login_auth?
, andcapable_cram_md5_auth?
). A new predicate method shouldn't be added for every potential SASL mechanism.