On this page
class · Ruby 4.0
Prism::InstanceVariableWriteNode
Represents writing to an instance variable.
@foo = 1 ^^^^^^^^
Class methods 2
Instance methods 15
Attributes
Read
The name of the instance variable, which is a @ followed by an identifier.
Example
@x = :y # name `:@x` @_foo = "bar" # name `@_foo`
Read
The value to write to the instance variable. It can be any non-void expression.
@foo = :bar
^^^^
@_x = 1234
^^^^