Method: Net::POP3#each_mail
- Defined in:
- lib/net/pop.rb
#each_mail(&block) ⇒ Object Also known as: each
Yields each message to the passed-in block in turn. Equivalent to:
pop3.mails.each do |popmail|
....
end
This method raises a POPError if an error occurs.
527 528 529 |
# File 'lib/net/pop.rb', line 527 def each_mail( &block ) # :yield: message mails().each(&block) end |