Skip to content
On this page

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

class · Ruby 3.4

Prism::AliasGlobalVariableNode

< Prism::Node 13 instance methods 2 class methods

Represents the use of the alias keyword to alias a global variable.

alias $foo $bar
^^^^^^^^^^^^^^^

Class methods 2

Instance methods 13

Attributes
Read

Represents the new name of the global variable that can be used after aliasing.

alias $foo $bar
      ^^^^
Read

Represents the old name of the global variable that can be used before aliasing.

alias $foo $bar
           ^^^^