提交 9caf0cf9 编写于 作者: A Aaron Patterson

we never pass blocks, so remove this

上级 b308f0d4
...@@ -250,7 +250,7 @@ def invert_lambda(l) ...@@ -250,7 +250,7 @@ def invert_lambda(l)
def make_lambda(filter) def make_lambda(filter)
case filter case filter
when Symbol when Symbol
lambda { |target, _, &blk| target.send filter, &blk } lambda { |target, _| target.send filter }
when String when String
l = eval "lambda { |value| #{filter} }" l = eval "lambda { |value| #{filter} }"
lambda { |target, value| target.instance_exec(value, &l) } 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.
先完成此消息的编辑!
想要评论请 注册