class Crystal::Macros::Cast

Overview

A cast call: obj.as(to)

Defined in:

compiler/crystal/macros.cr

Instance Method Summary

Instance Method Detail

def obj : ASTNodeSource

Returns the object part of the cast.

def to : ASTNodeSource

Returns the target type of the cast.

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