class Crystal::Macros::Case

Overview

A case expression.

Defined in:

compiler/crystal/macros.cr

Instance Method Summary

Instance Method Detail

def cond : ASTNodeSource

Returns the condition (target) of this case.

def else : ArrayLiteral(When)Source

Returns the #else of this case.

def whens : ArrayLiteral(When)Source

Returns the whens of this case.

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