Prefer block pass from symbol over literal block

This commit is contained in:
Markus Schirp 2014-10-08 00:13:05 +00:00
parent 51aaf8aea6
commit 67573c2337

View file

@ -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