On this page
class · Ruby 4.0
Prism::ClassVariableWriteNode
Represents writing to a class variable.
@@foo = 1 ^^^^^^^^^
Class methods 2
Instance methods 15
Attributes
Read
The name of the class variable, which is a @@ followed by an identifier.
Example
@@abc = 123 # name `@@abc` @@_test = :test # name `@@_test`
Read
The value to write to the class variable. This can be any non-void expression.
@@foo = :bar
^^^^
@@_xyz = 123
^^^