Skip to content

class Crystal::GenericClassInstanceMetaclassType
inherits Crystal::Type

The metaclass of a generic class instance type, like Array(String).class

Included modules

Crystal::DefInstanceContainer

Class methods

.new(program, instance_type)

View source

Methods

#abstract?

View source

#abstract?(*args, **options)

View source

#add_subclass(subclass)

View source

#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.

View source

#defs(*args, **options)

View source

#defs

View source

#filter_by_responds_to(name)

View source

#generic_nest

View source

#generic_nest(*args, **options)

View source

#instance_type : Type

View source

#lookup_new_in_ancestors?(*args, **options)

View source

#lookup_new_in_ancestors?

View source

#lookup_path

View source

#lookup_path(*args, **options)

View source

#lookup_similar_path

View source

#lookup_similar_path(*args, **options)

View source

#macros

View source

#macros(*args, **options)

View source

#parents

View source

#replace_type_parameters(instance_type)

Replace type parameters in this type with the type parameters of the given instance type.

View source

#restrict(other : Metaclass, context)

View source

#restrict(other : MetaclassType, context)

View source

#to_s_with_options(io : IO, skip_union_parens : Bool = false, generic_args : Bool = true, codegen : Bool = false) : Nil

View source

#type_vars

View source

#type_vars(*args, **options)

View source

#virtual_type

View source

#virtual_type!

View source