Break up long method

This commit is contained in:
Markus Schirp 2014-07-25 18:09:27 +00:00
parent 99b19a1d92
commit 546a7a8fba

View file

@ -21,12 +21,24 @@ module Mutant
emit(send)
emit_send_mutations(&method(:n_send?))
emit_arguments_mutations
mutate_body
end
# Emit body mutations
#
# @return [undefined]
#
# @api private
#
def mutate_body
emit_body(nil)
emit_body(N_RAISE)
if body
emit(body)
emit_body_mutations
end
emit_body(nil)
emit_body(N_RAISE)
end
end # Block