Skip to content

Commit

Permalink
🗑️ Add :nodoc: to RESPONSE_ERRORS and client_thread
Browse files Browse the repository at this point in the history
RESPONSE_ERRORS is used internally and should probably be private_const.

client_thread should be removed (or deprecated).
  • Loading branch information
nevans committed Nov 22, 2022
1 parent 75fbe85 commit 153adfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/net/imap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,7 @@ class IMAP < Protocol
# Seconds to wait until an IDLE response is received.
attr_reader :idle_response_timeout

# The thread to receive exceptions.
attr_accessor :client_thread
attr_accessor :client_thread # :nodoc:

# Returns the debug mode.
def self.debug
Expand Down
2 changes: 1 addition & 1 deletion lib/net/imap/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class ByeResponseError < ResponseError
class UnknownResponseError < ResponseError
end

RESPONSE_ERRORS = Hash.new(ResponseError)
RESPONSE_ERRORS = Hash.new(ResponseError) # :nodoc:
RESPONSE_ERRORS["NO"] = NoResponseError
RESPONSE_ERRORS["BAD"] = BadResponseError

Expand Down

0 comments on commit 153adfa

Please sign in to comment.