提交 d2c0571b 编写于 作者: A Aaron Patterson

Revert "we never pass blocks, so remove this"

This reverts commit 9caf0cf9.
上级 ccbefff6
......@@ -251,7 +251,7 @@ def invert_lambda(l)
def make_lambda(filter)
case filter
when Symbol
lambda { |target, _| target.send filter }
lambda { |target, _, &blk| target.send filter, &blk }
when String
l = eval "lambda { |value| #{filter} }"
lambda { |target, value| target.instance_exec(value, &l) }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册