Class: Mutant::Mutation::Evil

Inherits:
Mutant::Mutation show all
Defined in:
lib/mutant/mutation/evil.rb

Overview

Evul mutation

Constant Summary collapse

SHOULD_FAIL =
true
SYMBOL =
'evil'.freeze

Constants inherited from Mutant::Mutation

CODE_DELIMITER, CODE_RANGE

Instance Method Summary collapse

Methods inherited from Mutant::Mutation

#code, #identification, #insert, #original_source, #root, #should_fail?, #source

Instance Method Details

#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

Parameters:

Returns:

  • (true)

    if killer killed mutation

  • (false)

    otherwise



23
24
25
# File 'lib/mutant/mutation/evil.rb', line 23

def success?(killer)
  killer.killed?
end