Skip to content

Commit 269afc9

Browse files
committed
📚 Reformat search docs for SequenceSet coercion
This format simplifies updating the docs in later commits.
1 parent 5b1da5b commit 269afc9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/net/imap.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1944,8 +1944,10 @@ def uid_expunge(uid_set)
19441944
#
19451945
# * When +criteria+ is an array, each member is a +SEARCH+ command argument:
19461946
# * Any SequenceSet sends SequenceSet#valid_string.
1947-
# +Range+, <tt>-1</tt>, and nested +Array+ elements are converted to
1948-
# SequenceSet.
1947+
# These types are converted to SequenceSet for validation and encoding:
1948+
# * +Range+
1949+
# * <tt>-1</tt> translates to <tt>*</tt>
1950+
# * nested +Array+
19491951
# * Any +String+ is sent verbatim when it is a valid \IMAP atom,
19501952
# and encoded as an \IMAP quoted or literal string otherwise.
19511953
# * Any other +Integer+ (besides <tt>-1</tt>) will be sent as +#to_s+.

0 commit comments

Comments
 (0)