class Crystal::Macros::MacroIf
Overview
An if
inside a macro, e.g.
{% if cond %}
puts "Then"
{% else %}
puts "Else"
{% end %}
Defined in:
compiler/crystal/macros.crInstance Method Summary
-
#cond : ASTNode
The condition of the
if
clause. -
#else : ASTNode
The
#else
branch of theif
. -
#then : ASTNode
The
#then
branch of theif
.