summaryrefslogtreecommitdiffstats
path: root/lib/net/imap.rb
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-03-26 12:32:38 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-03-26 12:32:38 +0000
commitb23f07159a1cb434ec606cd9561e44cdc11704b9 (patch)
tree2d704b0a1b3043e03afdc2c05ebbd0a5d69f6b83 /lib/net/imap.rb
parent6129fffce0bddb3be285027504969659404f59e5 (diff)
downloadruby-b23f07159a1cb434ec606cd9561e44cdc11704b9.tar.gz
ruby-b23f07159a1cb434ec606cd9561e44cdc11704b9.tar.xz
ruby-b23f07159a1cb434ec606cd9561e44cdc11704b9.zip
* lib/net/imap.rb: added example.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/imap.rb')
-rw-r--r--lib/net/imap.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/net/imap.rb b/lib/net/imap.rb
index a5cccdfbe..e1c1897d1 100644
--- a/lib/net/imap.rb
+++ b/lib/net/imap.rb
@@ -227,6 +227,11 @@ Object
: add_response_handler(handler = Proc.new)
Adds a response handler.
+ ex).
+ imap.add_response_handler do |resp|
+ p resp
+ end
+
: remove_response_handler(handler)
Removes the response handler.