Skip to content

abstract class Crystal::PrimitiveType
inherits Crystal::ClassType

Base type for primitive types like Bool and Char.

Included modules

Crystal::ClassVarContainer

Direct known subclasses

Crystal::BoolType Crystal::CharType Crystal::FloatType Crystal::IntegerType Crystal::NilType Crystal::SymbolType

Class methods

.new(program, namespace, name, superclass, bytes : Int32)

View source

Methods

#abstract?

Returns true if this type is abstract.

View source

#bytes : Int32

Returns the number of bytes this type occupies in memory.

View source

#common_ancestor(other)

View source

#llvm_name(io)

View source