free_mutant/lib/mutant/mutator/node/mlhs.rb
2013-06-15 17:13:24 +02:00

27 lines
491 B
Ruby

module Mutant
class Mutator
class Node
# Mutator for multiple assignment left hand side nodes
class MLHS < self
handle(:mlhs)
private
# Emit mutations
#
# @return [undefined]
#
# @api private
#
def dispatch
children.each_index do |index|
mutate_child(index)
delete_child(index)
end
end
end # MLHS
end # Node
end # Mutator
end # Mutant