class

PheltObject::Function

Inherits Reference < Object

Constants

TYPE = "function"

Constructors

new(parameters : ::Array(AST::Identifier), body : AST::BlockStatement, env : PheltObject::Environment)
Source

Instance methods

body
Source
env=(env : Environment)
Source
inspect

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.

Source
parameters
Source
parameters=(parameters : ::Array(AST::Identifier))
Source
type
Source