class Crystal::Macros::Case

Overview

A case expression.

Defined in:

compiler/crystal/macros.cr

Instance Method Summary

Instance Method Detail

def cond : ASTNode #

Returns the condition (target) of this case.


[View source]
def else : ASTNode #

Returns the #else of this case.


[View source]
def exhaustive? : BoolLiteral #

Returns whether this case is exhaustive (case ... in).


[View source]
def whens : ArrayLiteral(When) #

Returns the whens of this case.


[View source]