free_mutant/lib/mutant/mutation/evil.rb
Markus Schirp eaa4451cd9 Remove unused interface
Dunno why I ever merged this. Its IMHO wrong to expose those predicates.
2013-09-06 22:29:31 +02:00

37 lines
621 B
Ruby

# encoding: utf-8
module Mutant
class Mutation
# Evul mutation
class Evil < self
# Return identification
#
# @return [String]
#
# @api private
#
def identification
"evil:#{super}"
end
memoize :identification
# Test if killer is successful
#
# @param [Killer] killer
#
# @return [true]
# if killer killed mutation
#
# @return [false]
# otherwise
#
# @api private
#
def success?(killer)
killer.killed?
end
end # Evil
end # Mutation
end # Mutant