Skip to content

class Crystal::ProcType
inherits Crystal::GenericClassType

The non-instantiated Proc(*T, R) type.

Methods

#can_be_stored?

Returns true if this type can be assigned to an instance or class variable, or used in a generic type argument.

As of now, abstract base type such as Object, Reference, Value, Int, and unbound generic types such as Array(T), can't be stored.

View source

#instantiate(type_vars)

View source

#new_generic_instance(program, generic_type, type_vars)

View source

#type_desc

View source