class Crystal::GenericClassInstanceMetaclassType
inherits Crystal::Type
¶
The metaclass of a generic class instance type, like Array(String).class
Included modules
Crystal::DefInstanceContainer
Class methods¶
Methods¶
#class_var_owner
¶
Returns the type that owns class vars for a type.
This method returns self, but subclasses might override. For example, a metaclass' class_var_owner is the instance type.
#common_ancestor(other : MetaclassType | VirtualMetaclassType | GenericClassInstanceMetaclassType)
¶
(other : MetaclassType | VirtualMetaclassType | GenericClassInstanceMetaclassType)
#replace_type_parameters(instance_type)
¶
(instance_type)
Replace type parameters in this type with the type parameters of the given instance type.