Class: Mutant::Mutator::Regexp::Alternation Private

Inherits:
Mutant::Mutator::Regexp show all
Defined in:
lib/mutant/mutator/regexp.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Constant Summary

Constants inherited from Mutant::Mutator::Regexp

REGISTRY

Instance Attribute Summary

Attributes inherited from Mutant::Mutator

#output

Instance Method Summary collapse

Methods inherited from Mutant::Mutator::Regexp

mutate, regexp_body

Methods included from Procto

included

Instance Method Details

#dispatchObject

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.



80
81
82
83
84
# File 'lib/mutant/mutator/regexp.rb', line 80

def dispatch
  subexpressions.each_index do |index|
    emit(mk_dup.tap { |new| new.expressions.delete_at(index) })
  end
end