class

Myst::Unless

Inherits Myst::Node / Reference / Object

An unless expression. This is functionally the same as the when expression, but evalutes its body when the condition is falsey.

'unless' condition body 'end' | 'unless' condition body 'else' [ alternative ] 'end' | 'unless' condition body ( when_expression | unless_expression )

Constructors

new(condition : Myst::Node, body : Myst::Node = Nop.new, alternative : Myst::Node = Nop.new)
Source

Instance methods

==(other : self)

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

accept_children(visitor)
Source
alternative
Source
alternative=(alternative : Node)
Source
body
Source
body=(body : Node)
Source
condition
Source
condition=(condition : Node)
Source
hash(hasher)

See Object#hash(hasher)