make_lambda is never called with an Array
This commit is contained in:
parent
23122ab2d4
commit
f5478d9263
@ -254,8 +254,6 @@ def invert_lambda(l)
|
||||
# on the object.
|
||||
def make_lambda(filter)
|
||||
case filter
|
||||
when Array
|
||||
filter.map {|f| _compile_options(f)}
|
||||
when Symbol
|
||||
lambda { |target, value, &blk|
|
||||
target.send filter, &blk
|
||||
|
Loading…
Reference in New Issue
Block a user