2012-07-31 19:45:46 +02:00
|
|
|
module Mutant
|
|
|
|
class Mutator
|
2012-08-09 23:07:22 +02:00
|
|
|
class Literal < self
|
2012-07-31 19:45:46 +02:00
|
|
|
# Represent mutations on symbol literal
|
2012-08-09 23:07:22 +02:00
|
|
|
class Symbol < self
|
2012-07-31 19:45:46 +02:00
|
|
|
|
|
|
|
handle(Rubinius::AST::SymbolLiteral)
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
# Emit mutatns
|
|
|
|
#
|
|
|
|
# @return [undefined]
|
|
|
|
#
|
|
|
|
# @api private
|
|
|
|
#
|
|
|
|
def dispatch
|
|
|
|
emit_nil
|
2012-07-31 20:11:37 +02:00
|
|
|
emit_new { new_self(Random.hex_string.to_sym) }
|
2012-07-31 19:45:46 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|