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::ClassVariableReadNode

< Prism::Node 10 instance methods 2 class methods

Represents referencing a class variable.

@@foo
^^^^^

Class methods 2

Instance methods 10

Attributes
Read

The name of the class variable, which is a ‘@@` followed by an [identifier](github.com/ruby/prism/blob/main/docs/parsing_rules.md#identifiers).

Example
@@abc   # name `:@@abc`

@@_test # name `:@@_test`