class Monkey::Object::Function
- Monkey::Object::Function
- Monkey::Object::Object
- Reference
- Object
Defined in:
monkey/object/object.crConstructors
Instance Method Summary
- #body : AST::BlockStatement
- #env : Environment
-
#inspect : ::String
Returns an unambiguous and information-rich string representation of this object, typically intended for developers.
- #parameters : ::Array(AST::Identifier)
- #type : ObjectType
Instance methods inherited from class Monkey::Object::Object
inspect : ::String
inspect,
type : ObjectType
type
Constructor Detail
def self.new(parameters : ::Array(AST::Identifier), body : AST::BlockStatement, env : Environment)
#
Instance Method Detail
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
.