Class: Mutant::Mutator::Node::Iter19

Inherits:
Mutant::Mutator::Node show all
Defined in:
lib/mutant/mutator/node/iter_19.rb

Overview

Emitter for mutations on 19 blocks

Instance Attribute Summary

Attributes inherited from Mutant::Mutator

#input

Instance Method Summary collapse

Methods inherited from Mutant::Mutator::Node

identity

Methods inherited from Mutant::Mutator

each, identity

Instance Method Details

#dispatchundefined

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

Returns:

  • (undefined)


15
16
17
18
19
20
21
# 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
  end if node.arguments
end