free_mutant/lib/mutant/mutator/literal/empty_array.rb
Markus Schirp 76199d082b Cleanup mutator internals
* Rename emit_safe to emit
* Rename emit_unsafe to emit!
2012-08-15 21:14:07 +02:00

24 lines
431 B
Ruby

module Mutant
class Mutator
class Literal < self
# Mutator for empty array literals
class EmptyArray < self
handle(Rubinius::AST::EmptyArray)
private
# Emit mutants
#
# @return [undefined]
#
# @api private
#
def dispatch
emit_nil
emit_node(Rubinius::AST::ArrayLiteral, [new_nil])
end
end
end
end
end