Skip to content
On this page
class · Ruby 4.0

Prism::AliasMethodNode

< Prism::Node 13 instance methods 2 class methods

Represents the use of the alias keyword to alias a method.

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

Class methods 2

Instance methods 13

Attributes
Read

Represents the new name of the method that will be aliased.

alias foo bar
      ^^^

alias :foo :bar
      ^^^^

alias :"#{foo}" :"#{bar}"
      ^^^^^^^^^
Read

Represents the old name of the method that will be aliased.

alias foo bar
          ^^^

alias :foo :bar
           ^^^^

alias :"#{foo}" :"#{bar}"
                ^^^^^^^^^