End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
PP::PPMethods#object_group
object_group(obj) { || ... }
lib/pp.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/pp.rb, line 206
def object_group(obj, &block) # :yield:
group(1, '#<' + obj.class.name, '>', &block)
end
A convenience method which is same as follows:
group(1, '#<' + obj.class.name, '>') { ... }
See also
#object_address_group
#pop_inspect_key
#guard_inspect_key
#pp
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0