abstract class HCL::Function

Direct Known Subclasses

Defined in:

hcl/function.cr

Constant Summary

ARG_MAX = 100_u32

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : HCL::Any) ==

Instance methods inherited from class Object

===(other : HCL::Any) ===

Class methods inherited from class Object

from_hcl(string_or_io : String | IO, ctx : HCL::ExpressionContext = HCL::ExpressionContext.default_context) from_hcl

Constructor Detail

def self.new(name : String, arity : UInt32 | Range(UInt32, UInt32), varadic = false) #

Instance Method Detail

def arity : Range(UInt32, UInt32) | UInt32 #

abstract def call(args : Array(Any)) : Any #

def matches_arity?(args_size : Range(UInt32, UInt32)) : Bool #

def matches_arity?(args_size) : Bool #

def name : String #

def varadic? : Bool #