Skip to content

class Crystal::MacroIf
inherits Crystal::ASTNode

if inside a macro

{% 'if' cond %}
  then
{% 'else' %}
  else
{% 'end' %}

Included modules

Crystal::ExpandableNode

Class methods

.new(cond, a_then = nil, a_else = nil)

View source

Methods

#==(other : self)

Returns true if this reference is the same as other. Invokes same?.

#accept_children(visitor)

View source

#clone_without_location

View source

#cond=(cond : ASTNode)

View source

#else=(else : ASTNode)

View source

#hash(hasher)

#then=(then : ASTNode)

View source