class Kaze::Function
- Kaze::Function
 - Kaze::Callable
 - Reference
 - Object
 
Overview
A callable function. It may also be anonymous.
Defined in:
function.crConstructors
Instance Method Summary
- 
        #arity : Int32
        
          
The number of arguments the function takes.
 - 
        #bind(instance : Instance) : Function
        
          
Bind
selfto a class instance. - 
        #call(interpreter : Interpreter, arguments : Array(VG)) : VG
        
          
Executes the function.
 - 
        #to_s : String
        
          
Returns a nicely readable and concise string representation of this object, typically intended for users.
 
Instance methods inherited from class Kaze::Callable
  
  
    
      arity : Int32
    arity, 
    
  
    
      call(interpreter : Interpreter, arguments : Array(VG)) : VG
    call, 
    
  
    
      to_s : String
    to_s
    
  
    
    
  
    
    
    
  
    
    
    
  
Constructor Detail
Instance Method Detail
Bind self to a class instance.
Returns a function with self in its scope.
Executes the function.
        
        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.