class

Crystal::Macros::Macro

Inherits Crystal::Macros::ASTNode

A macro definition.

Instance methods

args

Returns the arguments of this macro.

Source
block_arg

Returns the block argument, if any.

Source
body

Returns the body of this macro.

Source
double_splat

Returns the double splat argument, if any.

Source
name

Returns the name of this macro.

Source
splat_index

Returns the index of the argument with a *splat, if any.

Source
visibility

Returns the visibility of this macro: :public, :protected or :private.

Source