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

31 lines
435 B
Ruby
Raw Normal View History

2013-09-08 02:39:45 -04:00
# encoding: utf-8
module Mutant
class Mutator
class Node
# AndAsgn mutator
class AndAsgn < Generic
handle(:and_asgn)
children :left, :right
private
# Emit mutations
#
# @return [undefined]
#
# @api private
#
def dispatch
super
emit_nil
end
end # AndAsgn
end # Node
end # Mutator
end # Mutant