Skip to content

Commit

Permalink
🔀 Merge pull request #372 from ruby/fix-rdoc-issues
Browse files Browse the repository at this point in the history
📚 Fix rdoc issues
  • Loading branch information
nevans authored Jan 3, 2025
2 parents 2fdc80f + 660d5aa commit e6d6c1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions lib/net/imap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1603,7 +1603,7 @@ def list(refname, mailbox)
#
# ==== Capabilities
#
# The server's capabilities must include +NAMESPACE+
# The server's capabilities must include either +IMAP4rev2+ or +NAMESPACE+
# [RFC2342[https://tools.ietf.org/html/rfc2342]].
def namespace
synchronize do
Expand Down Expand Up @@ -1904,7 +1904,7 @@ def close
#
# ==== Capabilities
#
# The server's capabilities must include +UNSELECT+
# The server's capabilities must include either +IMAP4rev2+ or +UNSELECT+
# [RFC3691[https://tools.ietf.org/html/rfc3691]].
def unselect
send_command("UNSELECT")
Expand Down Expand Up @@ -2647,7 +2647,7 @@ def uid_copy(set, mailbox)
#
# ==== Capabilities
#
# The server's capabilities must include +MOVE+
# The server's capabilities must include either +IMAP4rev2+ or +MOVE+
# [RFC6851[https://tools.ietf.org/html/rfc6851]].
#
# If +UIDPLUS+ [RFC4315[https://www.rfc-editor.org/rfc/rfc4315.html]] is
Expand Down Expand Up @@ -2889,7 +2889,7 @@ def enable(*capabilities)
#
# ==== Capabilities
#
# The server's capabilities must include +IDLE+
# The server's capabilities must include either +IMAP4rev2+ or +IDLE+
# [RFC2177[https://tools.ietf.org/html/rfc2177]].
def idle(timeout = nil, &response_handler)
raise LocalJumpError, "no block given" unless response_handler
Expand Down
4 changes: 2 additions & 2 deletions lib/net/imap/search_result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ def inspect
# data.to_s("SORT") # => "* SORT 2 8 32 128 256 512"
# data.to_s(nil) # => "2 8 32 128 256 512"
#
# data = Net::IMAP::SearchResult[1, 3, 16, 1024, modseq: 2048].to_s
# data = Net::IMAP::SearchResult[1, 3, 16, 1024, modseq: 2048]
# data.to_s # => "* SEARCH 1 3 16 1024 (MODSEQ 2048)"
# data.to_s("SORT") # => "* SORT 1 3 16 1024 (MODSEQ 2048)"
# data.to_s # => "1 3 16 1024 (MODSEQ 2048)"
# data.to_s(nil) # => "1 3 16 1024 (MODSEQ 2048)"
#
def to_s(type = "SEARCH")
str = +""
Expand Down

0 comments on commit e6d6c1d

Please sign in to comment.