Method: Mail::POP3#connection
- Defined in:
- lib/mail/network/retriever_methods/pop3.rb
#connection(&block) ⇒ Object
Returns the connection object of the retrievable (IMAP or POP3)
104 105 106 107 108 109 110 |
# File 'lib/mail/network/retriever_methods/pop3.rb', line 104 def connection(&block) raise ArgumentError.new('Mail::Retrievable#connection takes a block') unless block_given? start do |pop3| yield pop3 end end |