From 253f65aa4ed7e67bf7f11d87dcebc4f87888a3d8 Mon Sep 17 00:00:00 2001 From: shugo Date: Mon, 26 Mar 2001 12:32:38 +0000 Subject: * lib/net/imap.rb: added example. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/imap.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/net') diff --git a/lib/net/imap.rb b/lib/net/imap.rb index a5cccdfbea..e1c1897d16 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. -- cgit v1.2.3