abstract class Myst::TPrimitive(T)
- Myst::TPrimitive(T)
- Myst::Value
- Reference
- Object
Overview
Primitives are immutable objects
Direct Known Subclasses
Defined in:
myst/interpreter/value.crConstructors
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.
- #value : T
- #value=(value : T)
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
.