Skip to content

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

instance method

RubyVM::AbstractSyntaxTree::Node#node_id

node.node_id → integer

Returns an internal node_id number. Note that this is an API for ruby internal use, debugging, and research. Do not use this for any other purpose. The compatibility is not guaranteed.

See also #locations #script_lines #last_lineno #source also in 4.0 · 3.4 · 3.3 · 3.2 · 3.1