class Crystal::Macros::ProcNotation

Overview

The type of a proc or block argument, like String -> Int32.

Defined in:

compiler/crystal/macros.cr

Instance Method Summary

Instance Method Detail

def inputs : ArrayLiteral(ASTNode)Source

Returns the argument types, or an empty list if no arguments.

def output : ASTNode | NilLiteralSource

Returns the output type, or nil if there is no return type.

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