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.cr

Instance Method Summary

Instance Method Detail

def cond : ASTNode #

The condition of the if clause.


[View source]
def else : ASTNode #

The #else branch of the if.


[View source]
def then : ASTNode #

The #then branch of the if.


[View source]