Class: Mutant::Mutator::Node::Rescue

Inherits:
Generic show all
Defined in:
lib/mutant/mutator/node/rescue.rb

Overview

Mutator for rescue nodes

Constant Summary

Constants included from NodeHelpers

NodeHelpers::INFINITY, NodeHelpers::NAN, NodeHelpers::NEGATIVE_INFINITY, NodeHelpers::NEW_OBJECT, NodeHelpers::N_EMPTY, NodeHelpers::N_FALSE, NodeHelpers::N_NIL, NodeHelpers::N_TRUE, NodeHelpers::RAISE

Instance Attribute Summary

Attributes inherited from Mutant::Mutator

#input, #parent

Class Method Summary collapse

Methods included from NodeHelpers

#n_not, s

Methods inherited from Mutant::Mutator

each

Class Method Details

.identity(node) ⇒ String

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.

Return identity

Parameters:

  • node (Parser::AST::Node)

Returns:

  • (String)


19
20
21
# File 'lib/mutant/mutator/node/rescue.rb', line 19

def self.identity(node)
  super(NodeHelpers.s(:kwbegin, node))
end