@@ -44,7 +44,7 @@ def self.parse(string, endpoint = nil, **options)
44
44
#
45
45
# @parameter scheme [String] The scheme to use, e.g. "redis" or "rediss".
46
46
# @parameter hostname [String] The hostname to connect to (or bind to).
47
- # @parameter * options [Hash] Additional options, passed to {#initialize}.
47
+ # @parameter options [Hash] Additional options, passed to {#initialize}.
48
48
def self . for ( scheme , hostname , credentials : nil , port : nil , database : nil , **options )
49
49
uri_klass = SCHEMES . fetch ( scheme . downcase ) do
50
50
raise ArgumentError , "Unsupported scheme: #{ scheme . inspect } "
@@ -74,9 +74,10 @@ def self.[](object)
74
74
#
75
75
# @parameter url [URI] The URL to connect to.
76
76
# @parameter endpoint [Endpoint] The underlying endpoint to use.
77
- # @parameter scheme [String] The scheme to use, e.g. "redis" or "rediss".
78
- # @parameter hostname [String] The hostname to connect to (or bind to), overrides the URL hostname (used for SNI).
79
- # @parameter port [Integer] The port to bind to, overrides the URL port.
77
+ # @option scheme [String] The scheme to use, e.g. "redis" or "rediss".
78
+ # @option hostname [String] The hostname to connect to (or bind to), overrides the URL hostname (used for SNI).
79
+ # @option port [Integer] The port to bind to, overrides the URL port.
80
+ # @option ssl_context [OpenSSL::SSL::SSLContext] The SSL context to use for secure connections.
80
81
def initialize ( url , endpoint = nil , **options )
81
82
super ( **options )
82
83
0 commit comments