eaa4451cd9
Dunno why I ever merged this. Its IMHO wrong to expose those predicates.
37 lines
621 B
Ruby
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
|