class

Crystal::Macros::MacroFor

Inherits Crystal::Macros::ASTNode

A for loop inside a macro, e.g.

{% for x in exp %}
  puts {{x}}
{% end %}

Instance methods

body

The body of the for loop.

Source
exp

The expression after in.

Source
vars

The variables declared after for.

Source