class Crystal::Macros::ProcPointer

Overview

A proc pointer, like ->my_var.some_method(String)

Defined in:

compiler/crystal/macros.cr

Instance Method Summary

Instance Method Detail

def args : ArrayLiteral(ASTNode)Source

Returns the types of the arguments of the proc.

def name : MacroIdSource

Returns the name of the method this proc points to.

def obj : ASTNode | NilLiteralSource

Returns the receiver of the proc, or nil if the proc is not attached to an object.

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