Skip to content
On this page
class · Ruby 4.0

Prism::ConstantPathWriteNode

< Prism::Node 13 instance methods 2 class methods

Represents writing to a constant path.

::Foo = 1
^^^^^^^^^

Foo::Bar = 1
^^^^^^^^^^^^

::Foo::Bar = 1
^^^^^^^^^^^^^^

Class methods 2

Instance methods 13

Attributes
Read

A node representing the constant path being written to.

Foo::Bar = 1
^^^^^^^^

::Foo = :abc
^^^^^
Read

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

FOO::BAR = :abc
           ^^^^