Class: Mutant::Mutator::Node::Iter19
- Inherits:
-
Mutant::Mutator::Node
- Object
- Mutant::Mutator
- Mutant::Mutator::Node
- Mutant::Mutator::Node::Iter19
- Defined in:
- lib/mutant/mutator/node/iter_19.rb
Overview
Emitter for mutations on 19 blocks
Instance Attribute Summary
Attributes inherited from Mutant::Mutator
Instance Method Summary collapse
-
#dispatch ⇒ undefined
private
Emit mutants.
Methods inherited from Mutant::Mutator::Node
Methods inherited from Mutant::Mutator
Instance Method Details
#dispatch ⇒ 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.
Emit mutants
15 16 17 18 19 20 21 22 |
# File 'lib/mutant/mutator/node/iter_19.rb', line 15 def dispatch emit_attribute_mutations(:body) emit_attribute_mutations(:arguments) do |mutation| arguments = mutation.arguments arguments.names = arguments.required + arguments.optional mutation end if node.arguments end |