class

Crystal::Macros::Alias

Inherits Crystal::Macros::ASTNode

An alias statement.

Every statement node is equivalent to:

alias {{ node.name }} = {{ node.type }}

Instance methods

name

Returns the name of the alias.

Source
type

Returns the name of the type this alias is equivalent to.

Source