Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
PP::PPMethods#push_inspect_key
(::PP::_PrettyPrint id) -> void
push_inspect_key(id)
lib/pp.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/pp.rb, line 168
def push_inspect_key(id)
Thread.current[:__recursive_key__][:inspect][id] = true
end
Adds the object_id id to the set of objects being pretty printed, so as to not repeat objects.