Myst::When
Inherits Myst::Node / Reference / Object
A when expression. These expressions are the fundamental building block
for conditional logic (they replace the ubiquitous if expressions in
most C-based languages). They can also be chained with other when or
unless expressions to create a flat cascade of conditional logic, or an
else expression to define an alternative if the condition is not met.
'when' condition body 'end' | 'when' condition body 'else' [ alternative ] 'end' | 'when' condition body ( when_expression | unless_expression )
Constructors
Instance methods
==(other : self)
Returns true if this reference is the same as other. Invokes same?.
accept_children(visitor)
Sourcealternative
Sourcealternative=(alternative : Node)
Sourcebody
Sourcebody=(body : Node)
Sourcecondition
Sourcecondition=(condition : Node)
Sourcehash(hasher)
See Object#hash(hasher)