class Mu::Object

Direct Known Subclasses

Defined in:

object.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(proto : Mu::Object | Nil = nil, value : Mu::Type = nil, type : String = "Object") #

[View source]

Instance Method Detail

def call(*args) #

[View source]
def clone(val : Mu::Type = nil) #

[View source]
def getSlot(name : String) #

[View source]
def setSlot(name : String, val : Mu::Object) #

[View source]
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 type : String #

[View source]
def value : Array(Mu::Object) | Bool | Float64 | Hash(String, Mu::Object) | Mu::Object | Mu::Message -> Mu::Method | -> Nil | String | Nil #

[View source]