File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -807,9 +807,11 @@ class IMAP < Protocol
807
807
def self . config ; Config . global end
808
808
809
809
# Returns the global debug mode.
810
+ # Delegates to {Net::IMAP.config.debug}[rdoc-ref:Config#debug].
810
811
def self . debug ; config . debug end
811
812
812
813
# Sets the global debug mode.
814
+ # Delegates to {Net::IMAP.config.debug=}[rdoc-ref:Config#debug=].
813
815
def self . debug = ( val )
814
816
config . debug = val
815
817
end
@@ -839,13 +841,20 @@ class << self
839
841
# Net::IMAP.config.
840
842
attr_reader :config
841
843
844
+ ##
845
+ # :attr_reader: open_timeout
842
846
# Seconds to wait until a connection is opened.
843
- # If the IMAP object cannot open a connection within this time,
844
- # it raises a Net::OpenTimeout exception. The default value is 30 seconds.
845
- def open_timeout ; config . open_timeout end
847
+ # Delegates to {config.open_timeout}[rdoc-ref:Config#open_timeout].
846
848
849
+ ##
850
+ # :attr_reader: idle_response_timeout
847
851
# Seconds to wait until an IDLE response is received.
848
- def idle_response_timeout ; config . idle_response_timeout end
852
+ # Delegates to {config.idle_response_timeout}[rdoc-ref:Config#idle_response_timeout].
853
+
854
+ # :stopdoc:
855
+ def open_timeout ; config . open_timeout end
856
+ def idle_response_timeout ; config . idle_response_timeout end
857
+ # :startdoc:
849
858
850
859
# The hostname this client connected to
851
860
attr_reader :host
You can’t perform that action at this time.
0 commit comments