From 67573c2337e1d8bc4e4c5949d44738a0c731faeb Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Wed, 8 Oct 2014 00:13:05 +0000 Subject: [PATCH] Prefer block pass from symbol over literal block --- lib/mutant/diff.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mutant/diff.rb b/lib/mutant/diff.rb index 382c93d2..72d6b1c6 100644 --- a/lib/mutant/diff.rb +++ b/lib/mutant/diff.rb @@ -64,7 +64,7 @@ module Mutant # @api private # def self.lines(source) - source.lines.map { |line| line.chomp } + source.lines.map(&:chomp) end private_class_method :lines