Class: Mutiny::Mutants::Mutation::Method::ShortcutAssignmentOperatorReplacement

Inherits:
Helpers::OperatorReplacement show all
Defined in:
lib/mutiny/mutants/mutation/method/shortcut_assignment_operator_replacement.rb

Instance Method Summary collapse

Methods inherited from Helpers::OperatorReplacement

#pattern, #replacement

Methods inherited from Mutiny::Mutants::Mutation

#name, #short_name

Instance Method Details

#infix_operator_namesObject



12
13
14
# File 'lib/mutiny/mutants/mutation/method/shortcut_assignment_operator_replacement.rb', line 12

def infix_operator_names
  i(+ - * / % ** & | ^ << >>)
end

#infix_operator_rootObject



8
9
10
# File 'lib/mutiny/mutants/mutation/method/shortcut_assignment_operator_replacement.rb', line 8

def infix_operator_root
  :op_asgn
end

#prefix_operator_namesObject



16
17
18
# File 'lib/mutiny/mutants/mutation/method/shortcut_assignment_operator_replacement.rb', line 16

def prefix_operator_names
  i(and_asgn or_asgn)
end