Skip to content
On this page
class · Ruby 4.0

Prism::ConstantWriteNode

< Prism::Node 17 instance methods 2 class methods

Represents writing to a constant.

Foo = 1
^^^^^^^

Class methods 2

Instance methods 17

Attributes
Read

The name of the constant.

Example
Foo = :bar # name `:Foo`

XYZ = 1    # name `:XYZ`
Read

The value to write to the constant. It can be any non-void expression.

FOO = :bar
      ^^^^

MyClass = Class.new
          ^^^^^^^^^