class Objects::MFunction
Defined in:
objects.crConstructors
Instance Method Summary
- #body? : Ast::BlockStatement?
- #env : Evaluator::Environment
-
#inspect : String
Returns an unambiguous and information-rich string representation of this object, typically intended for developers.
- #parameters? : Array(Ast::Identifier)?
Instance methods inherited from class Objects::MObject
error? : Bool
error?,
if_not_error(& : MObject -> MObject | Nil) : MObject | Nil
if_not_error,
inspect : String
inspect,
truthy? : Bool
truthy?,
type_desc : String
type_desc
Instance methods inherited from class Object
also(& : self | Nil -> _) : self
also,
or_else(alternative)
or_else
Constructor Detail
def self.new(parameters : Array(Identifier) | Nil, body : BlockStatement | Nil, env : Evaluator::Environment)
#
Instance Method Detail
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
.