Class: Mutant::Mutator::Node::Rescue
- Inherits:
-
Mutant::Mutator::Node
- Object
- Mutant::Mutator
- Mutant::Mutator::Node
- Mutant::Mutator::Node::Rescue
- Defined in:
- lib/mutant/mutator/node/rescue.rb
Overview
Mutator for rescue nodes
Constant Summary collapse
- RESCUE_INDICES =
(1..-2).freeze
Constants inherited from Mutant::Mutator::Node
Constants included from AST::Nodes
AST::Nodes::N_EMPTY, AST::Nodes::N_EMPTY_SUPER, AST::Nodes::N_FALSE, AST::Nodes::N_INFINITY, AST::Nodes::N_NAN, AST::Nodes::N_NEGATIVE_INFINITY, AST::Nodes::N_NIL, AST::Nodes::N_RAISE, AST::Nodes::N_SELF, AST::Nodes::N_TRUE, AST::Nodes::N_ZSUPER
Instance Attribute Summary
Attributes inherited from Mutant::Mutator
Instance Method Summary collapse
-
#dispatch ⇒ undefined
private
Emit mutations.
Methods included from AST::NamedChildren
Methods inherited from Mutant::Mutator
Instance Method Details
#dispatch ⇒ undefined
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Emit mutations
21 22 23 24 25 |
# File 'lib/mutant/mutator/node/rescue.rb', line 21 def dispatch mutate_body mutate_rescue_bodies mutate_else_body end |