free_mutant/lib/mutant/mutator/node/yield.rb

28 lines
436 B
Ruby
Raw Normal View History

2013-11-03 15:37:47 -05:00
module Mutant
class Mutator
class Node
# Yield mutator
class Yield < Generic
handle(:yield)
private
# Emit mutations
#
# @return [undefined]
#
# @api private
#
def dispatch
super
emit_singletons
2013-11-03 15:37:47 -05:00
children.each_index(&method(:delete_child))
end
end # Yield
end # Node
end # Mutator
end # Mutant