Skip to content
On this page
class · Ruby 4.0

Prism::Scope

< Object 1 class methods

This object is passed to the various Prism.* methods that accept the scopes option as an element of the list. It defines both the local variables visible at that scope as well as the forwarding parameters available at that scope.

Class methods 1

Attributes
Read

The list of local variables that are forwarded to the next scope. This should by defined as an array of symbols containing the specific values of :, :*, :&, or :“…”.

Read

The list of local variables that are defined in this scope. This should be defined as an array of symbols.