Class: Mutant::Mutation::Evil
- Inherits:
-
Mutant::Mutation
- Object
- Mutant::Mutation
- Mutant::Mutation::Evil
- Defined in:
- lib/mutant/mutation/evil.rb
Overview
Evul mutation
Instance Method Summary collapse
-
#identification ⇒ String
private
Return identification.
-
#success?(killer) ⇒ true, false
private
Test if killer is successful.
Methods inherited from Mutant::Mutation
#code, #insert, #original_source, #root, #source
Instance Method Details
#identification ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return identification
14 15 16 |
# File 'lib/mutant/mutation/evil.rb', line 14 def identification "evil:#{super}" end |
#success?(killer) ⇒ true, false
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Test if killer is successful
31 32 33 |
# File 'lib/mutant/mutation/evil.rb', line 31 def success?(killer) killer.killed? end |