free_mutant/lib/mutant/mutator/literal/symbol.rb
2012-08-09 23:07:22 +02:00

24 lines
433 B
Ruby

module Mutant
class Mutator
class Literal < self
# Represent mutations on symbol literal
class Symbol < self
handle(Rubinius::AST::SymbolLiteral)
private
# Emit mutatns
#
# @return [undefined]
#
# @api private
#
def dispatch
emit_nil
emit_new { new_self(Random.hex_string.to_sym) }
end
end
end
end
end