free_mutant/lib/mutant/mutator/node/yield.rb
2013-11-03 12:37:47 -08:00

29 lines
448 B
Ruby

# encoding: utf-8
module Mutant
class Mutator
class Node
# Yield mutator
class Yield < Generic
handle(:yield)
private
# Emit mutations
#
# @return [undefined]
#
# @api private
#
def dispatch
super
children.each_index(&method(:delete_child))
emit_nil
end
end # Yield
end # Node
end # Mutator
end # Mutant