Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Prism::DSL#shareable_constant_node_flag
shareable_constant_node_flag(name)
lib/prism/dsl.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/prism/dsl.rb, line 942
def shareable_constant_node_flag(name)
case name
when :literal then ShareableConstantNodeFlags::LITERAL
when :experimental_everything then ShareableConstantNodeFlags::EXPERIMENTAL_EVERYTHING
when :experimental_copy then ShareableConstantNodeFlags::EXPERIMENTAL_COPY
else Kernel.raise ArgumentError, "invalid ShareableConstantNodeFlags flag: #{name.inspect}"
end
end
Retrieve the value of one of the ShareableConstantNodeFlags flags.