class Cosmo::Function
- Cosmo::Function
- Cosmo::Callable
- Reference
- Object
Defined in:
cosmo/runtime/function.crConstructors
Instance Method Summary
- #arity : Range(UInt32, UInt32)
- #call(args : Array(ValueType)) : ValueType
- #definition : AST::Statement::FunctionDef
- #intrinsic? : Bool
-
#to_s : String
Returns a nicely readable and concise string representation of this object, typically intended for users.
Instance methods inherited from class Cosmo::Callable
arity : Range(UInt32, UInt32)
arity,
call(args : Array(ValueType)) : ValueType
call,
intrinsic? : Bool
intrinsic?,
to_s : String
to_s
Constructor Detail
def self.new(interpreter : Cosmo::Interpreter, closure : Cosmo::Scope, definition : Cosmo::AST::Statement::FunctionDef)
#
Instance Method Detail
def to_s : String
#
Description copied from class Object
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO)
which can be overridden for custom implementations.
Also see #inspect
.