diff options
author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-03-26 12:32:38 +0000 |
---|---|---|
committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-03-26 12:32:38 +0000 |
commit | 253f65aa4ed7e67bf7f11d87dcebc4f87888a3d8 (patch) | |
tree | 2d704b0a1b3043e03afdc2c05ebbd0a5d69f6b83 /lib | |
parent | 2d32e4dd6dd578a2880a9d35d96d19a1635d7f4a (diff) |
* lib/net/imap.rb: added example.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net/imap.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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. |