26 lines
469 B
Ruby
26 lines
469 B
Ruby
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
|
|
emit(s(:send, s(:const, s(:cbase), :Object), :new))
|
|
end
|
|
|
|
end # Nil
|
|
end # Literal
|
|
end # Node
|
|
end # Mutator
|
|
end # Mutant
|