| 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.