@@ -767,7 +767,8 @@ class << self
767767
768768 # The client configuration. See Net::IMAP::Config.
769769 #
770- # By default, config inherits from the global Net::IMAP.config.
770+ # By default, the client's local configuration inherits from the global
771+ # Net::IMAP.config.
771772 attr_reader :config
772773
773774 # Seconds to wait until a connection is opened.
@@ -818,18 +819,20 @@ def idle_response_timeout; config.idle_response_timeout end
818819 # SSLContext[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html].
819820 #
820821 # [config]
821- # A Net::IMAP::Config object to base the client #config on. By default
822- # the global Net::IMAP.config is used. Note that this sets the _parent_
823- # config object for inheritance. Every Net::IMAP client has its own
824- # unique #config for overrides.
822+ # A Net::IMAP::Config object to use as the basis for #config. By default,
823+ # the global Net::IMAP.config is used.
825824 #
826- # Any other keyword arguments will be forwarded to Config.new, to create the
827- # client's #config. For example:
825+ # >>>
826+ # *NOTE:* +config+ does not set #config directly---it sets the _parent_
827+ # config for inheritance. Every client creates its own unique #config.
828828 #
829- # [open_timeout]
830- # Seconds to wait until a connection is opened
831- # [idle_response_timeout]
832- # Seconds to wait until an IDLE response is received
829+ # All other keyword arguments are forwarded to Net::IMAP::Config.new, to
830+ # initialize the client's #config. For example:
831+ #
832+ # [{open_timeout}[rdoc-ref:Config#open_timeout]]
833+ # Seconds to wait until a connection is opened
834+ # [{idle_response_timeout}[rdoc-ref:Config#idle_response_timeout]]
835+ # Seconds to wait until an IDLE response is received
833836 #
834837 # See DeprecatedClientOptions.new for deprecated arguments.
835838 #
@@ -1221,7 +1224,8 @@ def starttls(**options)
12211224 # +mechanism+ is the name of the \SASL authentication mechanism to be used.
12221225 #
12231226 # +sasl_ir+ allows or disallows sending an "initial response" (see the
1224- # +SASL-IR+ capability, below).
1227+ # +SASL-IR+ capability, below). Defaults to the #config value for
1228+ # {sasl_ir}[rdoc-ref:Config#sasl_ir], which defaults to +true+.
12251229 #
12261230 # All other arguments are forwarded to the registered SASL authenticator for
12271231 # the requested mechanism. <em>The documentation for each individual
@@ -2421,7 +2425,8 @@ def enable(*capabilities)
24212425 #
24222426 # Returns the server's response to indicate the IDLE state has ended.
24232427 # Returns +nil+ if the server does not respond to #idle_done within
2424- # idle_response_timeout seconds.
2428+ # {config.idle_response_timeout}[rdoc-ref:Config#idle_response_timeout]
2429+ # seconds.
24252430 #
24262431 # Related: #idle_done, #noop, #check
24272432 #
@@ -2460,8 +2465,9 @@ def idle(timeout = nil, &response_handler)
24602465
24612466 # Leaves IDLE, allowing #idle to return.
24622467 #
2463- # If the server does not respond within idle_response_timeout, #idle will
2464- # return +nil+.
2468+ # If the server does not respond within
2469+ # {config.idle_response_timeout}[rdoc-ref:Config#idle_response_timeout]
2470+ # seconds, #idle will return +nil+.
24652471 #
24662472 # Related: #idle
24672473 def idle_done
0 commit comments