free_mutant/lib/mutant/mutator/node/literal/nil.rb

29 lines
453 B
Ruby
Raw Normal View History

# encoding: utf-8
module Mutant
class Mutator
class Node
class Literal
# Mutator for nil literals
class Nil < self
handle(:nil)
private
# Emit mutants
#
# @return [undefined]
#
# @api private
#
def dispatch
2013-06-21 09:03:21 -04:00
emit(NEW_OBJECT)
end
end # Nil
end # Literal
end # Node
end # Mutator
end # Mutant