lib/mutant/matcher/config.rb in mutant-0.10.24 vs lib/mutant/matcher/config.rb in mutant-0.10.25
- old
+ new
@@ -24,10 +24,12 @@
)
private_constant(*constants(false))
DEFAULT = new(Hash[anima.attribute_names.map { |name| [name, []] }])
- expression = ->(input) { Mutant::Config::DEFAULT.expression_parser.call(input) }
+ expression = Transform::Block.capture(:expression) do |input|
+ Mutant::Config::DEFAULT.expression_parser.call(input)
+ end
expression_array = Transform::Array.new(expression)
LOADER =
Transform::Sequence.new(