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_address_group
object_address_group(obj, &block)
lib/pp.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/pp.rb, line 212
def object_address_group(obj, &block)
str = Kernel.instance_method(:to_s).bind_call(obj)
str.chomp!('>')
group(1, str, '>', &block)
end
A convenience method, like object_group, but also reformats the Object’s object_id.
See also
#guard_inspect_key
#object_group
#comma_breakable
#pop_inspect_key
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0