class Crystal::Macros::ProcLiteral

Overview

A proc method, written like:

->(arg : String) {
  puts arg
}

Defined in:

compiler/crystal/macros.cr

Instance Method Summary

Instance Method Detail

def args : ArrayLiteral(Arg) #

Returns the arguments of this proc.


[View source]
def body : ASTNode #

Returns the body of this proc.


[View source]
def return_type : ASTNode | Nop #

Returns the return type of this proc, if specified.


[View source]