struct Ven::Suite::VFunction

Overview

The function payload vehicle.

It carries and defines the identity of a function.

It also provides a number of metadata entries: the names of the parameters and the amount of them (arity), the amount of values in the given appendix, and the slurpiness.

Defined in:

ven/suite/payload.cr

Constructors

Instance Method Summary

Instance methods inherited from struct Ven::Suite::Payload

initialize initialize

Constructor methods inherited from struct Ven::Suite::Payload

new new

Constructor Detail

def self.new(symbol : Ven::Suite::VSymbol, target : Int32, params : Array(String), given : Int32, arity : Int32, slurpy : Bool) #

[View source]

Instance Method Detail

def ==(other : VFunction) #

[View source]
def arity : Int32 #

def given : Int32 #

def params : Array(String) #

def slurpy : Bool #

def symbol : VSymbol #

def target : Int32 #

def to_s(io) #

[View source]