class PheltObject::Function
- PheltObject::Function
- Reference
- Object
Defined in:
object/object.crConstant Summary
-
TYPE =
"function"
Constructors
Instance Method Summary
- #body : AST::BlockStatement
- #body=(body : AST::BlockStatement)
- #env : Environment
- #env=(env : Environment)
-
#inspect
Returns an unambiguous and information-rich string representation of this object, typically intended for developers.
- #parameters : ::Array(AST::Identifier)
- #parameters=(parameters : ::Array(AST::Identifier))
- #type
Constructor Detail
def self.new(parameters : ::Array(AST::Identifier), body : AST::BlockStatement, env : PheltObject::Environment)
#
Instance Method Detail
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
.