End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
PP::PPMethods#check_inspect_key
check_inspect_key(id)
lib/pp.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/pp.rb, line 163
def check_inspect_key(id)
Thread.current[:__recursive_key__] &&
Thread.current[:__recursive_key__][:inspect] &&
Thread.current[:__recursive_key__][:inspect].include?(id)
end
Check whether the object_id id is in the current buffer of objects to be pretty printed. Used to break cycles in chains of objects to be pretty printed.