class Monkey::Object::Builtin

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(fn : BuiltinFunction) #

[View source]

Instance Method Detail

def fn : BuiltinFunction #

[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]