diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-09-12 05:37:38 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-09-12 05:37:38 +0000 |
commit | fbcc6dea0c86e7e4d087f1d4b2de19b211d16647 (patch) | |
tree | 68bde87194755712893e5efa4d7f9d2f5312df10 /lib/net/pop.rb | |
parent | 9d823983dc3e88cb7775c78908a4bb5133ad88ac (diff) | |
download | ruby-fbcc6dea0c86e7e4d087f1d4b2de19b211d16647.tar.gz |
matz: 1.6.0 final (hopufully)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/pop.rb')
-rw-r--r-- | lib/net/pop.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/net/pop.rb b/lib/net/pop.rb index 6e12d4064a..61f7b52cad 100644 --- a/lib/net/pop.rb +++ b/lib/net/pop.rb @@ -31,7 +31,7 @@ Net::Protocol : start( account, password ) {|pop| .... } starts POP3 session. - When called as iterator, give a POP3 object to block and + When called with a block, give a POP3 object to block and close session after block call is finished. : each {|popmail| .... } @@ -80,7 +80,7 @@ Object end : all {|str| .... } - You can use all/pop/mail as the iterator. + You can use all/pop/mail with a block. argument 'str' is a read string (a part of mail). # usage example @@ -180,7 +180,7 @@ module Net end def all( dest = '' ) - if iterator? then + if block_given? then dest = NetPrivate::ReadAdapter.new( Proc.new ) end @command.retr( @num, dest ) |