Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

PP::PPMethods#check_inspect_key

check_inspect_key(id)

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.

See also #comma_breakable #guard_inspect_key also in 4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0