class Mutest::Mutator::Node::OrAsgn

OrAsgn mutator

Private Instance Methods

dispatch() click to toggle source

Emit mutations

@return [undefined]

# File lib/mutest/mutator/node/or_asgn.rb, line 15
def dispatch
  emit_singletons
  emit_right_mutations
  return if n_ivasgn?(left)

  emit_left_mutations do |node|
    AST::Types::ASSIGNABLE_VARIABLES.include?(node.type)
  end
end