Class Nodes.ClassVariableReadNode

java.lang.Object
org.prism.Nodes.Node
org.prism.Nodes.ClassVariableReadNode
Enclosing class:
Nodes

public static final class Nodes.ClassVariableReadNode extends Nodes.Node
 Represents referencing a class variable.

     @@foo
     ^^^^^
 
  • Field Details

    • name

      public final org.jruby.RubySymbol name
       The name of the class variable, which is a `@@` followed by an [identifier](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#identifiers).
      
           @@abc   # name `:@@abc`
      
           @@_test # name `:@@_test`
       
  • Constructor Details

    • ClassVariableReadNode

      public ClassVariableReadNode(int startOffset, int length, org.jruby.RubySymbol name)
  • Method Details