diff --git a/lib/net/imap/config.rb b/lib/net/imap/config.rb index 7532737c..edeea30e 100644 --- a/lib/net/imap/config.rb +++ b/lib/net/imap/config.rb @@ -75,7 +75,7 @@ class IMAP # # client = Net::IMAP.new(hostname, config: :future) # client.config.sasl_ir # => true - # client.config.responses_without_block # => :raise + # client.config.responses_without_block # => :frozen_dup # # The versioned default configs inherit certain specific config options from # Config.global, for example #debug: @@ -109,9 +109,11 @@ class IMAP # [+:future+] # The _planned_ eventual config for some future +x.y+ version. # - # For example, to raise exceptions for all current deprecations: + # For example, to disable all currently deprecated behavior: # client = Net::IMAP.new(hostname, config: :future) - # client.responses # raises an ArgumentError + # client.config.response_without_args # => :frozen_dup + # client.responses.frozen? # => true + # client.responses.values.all?(&:frozen?) # => true # # == Thread Safety #