class PheltObject::Function

Defined in:

object/object.cr

Constant Summary

TYPE = "function"

Constructors

Instance Method Summary

Constructor Detail

def self.new(parameters : ::Array(AST::Identifier), body : AST::BlockStatement, env : PheltObject::Environment) #

[View source]

Instance Method Detail

def body : AST::BlockStatement #

[View source]
def body=(body : AST::BlockStatement) #

[View source]
def env : Environment #

[View source]
def env=(env : Environment) #

[View source]
def inspect #
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 parameters : ::Array(AST::Identifier) #

[View source]
def parameters=(parameters : ::Array(AST::Identifier)) #

[View source]
def type #

[View source]