#Pipelined

2022-11-30

Eg an API for a library that I don't control like:

redis.pipelined do |pipeline|
# ...
end

`#pipelined` provides a `pipeline` block parameter and I want to leak it to an outer scope (I know I shouldn't but I want to anyway).

So I want an interface like:
pipeline = defeat_block(redis.method(:pipelined))

I can write it myself, but I was hoping there's something nicer.

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst