Class Node::SCOPE
In: lib/methodsig.rb
ext/nodeinfo.c
Parent: Object

Represents a lexical scope.

A new scope is created when a method is invoked. The scope node holds information about local variables and arguments to the method. The first two variables in the local variable table are the implicit variables $_ and $~.

The next variables listed in the local variable table are the arguments to the method. More information about the arguments to the method are stored in the ARGS node, which will either be the first node in the scope or the first node in the BLOCK held by the scope.

Methods

Included Modules

MethodSig

Public Class methods

Return an array of strings containing the names of the node class‘s members.

Public Instance methods

the second expression in the block of code

holds information about which class(es) to search for constants in this scope

the names of the local variables* next the first expression in the scope

[Validate]