25 lines
421 B
Ruby
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
|