summaryrefslogtreecommitdiff
path: root/lib/net/pop.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-12 05:37:38 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-12 05:37:38 +0000
commitfbcc6dea0c86e7e4d087f1d4b2de19b211d16647 (patch)
tree68bde87194755712893e5efa4d7f9d2f5312df10 /lib/net/pop.rb
parent9d823983dc3e88cb7775c78908a4bb5133ad88ac (diff)
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.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/net/pop.rb b/lib/net/pop.rb
index 6e12d40..61f7b52 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 )