Break up long method
This commit is contained in:
parent
99b19a1d92
commit
546a7a8fba
1 changed files with 14 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue