free_mutant/lib/mutant/mutator/util/symbol.rb
2014-11-17 19:24:20 +00:00

25 lines
409 B
Ruby

module Mutant
class Mutator
class Util
# Utility symbol mutator
class Symbol < self
POSTFIX = '__mutant__'.freeze
private
# Emit mutations
#
# @return [undefined]
#
# @api private
#
def dispatch
emit((input.to_s + POSTFIX).to_sym)
end
end # Symbol
end # Util
end # Mutator
end # Mutant