Myst::ExceptionHandler
Inherits Myst::Node / Reference / Object
A set of Expressions representing semantics for handling exceptions.
Whenever a rescue or ensure is encountered at the end of a Def, Block,
or Begin, the existing node is wrapped in an ExceptionHandler, and the
handling blocks are parsed into this node.
body [ rescue_expression ]* [ else_expression ] [ ensure_expression ]
Constructors
new(body : Node, rescues : Array(Myst::Rescue) = [] of Rescue, else : Node | Nil = nil, ensure : Node | Nil = nil)
SourceInstance methods
==(other : self)
Returns true if this reference is the same as other. Invokes same?.
accept_children(visitor)
Sourcebody
Sourcebody=(body : Node)
Sourceelse
Sourceelse=(else : Node | Nil)
Sourceelse?
Sourceend_location
Sourceensure
Sourceensure=(ensure : Node | Nil)
Sourceensure?
Sourcehash(hasher)
See Object#hash(hasher)
location
Sourcerescues
Sourcerescues=(rescues : Array(Rescue))
Source