class

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

Instance methods

==(other : self)

Returns true if this reference is the same as other. Invokes same?.

accept_children(visitor)
Source
body
Source
body=(body : Node)
Source
else
Source
else=(else : Node | Nil)
Source
else?
Source
end_location
Source
ensure
Source
ensure=(ensure : Node | Nil)
Source
ensure?
Source
hash(hasher)

See Object#hash(hasher)

location
Source
rescues
Source
rescues=(rescues : Array(Rescue))
Source