Syntax::MacroIf
Inherits Syntax::ASTNode < Reference < Object
if inside a macro
{% 'if' cond %}
then
{% 'else' %}
else
{% 'end' %}
Constructors
new(cond : Syntax::ASTNode, a_then = nil, a_else = nil)
SourceInstance 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)
then
Sourcethen=(then : ASTNode)
Source