Class: ActiveMutator::Operators::LogicalOperator
- Defined in:
- lib/active_mutator/operators/logical_operator.rb
Constant Summary
Constants inherited from Base
Instance Method Summary collapse
Methods inherited from Base
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 |