diff options
Diffstat (limited to 'array.c')
-rw-r--r-- | array.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -910,7 +910,9 @@ rb_inspecting_p(obj) { VALUE inspect_tbl; - if (!inspect_key) return Qfalse; + if (!inspect_key) { + inspect_key = rb_intern("__inspect_key__"); + } inspect_tbl = rb_thread_local_aref(rb_thread_current(), inspect_key); if (NIL_P(inspect_tbl)) return Qfalse; return rb_ary_includes(inspect_tbl, rb_obj_id(obj)); |