mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Document that Net::IMAP#fetch will return nil instead of an emtpy array.
* lib/net/imap.rb (Net::IMAP#fetch): [DOC] Document that Net::IMAP#fetch will return nil instead of an emtpy array. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8ed7d220f3
commit
a87c88bcd4
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Oct 31 16:33:46 2014 Akinori MUSHA <knu@iDaemons.org>
|
||||||
|
|
||||||
|
* lib/net/imap.rb (Net::IMAP#fetch): [DOC] Document that
|
||||||
|
Net::IMAP#fetch will return nil instead of an emtpy array.
|
||||||
|
|
||||||
Fri Oct 31 12:54:43 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Fri Oct 31 12:54:43 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* common.mk (.unicode-tables.time): needs Unicode files always,
|
* common.mk (.unicode-tables.time): needs Unicode files always,
|
||||||
|
|
|
@ -788,8 +788,10 @@ module Net
|
||||||
# +attr+ is a list of attributes to fetch; see the documentation
|
# +attr+ is a list of attributes to fetch; see the documentation
|
||||||
# for Net::IMAP::FetchData for a list of valid attributes.
|
# for Net::IMAP::FetchData for a list of valid attributes.
|
||||||
#
|
#
|
||||||
# The return value is an array of Net::IMAP::FetchData. For
|
# The return value is an array of Net::IMAP::FetchData or nil
|
||||||
# example:
|
# (instead of an empty array) if there is no matching message.
|
||||||
|
#
|
||||||
|
# For example:
|
||||||
#
|
#
|
||||||
# p imap.fetch(6..8, "UID")
|
# p imap.fetch(6..8, "UID")
|
||||||
# #=> [#<Net::IMAP::FetchData seqno=6, attr={"UID"=>98}>, \\
|
# #=> [#<Net::IMAP::FetchData seqno=6, attr={"UID"=>98}>, \\
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue