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)Source

Returns the arguments of this proc.

def body : ASTNodeSource

Returns the body of this proc.

© 2012–2021 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/1.2.1/Crystal/Macros/ProcLiteral.html