class Myst::TNil
- Myst::TNil
- Myst::Value
- Reference
- Object
Defined in:
myst/interpreter/value.crConstant Summary
-
NIL_OBJECT =
TNil.allocate
-
All instances of Nil in a program refer to the same object.
Constructors
Instance Method Summary
-
#==(other : self)
Returns
true
if this reference is the same as other. -
#hash(hasher)
See
Object#hash(hasher)
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #truthy?
- #type_name
Instance methods inherited from class Myst::Value
ivars : Scope
ivars,
ivars=(ivars : Scope)
ivars=,
truthy?
truthy?,
type_name
type_name
Class methods inherited from class Myst::Value
from_literal(literal : Node)
from_literal
Constructor Detail
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.
def to_s
#
Description copied from class Object
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO)
which can be overridden for custom implementations.
Also see #inspect
.