free_mutant/lib/mutant/mutator/node/literal/nil.rb
2012-12-06 21:30:28 +01:00

25 lines
421 B
Ruby

module Mutant
class Mutator
class Node
class Literal
# Mutator for nil literals
class Nil < self
handle(Rubinius::AST::NilLiteral)
private
# Emit mutants
#
# @return [undefined]
#
# @api private
#
def dispatch
emit('Object.new'.to_ast)
end
end
end
end
end
end