Skip to content

Commit 55b1051

Browse files
committed
✨ Add SASL::Authenticators#mechanism?
1 parent 25bc8e3 commit 55b1051

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/net/imap/sasl/authenticators.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ def remove_authenticator(name)
8383
@authenticators.delete(key)
8484
end
8585

86+
def mechanism?(name)
87+
key = name.upcase.to_sym
88+
@authenticators.key?(key)
89+
end
90+
8691
# :call-seq:
8792
# authenticator(mechanism, ...) -> auth_session
8893
#

0 commit comments

Comments
 (0)