Class: Mutant::Killer::Forking
- Inherits:
-
Mutant::Killer
- Object
- Mutant::Killer
- Mutant::Killer::Forking
- Defined in:
- lib/mutant/killer/forking.rb
Overview
A killer that executes other killer in forked environemnts
Instance Attribute Summary collapse
-
#killer ⇒ Killer
readonly
private
Return killer.
Attributes inherited from Mutant::Killer
Instance Method Summary collapse
-
#initialize(killer) ⇒ undefined
constructor
private
Initalize killer.
-
#new(strategy, mutation) ⇒ Killer::Forked
private
Return killer instance.
Methods inherited from Mutant::Killer
#killed?, #mutation_source, #success?
Constructor Details
#initialize(killer) ⇒ undefined
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.
Initalize killer
27 28 29 |
# File 'lib/mutant/killer/forking.rb', line 27 def initialize(killer) @killer = killer end |
Instance Attribute Details
#killer ⇒ Killer (readonly)
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 killer
16 17 18 |
# File 'lib/mutant/killer/forking.rb', line 16 def killer @killer end |
Instance Method Details
#new(strategy, mutation) ⇒ Killer::Forked
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 killer instance
40 41 42 |
# File 'lib/mutant/killer/forking.rb', line 40 def new(strategy, mutation) Forked.new(killer, strategy, mutation) end |