class

Crystal::Macros::ProcLiteral

Inherits Crystal::Macros::ASTNode

A proc method, written like:

->(arg : String) {
  puts arg
}

Instance methods

args

Returns the arguments of this proc.

Source
body

Returns the body of this proc.

Source
return_type

Returns the return type of this proc, if specified.

Source