Class Node::RESBODY
In: ext/nodeinfo.c
Parent: Node

Represents the rescue portion of a rescue expression (see RESCUE for examples).

If the head node of the rescue expresion raises an exception, the resq node is evaluated. The resq node is of type RESBDOY.

As it is evaluated, the type of the exception is tested against the class(es) listed in the args node. If there is a match, the body node is evaluated, otherwise the head node is evaluated. The head node is either another RESBDOY node or false (0).

Methods

args   body   head   members  

Public Class methods

Return an array of strings containing the names of the node class‘s members.

Public Instance methods

the arguments to the method

the body of the loop

the body of the block to evaluate

[Validate]