Skip to content

class Crystal::Case
inherits Crystal::ASTNode

Included modules

Crystal::ExpandableNode

Class methods

.new(cond : ASTNode?, whens : Array(When), else : ASTNode?, exhaustive : Bool)

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

#exhaustive=(exhaustive : Bool)

View source

#exhaustive? : Bool

View source

#hash(hasher)

#interpret(method : String, args : Array(ASTNode), named_args : Hash(String, ASTNode)?, block : Crystal::Block?, interpreter : Crystal::MacroInterpreter, name_loc : Location?)

View source

#whens : Array(When)

View source

#whens=(whens : Array(When))

View source