Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
NameError#name
name_error.name → string or nil
error.c
View on GitHub ↗
static VALUE
name_err_name(VALUE self)
{
return rb_attr_get(self, id_name);
}
Return the name associated with this NameError exception.