Method: Mail::POP3#last
- Defined in:
- lib/mail/network/retriever_methods/pop3.rb
#last(options = {}, &block) ⇒ Object
Get the most recent received email(s)
Possible options:
count: number of emails to retrieve. The default value is 1.
order: order of emails returned. Possible values are :asc or :desc. Default value is :asc.
67 68 69 70 71 72 |
# File 'lib/mail/network/retriever_methods/pop3.rb', line 67 def last( = {}, &block) ||= {} [:what] = :last [:count] ||= 1 find(, &block) end |