free_mutant/lib/mutant/mutator/literal/string.rb
Markus Schirp 7f3797ffa1 Introduce Mutant::Random
* Cleans up naming duplication from the Mutant.random_* names.
2012-07-31 20:11:37 +02:00

24 lines
422 B
Ruby

module Mutant
class Mutator
class Literal
# Represent mutations on string literal
class String < Literal
handle(Rubinius::AST::StringLiteral)
private
# Emit mutants
#
# @return [undefined]
#
# @api private
#
def dispatch
emit_nil
emit_new { new_self(Random.hex_string) }
end
end
end
end
end