Class: Mutant::Strategy
- Inherits:
-
Object
- Object
- Mutant::Strategy
- Includes:
- AbstractType, Adamantium::Flat
- Defined in:
- lib/mutant/strategy.rb
Overview
Abstract base class for killing strategies
Direct Known Subclasses
Defined Under Namespace
Classes: Null
Constant Summary collapse
- REGISTRY =
{}
Class Method Summary collapse
-
.lookup(name) ⇒ Strategy
private
Lookup strategy for name.
Instance Method Summary collapse
-
#kill(mutation) ⇒ Killer
private
Kill mutation.
-
#setup ⇒ self
private
Perform strategy setup.
-
#teardown ⇒ self
private
Perform strategy teardown.
Class Method Details
Instance Method Details
#kill(mutation) ⇒ Killer
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.
Kill mutation
65 66 67 |
# File 'lib/mutant/strategy.rb', line 65 def kill(mutation) killer.new(self, mutation) end |
#setup ⇒ self
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.
Perform strategy setup
43 44 45 |
# File 'lib/mutant/strategy.rb', line 43 def setup self end |
#teardown ⇒ self
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.
Perform strategy teardown
53 54 55 |
# File 'lib/mutant/strategy.rb', line 53 def teardown self end |