Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
PP::PPMethods#pp_hash
(untyped obj) -> untyped
pp_hash(obj)
lib/pp.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/pp.rb, line 291
def pp_hash(obj)
group(1, '{', '}') {
seplist(obj, nil, :each_pair) {|k, v|
group {
pp_hash_pair k, v
}
}
}
end
A pretty print for a Hash