| 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).