Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
PP.pp
(::PP::_PrettyPrint obj, ?::PP::_LeftShift out, ?::Integer width) -> untyped
pp(obj, out=$>, width=width_for(out))
lib/pp.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/pp.rb, line 96
def PP.pp(obj, out=$>, width=width_for(out))
q = new(out, width)
q.guard_inspect_key {q.pp obj}
q.flush
#$pp = q
out << "\n"
end