Class: ActiveMutator::Operators::LogicalOperator

Inherits:
Base
  • Object
show all
Defined in:
lib/active_mutator/operators/logical_operator.rb

Constant Summary

Constants inherited from Base

Base::REGISTRY

Instance Method Summary collapse

Methods inherited from Base

all, inherited

Instance Method Details

#edits(node) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/active_mutator/operators/logical_operator.rb', line 4

def edits(node)
  case node
  when Prism::AndNode then variants(node, "||")
  when Prism::OrNode then variants(node, "&&")
  else []
  end
end