free_mutant/lib/mutant/mutator/util/symbol.rb

28 lines
417 B
Ruby
Raw Normal View History

# encoding: utf-8
module Mutant
class Mutator
class Util
# Utility symbol mutator
class Symbol < self
handle(::Symbol)
private
# Emit mutations
#
# @return [undefined]
#
# @api private
#
def dispatch
2013-06-14 14:54:02 -04:00
emit_new { :"s#{Random.hex_string}" }
end
end # Symbol
end # Util
end # Mutator
end # Mutant