mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/net/imap.rb: added example.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2d32e4dd6d
commit
253f65aa4e
1 changed files with 5 additions and 0 deletions
|
@ -227,6 +227,11 @@ Object
|
||||||
: add_response_handler(handler = Proc.new)
|
: add_response_handler(handler = Proc.new)
|
||||||
Adds a response handler.
|
Adds a response handler.
|
||||||
|
|
||||||
|
ex).
|
||||||
|
imap.add_response_handler do |resp|
|
||||||
|
p resp
|
||||||
|
end
|
||||||
|
|
||||||
: remove_response_handler(handler)
|
: remove_response_handler(handler)
|
||||||
Removes the response handler.
|
Removes the response handler.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue