class Myst::TNil

Defined in:

myst/interpreter/value.cr

Constant Summary

NIL_OBJECT = TNil.allocate

All instances of Nil in a program refer to the same object.

Constructors

Instance Method Summary

Instance methods inherited from class Myst::MutableValue

ivars : Scope ivars, ivars=(ivars : Scope) ivars=, truthy? truthy?, type_name type_name

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


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.


[View source]
def truthy? #

[View source]
def type_name #

[View source]