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
ifclause. -
#else : ASTNode
The
#elsebranch of theif. -
#then : ASTNode
The
#thenbranch of theif.