class Monkey::Object::Array

Defined in:

monkey/object/object.cr

Constructors

Instance Method Summary

Instance methods inherited from class Monkey::Object::Object

inspect : ::String inspect, type : ObjectType type

Constructor Detail

def self.new(elements : ::Array(Object)) #

[View source]

Instance Method Detail

def elements : Array(Monkey::Object::Object) #

[View source]
def inspect : ::String #
Description copied from class Object

Returns an unambiguous and information-rich string representation of this object, typically intended for developers.

This method should usually not be overridden. It delegates to #inspect(IO) which can be overridden for custom implementations.

Also see #to_s.


[View source]
def type : ObjectType #

[View source]