class Macros::Def

Overview

A method definition.

Superclass hierarchy

Object
Reference
Macros::ASTNode
Macros::Def

Defined in:

Instance Method Summary

Instance Method Detail

def args : Macros::ArrayLiteral(Arg)

Returns the arguments of this method.


def body : ASTNode

Returns the body of this method.


def name : MacroId

Returns the name of this method.


def receiver : ASTNode | Nop

Returns the receiver (for example self) of this method definition, or Nop if not specified.


def visibility : SymbolLiteral

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