Syntax::If
Inherits Syntax::ASTNode < Reference < Object
An if expression.
'if' cond
then
[
'else'
else
]
'end'
An if elsif end is parsed as an If whose else is another If.
Constructors
Instance methods
==(other : self)
Returns true if this reference is the same as other. Invokes same?.
accept_children(visitor)
Sourceclone_without_location
Sourcecond
Sourcecond=(cond : ASTNode)
Sourceelse
Sourceelse=(else : ASTNode)
Sourcehash(hasher)
See Object#hash(hasher)
ternary?
Sourcethen
Sourcethen=(then : ASTNode)
Source