Class: ActiveMutator::Operators::Base
- Inherits:
-
Object
- Object
- ActiveMutator::Operators::Base
- Defined in:
- lib/active_mutator/operators/base.rb
Direct Known Subclasses
CallSwap, ConditionForcing, ConditionalBoundary, EarlyReturn, Literal, LogicalOperator, NegationRemoval, StatementDeletion
Constant Summary collapse
- REGISTRY =
[]
Class Method Summary collapse
Instance Method Summary collapse
-
#edits(node) ⇒ Object
Returns [Edit] for this node, or [] when the operator does not apply.
Class Method Details
.all ⇒ Object
11 |
# File 'lib/active_mutator/operators/base.rb', line 11 def self.all = REGISTRY.map(&:new) |
.inherited(klass) ⇒ Object
6 7 8 9 |
# File 'lib/active_mutator/operators/base.rb', line 6 def self.inherited(klass) super REGISTRY << klass end |
Instance Method Details
#edits(node) ⇒ Object
Returns [Edit] for this node, or [] when the operator does not apply.
14 |
# File 'lib/active_mutator/operators/base.rb', line 14 def edits(node) = [] |