Method: Prism::LocalVariableWriteNode#value

Defined in:
lib/prism/node.rb

#valueObject (readonly)

The value to write to the local variable. It can be any [non-void expression](github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression).

foo = :bar
      ^^^^

abc = 1234
      ^^^^

Note that since the name of a local variable is known before the value is parsed, it is valid for a local variable to appear within the value of its own write.

foo = foo


11036
11037
11038
# File 'lib/prism/node.rb', line 11036

def value
  @value
end