Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
RubyVM::InstructionSequence#node_id
node_id
iseq.c
View on GitHub ↗
static VALUE
iseqw_node_id(VALUE self)
{
const rb_iseq_t *iseq = iseqw_check(self);
return INT2NUM(ISEQ_BODY(iseq)->location.node_id);
}
Returns the node id of the AST node this iseq corresponds to.