We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a63052d commit 8c8db14Copy full SHA for 8c8db14
gems/redis/4.2/_test/with.rb
@@ -0,0 +1,6 @@
1
+redis = Redis.new
2
+
3
+redis.with do |conn|
4
+ conn.set "foo", "bar"
5
+end
6
+# => "OK"
gems/redis/4.2/redis.rbs
@@ -276,4 +276,6 @@ class Redis
276
# @see #eval
277
# @see #evalsha
278
def script: (Symbol, *untyped) -> untyped
279
280
+ def with: [T] () { (self) -> T } -> T
281
end
0 commit comments