Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
HCL::Function
Inherits
Reference
/
Object
Constants
ARG_MAX = 100_u32
Constructors
new
(name :
String
, arity :
UInt32
|
Range
(
UInt32
,
UInt32
), varadic :
Bool
= false)
Source
Instance methods
arity
Source
call
(args :
Array
(
Any
)) :
Any
Source
matches_arity?
(args_size :
Range
(
UInt32
,
UInt32
)) :
Bool
Source
matches_arity?
(args_size) :
Bool
Source
name
Source
varadic?
Source
Nested types
HCL::Function::ArgumentTypeError
HCL::Function::FunctionArgumentError
HCL::Function::FunctionEvalError