Class Nodes.InstanceVariableReadNode

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

public static final class Nodes.InstanceVariableReadNode extends Nodes.Node
 Represents referencing an instance variable.

     @foo
     ^^^^
 
  • Field Details

    • name

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

    • InstanceVariableReadNode

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