class Crystal::Macros::If

Overview

An if expression.

Defined in:

compiler/crystal/macros.cr

Instance Method Summary

Instance Method Detail

def cond : ASTNodeSource

Returns this if's condition.

def else : ASTNodeSource

Returns this if's #else clause's body.

def then : ASTNodeSource

Returns this if's #then clause's body.

© 2012–2021 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/1.2.1/Crystal/Macros/If.html