lib/mutant/expression.rb in mutant-0.10.29 vs lib/mutant/expression.rb in mutant-0.10.30
- old
+ new
@@ -50,10 +50,10 @@
from_match(match) if match
end
def self.from_match(match)
names = anima.attribute_names
- new(Hash[names.zip(names.map(&match.public_method(:[])))])
+ new(names.zip(names.map(&match.public_method(:[]))).to_h)
end
private_class_method :from_match
end # Expression
end # Mutant