class Mutest::Mutator::Node::NthRef

Mutator for nth-ref nodes

Private Instance Methods

dispatch() click to toggle source

Emit mutations

@return [undefined]

# File lib/mutest/mutator/node/nthref.rb, line 15
def dispatch
  emit_number(number - 1) unless number.equal?(1)
  emit_number(number + 1)
end