Skip to content

Commit 8a1ac02

Browse files
committed
✨ Add SASL::Authenticators#remove_authenticator
1 parent 7c6938b commit 8a1ac02

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/net/imap/sasl/authenticators.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ def add_authenticator(name, authenticator = nil)
7777
@authenticators[key] = authenticator
7878
end
7979

80+
# Removes the authenticator registered for +name+
81+
def remove_authenticator(name)
82+
key = name.upcase.to_sym
83+
@authenticators.delete(key)
84+
end
85+
8086
# :call-seq:
8187
# authenticator(mechanism, ...) -> auth_session
8288
#

0 commit comments

Comments
 (0)