Skip to content

Instantly share code, notes, and snippets.

@fsvehla
Created June 17, 2009 17:51
Show Gist options
  • Save fsvehla/131385 to your computer and use it in GitHub Desktop.
Save fsvehla/131385 to your computer and use it in GitHub Desktop.
FacadedImapMethods = [:uid_search, :uid_fetch, :uid_copy, :uid_store, :expunge, :append, :select, :login].deep_freeze
FacadedImapMethods.each do |sig|
class_eval <<-CLASS_METHOD, __FILE__, __LINE__ +1
def #{ sig }(*args) # def uid_search(*args)
imap_method(:#{ sig }, *args) # imap_method(:uid_search, *args)
end # end
CLASS_METHOD
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment