module EventMachine::IMAP::Authenticators

Public Instance Methods

add_authenticator(*args) click to toggle source
# File lib/em-imap/authenticators.rb, line 12
def add_authenticator(*args)
  EventMachine::IMAP.add_authenticator(*args)
end

Private Instance Methods

authenticator(type, *args) click to toggle source
# File lib/em-imap/authenticators.rb, line 18
def authenticator(type, *args)
  raise ArgumentError, "Unknown auth type - '#{type}'" unless imap_authenticators[type]
  imap_authenticators[type].new(*args)
end
imap_authenticators() click to toggle source
# File lib/em-imap/authenticators.rb, line 23
def imap_authenticators
  Net::IMAP.send :class_variable_get, :@@authenticators
end