class Crystal::EnumType
inherits Crystal::ModuleType
¶
An instantiated enum type.
Todo
right now this is not properly modeled. Ideally there
should be EnumType and EnumInstanceType, where EnumType would
be Enum(T)
and given:
enum Foo : Int32
# ...
end
we'd have:
enum Foo < Enum(Int32)
end
but right now that's not the case.
Included modules
Crystal::ClassVarContainer
Crystal::DefInstanceContainer
Class methods¶
Methods¶
#lookup_new_in_ancestors?
¶
Should new
be looked up in ancestors?
This is true
if this type doesn't define any
initialize
methods.