class

Crystal::Macros::TypeDef

Inherits Crystal::Macros::ASTNode

A typedef inside a lib.

Every typedef node is equivalent to:

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

Instance methods

name

Returns the name of the typedef.

Source
type

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

Source