Skip to content
On this page

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

class · Ruby 3.4

Prism::ShareableConstantNode

< Prism::Node 13 instance methods 2 class methods

This node wraps a constant write to indicate that when the value is written, it should have its shareability state modified.

# shareable_constant_value: literal
C = { a: 1 }
^^^^^^^^^^^^

Class methods 2

Instance methods 13

Attributes
Read

The constant write that should be modified with the shareability state.