class Crystal::Macros::ReadInstanceVar

Overview

Access to an instance variable, e.g. obj.@var.

Defined in:

compiler/crystal/macros.cr

Instance Method Summary

Instance Method Detail

def name : MacroIdSource

Returns the name of the instance variable being accessed.

def obj : ASTNodeSource

Returns the object whose variable is being accessed.

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