Prefer block pass over explicit block

This commit is contained in:
Markus Schirp 2015-07-19 09:22:07 +00:00
parent ba11d7d889
commit afe948c78a

View file

@ -100,9 +100,7 @@ module Mutant
#
# @api private
def emit_selector_replacement
SELECTOR_REPLACEMENTS.fetch(selector, EMPTY_ARRAY).each do |replacement|
emit_selector(replacement)
end
SELECTOR_REPLACEMENTS.fetch(selector, EMPTY_ARRAY).each(&method(:emit_selector))
end
# Emit naked receiver mutation