class Mutest::Mutator::Node::Send::AttributeAssignment

Mutator for attribute assignments

Constants

ATTRIBUTE_RANGE

Private Instance Methods

dispatch() click to toggle source

Emit mutations

@return [undefined]

# File lib/mutest/mutator/node/send/attribute_assignment.rb, line 15
def dispatch
  normal_dispatch
  emit_attribute_read
end
emit_attribute_read() click to toggle source

Emit attribute read

@return [undefined]

# File lib/mutest/mutator/node/send/attribute_assignment.rb, line 32
def emit_attribute_read
  emit_type(receiver, selector[ATTRIBUTE_RANGE].to_sym)
end
mutate_arguments() click to toggle source

Mutate arguments

@return [undefined]

# File lib/mutest/mutator/node/send/attribute_assignment.rb, line 23
def mutate_arguments
  remaining_children_indices.each do |index|
    mutate_child(index)
  end
end