free_mutant/lib/mutant/mutator/node/op_asgn.rb
2013-09-08 11:45:00 +02:00

30 lines
452 B
Ruby

# encoding: utf-8
module Mutant
class Mutator
class Node
# OpAsgn mutator
class OpAsgn < Generic
handle(:op_asgn, :or_asgn, :and_asgn)
children :left, :right
private
# Emit mutations
#
# @return [undefined]
#
# @api private
#
def dispatch
super
emit_nil
end
end # OpAsgn
end # Node
end # Mutator
end # Mutant