* 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
@ -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…
x
Reference in New Issue
Block a user