Skip to content
On this page

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

class · Ruby 4.1

Ruby::Prism::Node

< Object 40 instance methods 2 class methods

This represents a node in the tree. It is the parent class of all of the various node types.

Class methods 2

Instance methods 40

Attributes
Read

A unique identifier for this node. This is used in a very specific use case where you want to keep around a reference to a node without having to keep around the syntax tree in memory. This unique identifier will be consistent across multiple parses of the same source code.